From fba14c2e49bc3bcd0f03ae37fec976b4beeeb176 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Mon, 26 Jun 1995 16:11:51 +0000 Subject: [PATCH] Corrected a bug that caused protocol-4 tunnels (used for multicast forwarding between networks that aren't directly connected) not to work by intercepting the wrong protocol number. This should fix a bug reported previously by someone I don't remember. --- sys/netinet/in_proto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index d1d8677a560..32515f760dd 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * From: @(#)in_proto.c 8.1 (Berkeley) 6/10/93 - * $Id: in_proto.c,v 1.14 1995/05/11 00:13:17 wollman Exp $ + * $Id: in_proto.c,v 1.16 1995/06/13 17:51:09 wollman Exp $ */ #include @@ -123,7 +123,7 @@ struct protosw inetsw[] = { rip_usrreq, 0, 0, 0, 0, }, -{ SOCK_RAW, &inetdomain, IPPROTO_ENCAP, PR_ATOMIC|PR_ADDR, +{ SOCK_RAW, &inetdomain, IPPROTO_IPIP, PR_ATOMIC|PR_ADDR, ipip_input, rip_output, 0, rip_ctloutput, rip_usrreq, 0, 0, 0, 0,