Recognise IPv6 PIM packets.

MFC after:	1 week
This commit is contained in:
John Hay 2006-08-31 16:56:45 +00:00
parent 0b2314893a
commit 1c31b456b9

View File

@ -72,6 +72,7 @@
#include <netinet/ip_fw.h> #include <netinet/ip_fw.h>
#include <netinet/ip_divert.h> #include <netinet/ip_divert.h>
#include <netinet/ip_dummynet.h> #include <netinet/ip_dummynet.h>
#include <netinet/pim.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include <netinet/tcp_timer.h> #include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h> #include <netinet/tcp_var.h>
@ -2263,6 +2264,11 @@ do { \
PULLUP_TO(hlen, ulp, struct ip6_ext); PULLUP_TO(hlen, ulp, struct ip6_ext);
break; break;
case IPPROTO_PIM:
/* XXX PIM header check? */
PULLUP_TO(hlen, ulp, struct pim);
break;
case IPPROTO_IPV6: /* RFC 2893 */ case IPPROTO_IPV6: /* RFC 2893 */
PULLUP_TO(hlen, ulp, struct ip6_hdr); PULLUP_TO(hlen, ulp, struct ip6_hdr);
break; break;