summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>2006-08-31 16:56:45 +0000
committerjhay <jhay@FreeBSD.org>2006-08-31 16:56:45 +0000
commita1d5a9ece322c34a4a74809f5b6763bebd2eb3a0 (patch)
treeed46c5b4b319a421a6308c6ae23fdee2854e7281 /sys
parent7c9122279a6dbd6c6ab3bc27f2b716293c71b788 (diff)
downloadFreeBSD-src-a1d5a9ece322c34a4a74809f5b6763bebd2eb3a0.zip
FreeBSD-src-a1d5a9ece322c34a4a74809f5b6763bebd2eb3a0.tar.gz
Recognise IPv6 PIM packets.
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_fw2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index e7d1405..d2a8025 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -72,6 +72,7 @@
#include <netinet/ip_fw.h>
#include <netinet/ip_divert.h>
#include <netinet/ip_dummynet.h>
+#include <netinet/pim.h>
#include <netinet/tcp.h>
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
@@ -2263,6 +2264,11 @@ do { \
PULLUP_TO(hlen, ulp, struct ip6_ext);
break;
+ case IPPROTO_PIM:
+ /* XXX PIM header check? */
+ PULLUP_TO(hlen, ulp, struct pim);
+ break;
+
case IPPROTO_IPV6: /* RFC 2893 */
PULLUP_TO(hlen, ulp, struct ip6_hdr);
break;
OpenPOWER on IntegriCloud