add a new getsockopt option IP_IPDEFTTL to retrieve the default ttl.
authorbenno <benno@openbsd.org>
Tue, 20 Oct 2015 20:22:42 +0000 (20:22 +0000)
committerbenno <benno@openbsd.org>
Tue, 20 Oct 2015 20:22:42 +0000 (20:22 +0000)
commitcdd79de48c88bd7c662bcd79e6b54b0243bd1253
treec74bbafac5a022843661e77d6029d2b6009d7963
parent619dd0015dad2a1951802049ae8d48efdf5a1b6f
add a new getsockopt option IP_IPDEFTTL to retrieve the default ttl.
this can be used as an alternative to sysctl net.inet.ip.ttl, in
programs that use pledge().
ok reyk@, "Like this" deraadt@
share/man/man4/ip.4
sys/netinet/in.h
sys/netinet/ip_output.c