mirror of https://github.com/mkerrisk/man-pages
Fix discussion of IPC_RECVTTL / IP_TTL
This commit is contained in:
parent
57734e8257
commit
70d015eeb6
17
man7/ip.7
17
man7/ip.7
|
@ -291,7 +291,7 @@ Expects a boolean integer flag.
|
|||
.B IP_RECVTTL
|
||||
When this flag is set
|
||||
pass a
|
||||
.I IP_RECVTTL
|
||||
.I IP_TTL
|
||||
control message with the time to live
|
||||
field of the received packet as a byte. Not supported for
|
||||
.B SOCK_STREAM
|
||||
|
@ -804,6 +804,20 @@ received datagrams. Linux has the more general
|
|||
.I IP_PKTINFO
|
||||
for the same task.
|
||||
.PP
|
||||
Some BSD sockets implementations also provide an
|
||||
.I IP_RECVTTL
|
||||
option, but an ancillary message with type
|
||||
.I IP_RECVTTL
|
||||
is passed with the incoming packet.
|
||||
This is different from the
|
||||
.I IP_TTL
|
||||
option used in Linux.
|
||||
.PP
|
||||
Using
|
||||
.I SOL_IP
|
||||
socket options level isn't portable, BSD-based stacks use
|
||||
.I IPPROTO_IP
|
||||
level.
|
||||
.SH ERRORS
|
||||
.\" XXX document all errors.
|
||||
.\" We should really fix the kernels to give more uniform
|
||||
|
@ -900,7 +914,6 @@ Other errors may be generated by the overlaying protocols; see
|
|||
and
|
||||
.BR socket (7).
|
||||
.SH VERSIONS
|
||||
.IR IP_PKTINFO ,
|
||||
.IR IP_MTU ,
|
||||
.IR IP_MTU_DISCOVER ,
|
||||
.IR IP_PKTINFO ,
|
||||
|
|
Loading…
Reference in New Issue