summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorMarco Pfatschbacher <mpf@cvs.openbsd.org>2005-08-11 12:55:32 +0000
committerMarco Pfatschbacher <mpf@cvs.openbsd.org>2005-08-11 12:55:32 +0000
commit6b36094755cc562af879bd2b1c45ad6a6334b064 (patch)
tree688c6788f99c3d09a33014794a57ad4775526869 /sys/netinet/ip_input.c
parent0f5937b0a2279b0ec5daaae8c37407f2cac23f32 (diff)
New counter for not joined IPv4 multicast groups.
Don't count link local scope multicast as not forwardable. This stops ips_cantforward growing on carp(4) networks. tested and ok mcbride@, ok markus@.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 63eac232f89..05bb18bae6e 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.130 2005/07/31 03:30:55 pascoe Exp $ */
+/* $OpenBSD: ip_input.c,v 1.131 2005/08/11 12:55:31 mpf Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -446,7 +446,9 @@ ipv4_input(m)
*/
IN_LOOKUP_MULTI(ip->ip_dst, m->m_pkthdr.rcvif, inm);
if (inm == NULL) {
- ipstat.ips_cantforward++;
+ ipstat.ips_notmember++;
+ if (!IN_LOCAL_GROUP(ip->ip_dst.s_addr))
+ ipstat.ips_cantforward++;
m_freem(m);
return;
}