Skip to contentSkip to conversation

Interface Statistics

Bridge Applied Paul C. Diem 3 participants 5 messages May 4, 2006 – May 6, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Is there anyway to get interface statistics such as multicast packets received/transmitted for the individual interfaces in a bridge or for the bridge as a whole?

Do the Receive/Transmit bytes/packets counters in /proc/net/dev reflect all packets received/transmitted (even those that were only bridged) or only those actually targeted to/irrigated from the server?

Thank you,

Paul C. Diem
[email protected]

#1 lore raw
Quoted 10 lines · On Thu, 4 May 2006 16:16:33 -0500 "Paul C. Diem" <[email protected]> wrote:

Is there anyway to get interface statistics such as multicast packets received/transmitted for the individual interfaces in a bridge or for the bridge as a whole?

Do the Receive/Transmit bytes/packets counters in /proc/net/dev reflect all packets received/transmitted (even those that were only bridged) or only those actually targeted to/irrigated from the server?

Thank you,

Quoted 7 lines

Paul C. Diem
[email protected]

_______________________________________________
Bridge mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/bridge

did you look at 'ip -s link'?

#2 lore raw

Yes, I did. ip -s link show always shows zero for multicast packets too.

Paul C. Diem
[email protected]

-----Original Message-----
From: Stephen Hemminger [mailto:[email protected]]
Sent: Thursday, May 04, 2006 4:36 PM
To: Paul C. Diem
Cc: [email protected]
Subject: Re: [Bridge] Interface Statistics

Quoted 5 lines · On Thu, 4 May 2006 16:16:33 -0500 "Paul C. Diem" <[email protected]> wrote:

Is there anyway to get interface statistics such as multicast packets received/transmitted for the individual interfaces in a bridge or for the bridge as a whole?

Do the Receive/Transmit bytes/packets counters in /proc/net/dev reflect

all

Quoted 5 lines

packets received/transmitted (even those that were only bridged) or only those actually targeted to/irrigated from the server?

Thank you,

Quoted 7 lines

Paul C. Diem
[email protected]

_______________________________________________
Bridge mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/bridge

did you look at 'ip -s link'?

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.2/329 - Release Date: 5/2/2006

#3 lore raw

PATCH 1/1 bridge: keep track of received multicast packets

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

net/bridge/br_input.c +1 -0
@@ -66,6 +66,7 @@
 	}
 
 	if (is_multicast_ether_addr(dest)) {
+		br->statistics.multicast++;
 		br_flood_forward(br, skb, !passedup);
 		if (!passedup)
 			br_pass_frame_up(br, skb);