misc/87455: bsnmp doesn't show correct status for ifOperStatus
John Fleming
john.fleming-eds at eds.com
Fri Oct 14 12:00:31 PDT 2005
>Number: 87455
>Category: misc
>Synopsis: bsnmp doesn't show correct status for ifOperStatus
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 14 19:00:28 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: John Fleming
>Release: FreeBSD 6.0-RC1
>Organization:
pfSense
>Environment:
FreeBSD 6.0-RC1 Generic (#0) i386 (no copy/past access from host)
>Description:
bsnmp always ifOperStatus as down for all interfaces.
>How-To-Repeat:
snmpwalk -v1 -c public 127.0.0.1.
IF-MIB::ifOperstatus.1 = INTEGER down(2)
IF-MIB::ifOperStatus.2 = INTEGER down(2)
1. is plip
2. is lo0
>Fix:
i tried changing (mibII_interfacces.c) IFF_RUNNING to IFF_DRV_RUNNING as per net/if.h but that didn't help. I'm not sure if this is part of the problem or not but bsnmp uses a mibifdata struct called ifp to get the interface info (like IFF_UP which seems to be ifAdminStatus which works correctly) however the drivers for nics seem to set via a ifnet struct also called ifp. I don't know if that is part of the problem or not.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list