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.
This commit is contained in:
wollman 1997-01-21 21:08:09 +00:00
parent a4845fcc5a
commit a159cf05c6
2 changed files with 2 additions and 1 deletions

View File

@ -412,7 +412,7 @@ ip_input(struct mbuf *m)
*/
IN_LOOKUP_MULTI(ip->ip_dst, m->m_pkthdr.rcvif, inm);
if (inm == NULL) {
ipstat.ips_cantforward++;
ipstat.ips_notmember++;
m_freem(m);
return;
}

View File

@ -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