64-bit SNMP counters for FreeBSD && graphing bandwidth usage

Harti Brandt hartmut.brandt at dlr.de
Tue Feb 14 00:51:00 PST 2006


On Tue, 14 Feb 2006, Gleb Smirnoff wrote:

GS>On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote:
GS>H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port
GS>H> AN>161 still. Anyway, it seems bsnmpd insists these are 10 mbps interfaces?
GS>H> AN>Why so?
GS>H> 
GS>H> The driver reports a speed of 10Mbits/sec. ifHighSpeed is ifi_baudrate 
GS>H> divided by 10^6 (and rounded). This is the default set by ether_ifattach() 
GS>H> if the driver did not set another value. It seems that bge never sets that 
GS>H> value so you end up with the default. This looks like a bug.
GS>
GS>Harti, we are thinking in parallel :)

:-)

GS>Andres, pls try the attached patch.

I wonder however, whether this could be done somewhere in mii? When 
setting ifmedia also the speed could be set. In this case SNMP would 
report the actual current speed.

harti


More information about the freebsd-net mailing list