diff --git a/man7/tcp.7 b/man7/tcp.7 index c9652ea76..b3a486b03 100644 --- a/man7/tcp.7 +++ b/man7/tcp.7 @@ -975,6 +975,22 @@ It is possible to peek at out-of-band data using the .IR recv (2) .B MSG_PEEK flag. + +Since version 2.4, Linux supports the use of +.B MSG_TRUNC +in the +.I flags +argument of +.BR recv (2) +(and +.BR recvmsg (2)). +This flag causes the received bytes of data to be discarded, +rather than passed back in a caller-supplied buffer. +Since Linux 2.4.4, +.BR MSG_PEEK +also has this effect when used in conjunction with +.BR MSG_OOB +to receive out-of-band data. .SS Ioctls These following .BR ioctl (2)