Make accepted sockets inherit IP_TTL from the listening socket.
authorjca <jca@openbsd.org>
Fri, 1 Jul 2016 18:37:15 +0000 (18:37 +0000)
committerjca <jca@openbsd.org>
Fri, 1 Jul 2016 18:37:15 +0000 (18:37 +0000)
commit502cfe9407e8bf16b8f49301f05c88d69c188714
tree99df9866b851e62c2ace13e1d9f9c9ee7c24783c
parent210bede8658bf26358bad68def03b681987abd8c
Make accepted sockets inherit IP_TTL from the listening socket.

This is consistent with the IPV6_UNICAST_HOPS behavior, and is the only
way to allow applications to completely control the TTL of outgoing
packets (else an application could temporariy send packets with the
default TTL, until it sets again IP_TTL ; this is harmful eg for GTSM).

ok bluhm@
sys/netinet/tcp_input.c