Netgraph ng_bridge status message missing last three values?



I'm diagnosing a system that uses the Netgraph ng_bridge node to bridge two Ethernet segments and the system seems to stop passing traffic at randomly-triggered points (somewhat annoying for a system half a world away behind a very restrictive firewall :-)

I've installed a cron job to dump the Netgraph bridge status messages to a log file every few minutes. However, I've found that the ng_bridge status message looks like this:

> ngctl msg bnet0: getstats 0
STATS=Rec'd response "getstats" (4) from "[10]:":
Args: { recvOctets=474229151 recvPackets=3322699 recvMulticast=128640 recvBroadcast=105813 recvUnknown=2372 xmitOctets=516954216 xmitPackets=2968420 xmitMulticasts=8 xmitBroadcasts=339 }

but to aid diagnosis I would really like to see several values that, according to ng_bridge.h, are in the stats structure, including
recvRunts, recvInvalid, loopDrops, loopDetects, and memoryFailures. It looks like all the code is there to report the values of these variables, but I can't seem to find anything that is dropping these variables from ngctl's output.

Any help is greatly appreciated,
Guy

--
Guy Helmer, Ph.D.
Chief System Architect
Palisade Systems, Inc.

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • ng_ether vs bridge Was: bridge callbacks in if_ed.c?
    ... What we need to achieve is to return from netgraph into the same place ... That will not be a hack and will also remove another ... that there are plans to convert bridge to use pfil-hooks. ... A> code and the layer2 ethernet firewalling. ...
    (freebsd-net)
  • Re: xxconfig for if_bridge
    ... > for example bridge together 3 remote sites connected by ipsec tunnels. ... Where Netgraph bridge implementations are concerned, ... New features, particularly spanning tree. ... the ifnet layer for future projects. ...
    (freebsd-net)
  • Re: Question about bridging code
    ... use netgraph to directly deliver the packets to your daemon.. ... (natd does this and doesn't make a huge difference..) ... > then you'd write and application to bridge between ... > Do you Yahoo!? ...
    (freebsd-net)
  • Re: Question about bridging code
    ... it looks like netgraph can do what I need to do. ... I guess once I moved away from the IP layer to the link layer, divert sockets ... >> bridge instead, and the transformation is to be performed on the bridged ...
    (freebsd-net)