summaryrefslogtreecommitdiffstats
path: root/sys/netinet/igmp.c
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1994-10-31 06:36:47 +0000
committerpst <pst@FreeBSD.org>1994-10-31 06:36:47 +0000
commit84bb1b574715a020dd306aed26314bd40d5bb673 (patch)
tree475d528acac093c31e2a6dc5b4c6ed19d25af836 /sys/netinet/igmp.c
parent36ac854a6f615bf03dd8b02ae13eb27af758f0eb (diff)
downloadFreeBSD-src-84bb1b574715a020dd306aed26314bd40d5bb673.zip
FreeBSD-src-84bb1b574715a020dd306aed26314bd40d5bb673.tar.gz
Detect old-style multicast routers and interoperate properly
Diffstat (limited to 'sys/netinet/igmp.c')
-rw-r--r--sys/netinet/igmp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index 0986acf..659e7b6 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)igmp.c 8.1 (Berkeley) 7/19/93
- * $Id: igmp.c,v 1.4 1994/09/06 22:42:16 wollman Exp $
+ * $Id: igmp.c,v 1.5 1994/09/14 03:10:07 wollman Exp $
*/
/*
@@ -215,6 +215,13 @@ igmp_input(m, iphlen)
break;
if (igmp->igmp_code == 0) {
+
+ rti->type = IGMP_OLD_ROUTER; rti->time = 0;
+
+ /*
+ ** Do exactly as RFC 1112 says
+ */
+
if (ip->ip_dst.s_addr != igmp_all_hosts_group) {
++igmpstat.igps_rcv_badqueries;
m_freem(m);
OpenPOWER on IntegriCloud