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:
parent
a4845fcc5a
commit
a159cf05c6
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user