Document IP_MINTTL socket option.
MFC after: 2 weeks Sponsored by: TCP/IP Optimization Fundraise 2005
This commit is contained in:
parent
936cd18dad
commit
5090c7544f
@ -32,7 +32,7 @@
|
||||
.\" @(#)ip.4 8.2 (Berkeley) 11/30/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd March 23, 2005
|
||||
.Dd August 22, 2005
|
||||
.Dt IP 4
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -113,6 +113,14 @@ int ttl = 60; /* max = 255 */
|
||||
setsockopt(s, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl));
|
||||
.Ed
|
||||
.Pp
|
||||
.Dv IP_MINTTL
|
||||
may be used to set the minimum acceptable TTL a packet must have when
|
||||
received on a socket.
|
||||
All packets with a lower TTL are silently dropped.
|
||||
This option is only really useful when set to 255 preventing packets
|
||||
from outside the directly connected networks reaching local listeners
|
||||
on sockets.
|
||||
.Pp
|
||||
If the
|
||||
.Dv IP_RECVDSTADDR
|
||||
option is enabled on a
|
||||
|
Loading…
x
Reference in New Issue
Block a user