Hello, I think the man page for sctp_recvmsg (dating back to 2005) incorrectly states that msg_flags is a pointer to a integer that is filled with any message flags like MSG_NOTIFICATION or MSG_EOR as it seems to be an incoming argument as well. I used to pass a pointer to an uninitialized value (only expecting some flags being returned here), but my test app behaved erratically, and an strace showed that a rather random set of flags were passed to the underlying recvmsg system call. Initializing the pointed integer to 0 solved the problems. It seems that others were bitten by this since 2008 like http://www.ietf.org/mail-archive/web/tsvwg/current/msg08640.html Would you please update the man page? It also seems that the incoming and outgoing flags have a rather different semantics, which may also be worth noting. Kind Regards, Gergely Péli
Attachment:
smime.p7s
Description: S/MIME cryptographic signature