summaryrefslogtreecommitdiff
path: root/sys/netinet/igmp.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-28 07:17:39 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-28 07:17:39 +0000
commitfe2f2bbaf86fdbcb4711e525c48bf89960e265ed (patch)
tree3dbf2ae46b8279f6334dd604a1f3ecf4eaf19a58 /sys/netinet/igmp.c
parent78a423fe65f91c13d5cad8eb362255b462b39bf4 (diff)
remove non-effective kame patch. openbsd ip_input() passes
different thing to the upper-layers than other KAME/*BSD does (additional NULL pointer and "0"), so live with that. (sync with kame)
Diffstat (limited to 'sys/netinet/igmp.c')
-rw-r--r--sys/netinet/igmp.c39
1 files changed, 2 insertions, 37 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index 25bc976f535..bafe27857e2 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -1,36 +1,7 @@
-/* $OpenBSD: igmp.c,v 1.6 1999/12/08 06:50:19 itojun Exp $ */
+/* $OpenBSD: igmp.c,v 1.7 1999/12/28 07:17:38 itojun Exp $ */
/* $NetBSD: igmp.c,v 1.15 1996/02/13 23:41:25 christos Exp $ */
/*
- * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the project nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-/*
* Internet Group Management Protocol (IGMP) routines.
*
* Written by Steve Deering, Stanford, May 1988.
@@ -151,7 +122,6 @@ igmp_input(m, va_alist)
va_dcl
#endif
{
- int proto;
register int iphlen;
register struct ifnet *ifp = m->m_pkthdr.rcvif;
register struct ip *ip = mtod(m, struct ip *);
@@ -167,7 +137,6 @@ igmp_input(m, va_alist)
va_start(ap, m);
iphlen = va_arg(ap, int);
- proto = va_arg(ap, int);
va_end(ap);
++igmpstat.igps_rcv_total;
@@ -415,8 +384,7 @@ igmp_input(m, va_alist)
* Pass all valid IGMP packets up to any process(es) listening
* on a raw IGMP socket.
*/
- rip_input(m, iphlen, proto);
- return;
+ rip_input(m);
}
void
@@ -571,9 +539,6 @@ igmp_sendpkt(inm, type)
imo.imo_multicast_loop = 0;
#endif /* MROUTING */
-#if 0 /*KAME IPSEC*/
- m->m_pkthdr.rcvif = NULL;
-#endif /*IPSEC*/
ip_output(m, (struct mbuf *)0, (struct route *)0, IP_MULTICASTOPTS,
&imo, NULL);