Allow resetting the IP_TTL and IP_MINTTL sockopts
authorjca <jca@openbsd.org>
Fri, 1 Jul 2016 18:28:58 +0000 (18:28 +0000)
committerjca <jca@openbsd.org>
Fri, 1 Jul 2016 18:28:58 +0000 (18:28 +0000)
commit210bede8658bf26358bad68def03b681987abd8c
tree20dabca5a91fd714d9e8aeaa8b0272ed503a2468
parentb9169547ddbb2a3ae1920f8c66324dd8d3ff27d2
Allow resetting the IP_TTL and IP_MINTTL sockopts

IP_TTL can be reset by passing -1, IP_MINTTL can be reset by passing 0.
This is consistent with what Linux does and
IPV6_UNICAST_HOPS/IPV6_MINHOPCOUNT.

ok bluhm@
sys/netinet/ip_output.c