summaryrefslogtreecommitdiff
path: root/sys/netinet/in_proto.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2005-01-14 14:51:29 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2005-01-14 14:51:29 +0000
commit96c6e361c92e75b9cab520017b9ae689f4a9449e (patch)
tree8601dca6ac4262e3539bc77d349fd7773146e9d6 /sys/netinet/in_proto.c
parent5ec29e79f70e0d2b81c18c97137b46a4a897d4c8 (diff)
Add kernel support for Protocol Independant Multicast (PIM)
Information: http://netweb.usc.edu/pim/ From Pavlin Radoslavov <pavlin@icir.org> ok deraadt@ brad@
Diffstat (limited to 'sys/netinet/in_proto.c')
-rw-r--r--sys/netinet/in_proto.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index 68a35c622b6..61b3c1ca6ac 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_proto.c,v 1.42 2004/12/07 20:38:47 mcbride Exp $ */
+/* $OpenBSD: in_proto.c,v 1.43 2005/01/14 14:51:27 mcbride Exp $ */
/* $NetBSD: in_proto.c,v 1.14 1996/02/18 18:58:32 christos Exp $ */
/*
@@ -125,6 +125,9 @@
#endif
#include <netinet/igmp_var.h>
+#ifdef PIM
+#include <netinet/pim_var.h>
+#endif
#include <netinet/tcp.h>
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
@@ -242,6 +245,13 @@ struct protosw inetsw[] = {
rip_usrreq,
igmp_init, igmp_fasttimo, igmp_slowtimo, 0,
},
+#ifdef PIM
+{ SOCK_RAW, &inetdomain, IPPROTO_PIM, PR_ATOMIC|PR_ADDR,
+ pim_input, rip_output, 0, rip_ctloutput,
+ rip_usrreq,
+ 0, 0, 0, 0,
+},
+#endif /* PIM */
#ifdef IPXIP
{ SOCK_RAW, &inetdomain, IPPROTO_IDP, PR_ATOMIC|PR_ADDR,
ipxip_input, rip_output, ipxip_ctlinput, 0,