Date: Fri, 14 Oct 2005 18:55:51 GMT From: John Fleming <john.fleming-eds@eds.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/87455: bsnmp doesn't show correct status for ifOperStatus Message-ID: <200510141855.j9EItpaO067247@www.freebsd.org> Resent-Message-ID: <200510141900.j9EJ0Snp061346@freefall.freebsd.org>
index | next in thread | raw e-mail
>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:
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510141855.j9EItpaO067247>
