diff options
author | ru <ru@FreeBSD.org> | 2001-03-09 12:22:51 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-03-09 12:22:51 +0000 |
commit | 5639e86bdd7ea151958776264bf5a67e60a54d68 (patch) | |
tree | 1d73781da1735907de40d8e269df8529fc4b271e /share/man/man4/ip.4 | |
parent | a64bcb9cca89e37fd4482228915951f0fbd2d538 (diff) | |
download | FreeBSD-src-5639e86bdd7ea151958776264bf5a67e60a54d68.zip FreeBSD-src-5639e86bdd7ea151958776264bf5a67e60a54d68.tar.gz |
Make it possible to use IP_TTL and IP_TOS setsockopt(2) options
on certain types of SOCK_RAW sockets. Also, use the ip.ttl MIB
variable instead of MAXTTL constant as the default time-to-live
value for outgoing IP packets all over the place, as we already
do this for TCP and UDP.
Reviewed by: wollman
Diffstat (limited to 'share/man/man4/ip.4')
-rw-r--r-- | share/man/man4/ip.4 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man4/ip.4 b/share/man/man4/ip.4 index cd37c7e..331b1e3 100644 --- a/share/man/man4/ip.4 +++ b/share/man/man4/ip.4 @@ -32,9 +32,9 @@ .\" @(#)ip.4 8.2 (Berkeley) 11/30/93 .\" $FreeBSD$ .\" -.Dd November 30, 1993 +.Dd March 3, 2001 .Dt IP 4 -.Os BSD 4.2 +.Os .Sh NAME .Nm ip .Nd Internet Protocol @@ -100,9 +100,9 @@ may be used to set the type-of-service and time-to-live fields in the .Tn IP header for -.Dv SOCK_STREAM -and -.Dv SOCK_DGRAM +.Dv SOCK_STREAM , SOCK_DGRAM , +and certain types of +.Dv SOCK_RAW sockets. For example, .Bd -literal @@ -355,7 +355,7 @@ setsockopt(s, IPPROTO_IP, IP_HDRINCL, &hincl, sizeof(hincl)); .Ed .Pp Unlike previous -.Tn BSD +.Bx releases, the program must set all the fields of the IP header, including the following: .Bd -literal |