summaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-05-29 20:42:28 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-05-29 20:42:28 +0000
commit05fd61d8906ef4d0aa7696144112acedfe33c40e (patch)
tree45c411fc1a7fbc446085e7d1fd5399862559c14d /sys/netinet/in_pcb.h
parente90902bd5b82029c799a60faa9817d359a2b08fd (diff)
Make savecontrol functions more generic and use them now for raw IP too.
Additionally add the IP_RECVIF option which returns the interface a packet was received on. OK markus@ norby@
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index e6a12d0c55e..a2f70a5cd4e 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.h,v 1.52 2005/12/10 01:30:14 deraadt Exp $ */
+/* $OpenBSD: in_pcb.h,v 1.53 2006/05/29 20:42:27 claudio Exp $ */
/* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */
/*
@@ -164,12 +164,13 @@ struct inpcbtable {
#define INP_RXSRCRT 0x010
#define INP_HOPLIMIT 0x020
-#define INP_CONTROLOPTS (INP_RECVOPTS|INP_RECVRETOPTS|INP_RECVDSTADDR| \
- INP_RXSRCRT|INP_HOPLIMIT)
-
#define INP_HDRINCL 0x008 /* user supplies entire IP header */
#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_CONTROLOPTS (INP_RECVOPTS|INP_RECVRETOPTS|INP_RECVDSTADDR| \
+ INP_RXSRCRT|INP_HOPLIMIT|INP_RECVIF)
/*
* These flags' values should be determined by either the transport