projects/linux·commit 1c29fc49

[BRIDGE]: keep track of received multicast packets

1c29fc49 · Stephen Hemminger <[email protected]> · 2006-05-05 17:07:13 -07:00

It makes sense to add this simple statistic to keep track of received
multicast packets.

Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Commit
1c29fc4989bc2a3838b2837adc12b8aeb0feeede
Parents
35d63edb

Changes

1 files changed · +1 −0

FileStatusAddDelContent
net/bridge/br_input.cmodified+1−0View file

net/bridge/br_input.c

View file
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);