Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 synchronize in6pcb flags definition across kame...
details: https://anonhg.NetBSD.org/src/rev/978fcf0e6044
branches: trunk
changeset: 479922:978fcf0e6044
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Dec 27 06:38:47 1999 +0000
description:
synchronize in6pcb flags definition across kame/*bsd.
this would help us implement future COMPAT_{FREE,OPEN}BSD{,I}.
(sync with kame)
diffstat:
sys/netinet6/in6_pcb.h | 41 +++++++++++++++++++++++++----------------
1 files changed, 25 insertions(+), 16 deletions(-)
diffs (55 lines):
diff -r f5fc9298ea94 -r 978fcf0e6044 sys/netinet6/in6_pcb.h
--- a/sys/netinet6/in6_pcb.h Mon Dec 27 03:23:41 1999 +0000
+++ b/sys/netinet6/in6_pcb.h Mon Dec 27 06:38:47 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6_pcb.h,v 1.6 1999/12/13 15:17:22 itojun Exp $ */
+/* $NetBSD: in6_pcb.h,v 1.7 1999/12/27 06:38:47 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -112,21 +112,30 @@
#define in6p_ip6_nxt in6p_ip6.ip6_nxt /* for KAME src sync over BSD*'s */
-/* flags in in6p_flags */
-#define IN6P_RECVOPTS 0x01 /* receive incoming IP6 options */
-#define IN6P_RECVRETOPTS 0x02 /* receive IP6 options for reply */
-#define IN6P_RECVDSTADDR 0x04 /* receive IP6 dst address */
-#define IN6P_HIGHPORT 0x10 /* user wants "high" port binding */
-#define IN6P_LOWPORT 0x20 /* user wants "low" port binding */
-#define IN6P_ANONPORT 0x40 /* port chosen for user */
-#define IN6P_FAITH 0x80 /* accept FAITH'ed connections */
-#define IN6P_PKTINFO 0x010000
-#define IN6P_HOPLIMIT 0x020000
-#define IN6P_NEXTHOP 0x040000
-#define IN6P_HOPOPTS 0x080000
-#define IN6P_DSTOPTS 0x100000
-#define IN6P_RTHDR 0x200000
-#define IN6P_CONTROLOPTS (0x3f0000 | IN6P_RECVOPTS | IN6P_RECVRETOPTS | IN6P_RECVDSTADDR)
+/*
+ * Flags in in6p_flags
+ * We define KAME's original flags in higher 16 bits as much as possible
+ * for compatibility with *bsd*s.
+ */
+#define IN6P_RECVOPTS 0x001000 /* receive incoming IP6 options */
+#define IN6P_RECVRETOPTS 0x002000 /* receive IP6 options for reply */
+#define IN6P_RECVDSTADDR 0x004000 /* receive IP6 dst address */
+#define IN6P_PKTINFO 0x010000 /* receive IP6 dst and I/F */
+#define IN6P_HOPLIMIT 0x020000 /* receive hoplimit */
+#define IN6P_HOPOPTS 0x040000 /* receive hop-by-hop options */
+#define IN6P_DSTOPTS 0x080000 /* receive dst options after rthdr */
+#define IN6P_RTHDR 0x100000 /* receive routing header */
+#define IN6P_RTHDRDSTOPTS 0x200000 /* receive dstoptions before rthdr */
+
+#define IN6P_HIGHPORT 0x1000000 /* user wants "high" port binding */
+#define IN6P_LOWPORT 0x2000000 /* user wants "low" port binding */
+#define IN6P_ANONPORT 0x4000000 /* port chosen for user */
+#define IN6P_FAITH 0x8000000 /* accept FAITH'ed connections */
+#define IN6P_BINDV6ONLY 0x10000000 /* do not grab IPv4 traffic */
+
+#define IN6P_CONTROLOPTS (IN6P_PKTINFO|IN6P_HOPLIMIT|IN6P_HOPOPTS|\
+ IN6P_DSTOPTS|IN6P_RTHDR|IN6P_RTHDRDSTOPTS)
+
#define IN6PLOOKUP_WILDCARD 1
#define IN6PLOOKUP_SETLOCAL 2
Home |
Main Index |
Thread Index |
Old Index