[BRIDGE]: keep track of received multicast packets
authorStephen Hemminger <shemminger@osdl.org>
Sat, 6 May 2006 00:07:13 +0000 (17:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 May 2006 00:07:13 +0000 (17:07 -0700)
It makes sense to add this simple statistic to keep track of received
multicast packets.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_input.c

index b0b7f55c1edd38f2901cfc450ac638ca6589dd80..bfa4d8c333f7b727946e40c4c33e159d4fdbfe2f 100644 (file)
@@ -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);