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 /sys/netinet/ip_icmp.c | |
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 'sys/netinet/ip_icmp.c')
-rw-r--r-- | sys/netinet/ip_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index bdcc884..95b7197b 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -638,7 +638,7 @@ icmp_reflect(m) ia = TAILQ_FIRST(&in_ifaddrhead); t = IA_SIN(ia)->sin_addr; ip->ip_src = t; - ip->ip_ttl = MAXTTL; + ip->ip_ttl = ip_defttl; if (optlen > 0) { register u_char *cp; |