summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2009-04-15 22:09:42 +0000
committerkmacy <kmacy@FreeBSD.org>2009-04-15 22:09:42 +0000
commita895457456e69a2ae8694cbe5dea3d25586103ee (patch)
treeb681a34142a518e52a6aaa01458c67edca492fd9 /sys/netinet/in_pcb.h
parentd35e8eca0371060b928d2555f07b152e2f32143b (diff)
downloadFreeBSD-src-a895457456e69a2ae8694cbe5dea3d25586103ee.zip
FreeBSD-src-a895457456e69a2ae8694cbe5dea3d25586103ee.tar.gz
- add second flags field to to inpcb
- update comments in vflag
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index f2bcde3..38fd46a 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -163,6 +163,7 @@ struct inpcb {
struct ucred *inp_cred; /* (c) cache of socket cred */
u_int32_t inp_flow; /* (i) IPv6 flow information */
int inp_flags; /* (i) generic IP/datagram flags */
+ int inp_flags2; /* (i) generic IP/datagram flags #2*/
u_char inp_vflag; /* (i) IP version flag (v4/v6) */
u_char inp_ip_ttl; /* (i) time to live proto */
u_char inp_ip_p; /* (c) protocol proto */
@@ -380,16 +381,14 @@ void inp_4tuple_get(struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
(ntohs((lport)) & (mask))
/*
- * Flags for inp_vflags -- historically version flags only, but now quite a
- * bit more due to an overflow of inp_flag, leading to some locking ambiguity
- * as some bits are stable from initial allocation, and others may change.
+ * Flags for inp_vflags -- historically version flags only
*/
#define INP_IPV4 0x1
#define INP_IPV6 0x2
#define INP_IPV6PROTO 0x4 /* opened under IPv6 protocol */
/*
- * Flags for inp_flag.
+ * Flags for inp_flags.
*/
#define INP_RECVOPTS 0x00000001 /* receive incoming IP options */
#define INP_RECVRETOPTS 0x00000002 /* receive IP options for reply */
@@ -431,6 +430,10 @@ void inp_4tuple_get(struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
IN6P_TCLASS|IN6P_AUTOFLOWLABEL|IN6P_RFC2292|\
IN6P_MTU)
+/*
+ * Flags for inp_flags2.
+ */
+
#define INPLOOKUP_WILDCARD 1
#define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
#define sotoin6pcb(so) sotoinpcb(so) /* for KAME src sync over BSD*'s */
OpenPOWER on IntegriCloud