From 6c4b8d672e7d388dcf8ba94174c59e796dbbfcd0 Mon Sep 17 00:00:00 2001 From: Paul Traina Date: Mon, 31 Oct 1994 06:36:47 +0000 Subject: [PATCH] Detect old-style multicast routers and interoperate properly --- sys/netinet/igmp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c index 0986acf303a1..659e7b67a888 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);