raw.7: For incoming datagrams, sin_port is set to zero

Reported-by: Tetsuo Handa <from-linux-kernel@i-love.sakura.ne.jp>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-05-03 11:58:15 +02:00
parent e64aace436
commit 62462978fe
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,8 @@ but it is ignored for sending in Linux 2.2 and later, and should be always
set to 0 (see BUGS).
For incoming packets,
.I sin_port
is set to the protocol of the packet.
.\" commit f59fc7f30b710d45aadf715460b3e60dbe9d3418
is set to zero.
See the
.I <netinet/in.h>
include file for valid IP protocols.