summaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-10-11 09:29:21 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-10-11 09:29:21 +0000
commit38d0057501a91a9d902cdb4a7ed20385b9613034 (patch)
treeb970c268320ff7656c424ff27cfb61d1e92f497d /sys/netinet/in_pcb.h
parent99c080a083c1cc366cfc123fed9104129efbd87f (diff)
implement IP_RECVTTL socket option.
when set on raw or udp sockets, userland receives the incoming packet's TTL as ancillary data (cmsg shitz). modeled after the FreeBSD implementation. ok claudio djm deraadt
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index a6a0d22e021..28614c186c7 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.h,v 1.55 2006/09/26 21:10:53 deraadt Exp $ */
+/* $OpenBSD: in_pcb.h,v 1.56 2006/10/11 09:29:20 henning Exp $ */
/* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */
/*
@@ -168,9 +168,10 @@ struct inpcbtable {
#define INP_HIGHPORT 0x010 /* user wants "high" port binding */
#define INP_LOWPORT 0x020 /* user wants "low" port binding */
#define INP_RECVIF 0x080 /* receive incoming interface */
+#define INP_RECVTTL 0x040 /* receive incoming IP TTL */
#define INP_CONTROLOPTS (INP_RECVOPTS|INP_RECVRETOPTS|INP_RECVDSTADDR| \
- INP_RXSRCRT|INP_HOPLIMIT|INP_RECVIF)
+ INP_RXSRCRT|INP_HOPLIMIT|INP_RECVIF|INP_RECVTTL)
/*
* These flags' values should be determined by either the transport