summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-03-18 16:56:05 +0000
committerglebius <glebius@FreeBSD.org>2014-03-18 16:56:05 +0000
commitad70c4103e84f504930151e4d7bf3c71e3c2bd9d (patch)
treef6d1e3578eb825c0176231d011344bde8c79efb1 /sys/netinet6
parent5e93044a78ce49826d02c59307c02d95ba564da8 (diff)
downloadFreeBSD-src-ad70c4103e84f504930151e4d7bf3c71e3c2bd9d.zip
FreeBSD-src-ad70c4103e84f504930151e4d7bf3c71e3c2bd9d.tar.gz
Merge r263091: fix mbuf flags clash that lead to failure of operation
of IPSEC and packet filters. PR: kern/185876 PR: kern/186755
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.h19
-rw-r--r--sys/netinet6/ip6_var.h7
2 files changed, 12 insertions, 14 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index 07ba290..f7d7e76 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -622,13 +622,18 @@ struct ip6_mtuinfo {
#endif /* __BSD_VISIBLE */
/*
- * Redefinition of mbuf flags
- */
-#define M_AUTHIPHDR M_PROTO2
-#define M_DECRYPTED M_PROTO3
-#define M_LOOP M_PROTO4
-#define M_AUTHIPDGM M_PROTO5
-#define M_RTALERT_MLD M_PROTO6
+ * Since both netinet/ and netinet6/ call into netipsec/ and netpfil/,
+ * the protocol specific mbuf flags are shared between them.
+ */
+#define M_FASTFWD_OURS M_PROTO1 /* changed dst to local */
+#define M_IP6_NEXTHOP M_PROTO2 /* explicit ip nexthop */
+#define M_IP_NEXTHOP M_PROTO2 /* explicit ip nexthop */
+#define M_SKIP_FIREWALL M_PROTO3 /* skip firewall processing */
+#define M_AUTHIPHDR M_PROTO4
+#define M_DECRYPTED M_PROTO5
+#define M_LOOP M_PROTO6
+#define M_AUTHIPDGM M_PROTO7
+#define M_RTALERT_MLD M_PROTO8
#ifdef _KERNEL
struct cmsghdr;
diff --git a/sys/netinet6/ip6_var.h b/sys/netinet6/ip6_var.h
index 1c22cc9..70e487e 100644
--- a/sys/netinet6/ip6_var.h
+++ b/sys/netinet6/ip6_var.h
@@ -293,13 +293,6 @@ struct ip6aux {
#define IPV6_FORWARDING 0x02 /* most of IPv6 header exists */
#define IPV6_MINMTU 0x04 /* use minimum MTU (IPV6_USE_MIN_MTU) */
-/*
- * IPv6 protocol layer specific mbuf flags.
- */
-#define M_IP6_NEXTHOP M_PROTO2 /* explicit ip nexthop */
-#define M_SKIP_FIREWALL M_PROTO3 /* skip firewall processing,
- keep in sync with IPv4 */
-
#ifdef __NO_STRICT_ALIGNMENT
#define IP6_HDR_ALIGNED_P(ip) 1
#else
OpenPOWER on IntegriCloud