Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163609173
D28537.id83537.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
774 B
Referenced Files
None
Subscribers
None
D28537.id83537.diff
View Options
Index: sys/netgraph/ng_bridge.c
===================================================================
--- sys/netgraph/ng_bridge.c
+++ sys/netgraph/ng_bridge.c
@@ -838,6 +838,18 @@
* If we've sent all the others, send the original
* on the first link we found.
*/
+ counter_u64_add(ctx.foundFirst->stats.xmitPackets, 1);
+ counter_u64_add(ctx.foundFirst->stats.xmitOctets, ctx.m->m_pkthdr.len);
+ switch (ctx.manycast) {
+ default: /* unknown unicast */
+ break;
+ case 1: /* multicast */
+ counter_u64_add(ctx.foundFirst->stats.xmitMulticasts, 1);
+ break;
+ case 2: /* broadcast */
+ counter_u64_add(ctx.foundFirst->stats.xmitBroadcasts, 1);
+ break;
+ }
NG_FWD_NEW_DATA(ctx.error, item, ctx.foundFirst->hook, ctx.m);
return (ctx.error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 25, 9:05 PM (6 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35496117
Default Alt Text
D28537.id83537.diff (774 B)
Attached To
Mode
D28537: netgraph/ng_bridge: Add counters for the first link, too.
Attached
Detach File
Event Timeline
Log In to Comment