From: Stephen Hemminger Date: Sat, 6 May 2006 00:07:13 +0000 (-0700) Subject: [BRIDGE]: keep track of received multicast packets X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1c29fc4989bc2a3838b2837adc12b8aeb0feeede;p=openwrt%2Fstaging%2Fblogic.git [BRIDGE]: keep track of received multicast packets It makes sense to add this simple statistic to keep track of received multicast packets. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c index b0b7f55c1edd..bfa4d8c333f7 100644 --- a/net/bridge/br_input.c +++ b/net/bridge/br_input.c @@ -66,6 +66,7 @@ int br_handle_frame_finish(struct sk_buff *skb) } if (is_multicast_ether_addr(dest)) { + br->statistics.multicast++; br_flood_forward(br, skb, !passedup); if (!passedup) br_pass_frame_up(br, skb);