NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/39581: net-snmp server doesn't work on -current



>Number:         39581
>Category:       kern
>Synopsis:       net-snmp server doesn't work on -current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 18 20:00:00 +0000 2008
>Originator:     Matthias Drochner
>Release:        current
>Organization:
FZJ
>Environment:
NetBSD zelz27 4.99.72 NetBSD 4.99.72 (MIST+MP) #188: Thu Sep 18 14:29:48 MEST 20
08  drochner@zelz27:/home/drochner/netbsd/work.src.usbdev/sys/arch/i386/compile/
MIST+MP i386
>Description:
Since the structure definitions for network / IP related counters
were removed from the kernel headers, a net-snmpd server doesn't
report useful values for affected variables.
(It might be considered an application problem, but it was
caused by removal of classical APIs.)

>How-To-Repeat:
Start an snmpd built on -current:
snmpd -f -c snmpd.conf

Query some IP related counter, eg:
$ snmpwalk -Os -c public -v 1 localhost ipInReceives
ipInReceives.0 = Counter32: 3217022904
$ snmpwalk -Os -c public -v 1 localhost tcpPassiveOpens
tcpPassiveOpens.0 = Counter32: 0

(The counters don't change.)

>Fix:
Either put back the BSD statistics definitions, as
"struct ipstat" in <netinet/ip_var.h>, or provide
patches for net-snmp to use the (NetBSD specific)
IP_STAT_* etc definitions.



Home | Main Index | Thread Index | Old Index