summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-05-05 17:07:13 -0700
committerDavid S. Miller <davem@davemloft.net>2006-05-05 17:07:13 -0700
commit1c29fc4989bc2a3838b2837adc12b8aeb0feeede (patch)
treef278c0d3da836be2cff9b3a8ec577e803d5e522f /net
parent35d63edb1c807bc5317e49592260e84637bc432e (diff)
downloadop-kernel-dev-1c29fc4989bc2a3838b2837adc12b8aeb0feeede.zip
op-kernel-dev-1c29fc4989bc2a3838b2837adc12b8aeb0feeede.tar.gz
[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 <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/bridge/br_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c
index b0b7f55..bfa4d8c 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);
OpenPOWER on IntegriCloud