From af927f86ee709e9e7071db92d00ac8c050939214 Mon Sep 17 00:00:00 2001 From: Damir Franusic Date: Fri, 26 Apr 2019 21:39:43 +0200 Subject: [PATCH 10/11] sctp_recvmsg man update * fixes issue #31 Signed-off-by: Marcelo Ricardo Leitner --- man/sctp_recvmsg.3 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/man/sctp_recvmsg.3 b/man/sctp_recvmsg.3 index a7dede1..7854aec 100644 --- a/man/sctp_recvmsg.3 +++ b/man/sctp_recvmsg.3 @@ -44,7 +44,16 @@ message. .I msg_flags is a pointer to a integer that is filled with any message flags like .B MSG_NOTIFICATION or -.B MSG_EOR. +.B MSG_EOR. +The value of +.I msg_flags +pointer should be initialized to 0 to avoid unexpected behavior; +.I msg_flags +is also used as an input +.I flags +argument to +.I recvmsg +function. .SH "RETURN VALUE" On success, .BR sctp_recvmsg -- 1.8.3.1