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
3cf6d2e792
commit
82c39223b9
@ -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;
|
||||
}
|
||||
|
@ -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…
x
Reference in New Issue
Block a user