summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2015-10-20 20:22:42 +0000
committerbenno <benno@openbsd.org>2015-10-20 20:22:42 +0000
commitcdd79de48c88bd7c662bcd79e6b54b0243bd1253 (patch)
treec74bbafac5a022843661e77d6029d2b6009d7963 /sys/netinet/in.h
parentFix write to other user's tty. The device has to be opened with (diff)
downloadwireguard-openbsd-cdd79de48c88bd7c662bcd79e6b54b0243bd1253.tar.xz
wireguard-openbsd-cdd79de48c88bd7c662bcd79e6b54b0243bd1253.zip
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@
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 7c206e5d5cb..adb1b30e4d0 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.h,v 1.114 2015/04/14 12:22:15 mikeb Exp $ */
+/* $OpenBSD: in.h,v 1.115 2015/10/20 20:22:42 benno Exp $ */
/* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */
/*
@@ -306,6 +306,7 @@ struct ip_opts {
#define IP_PIPEX 34 /* bool; using PIPEX */
#define IP_RECVRTABLE 35 /* bool; receive rdomain w/dgram */
#define IP_IPSECFLOWINFO 36 /* bool; IPsec flow info for dgram */
+#define IP_IPDEFTTL 37 /* int; IP TTL system default */
#define IP_RTABLE 0x1021 /* int; routing table, see SO_RTABLE */
#define IP_DIVERTFL 0x1022 /* int; divert direction flag opt */