From 82c39223b9af034dce5fe6d2466d77e888b37a12 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Tue, 21 Jan 1997 21:08:09 +0000 Subject: [PATCH] Count multicast packets received for groups of which we are not a member separately from generic ``can't forward'' packets. This would have helped me find the previous bug much faster. --- sys/netinet/ip_input.c | 2 +- sys/netinet/ip_var.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 8ac811f4655b..48dfff18e17b 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -412,7 +412,7 @@ tooshort: */ IN_LOOKUP_MULTI(ip->ip_dst, m->m_pkthdr.rcvif, inm); if (inm == NULL) { - ipstat.ips_cantforward++; + ipstat.ips_notmember++; m_freem(m); return; } diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index 28f930e20293..5f595b51c0f6 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -147,6 +147,7 @@ struct ipstat { u_long ips_badvers; /* ip version != 4 */ u_long ips_rawout; /* total raw ip packets generated */ u_long ips_toolong; /* ip length > max ip packet size */ + u_long ips_notmember; /* multicasts for unregistered grps */ }; #ifdef KERNEL