From nobody@FreeBSD.org  Fri Oct 14 18:55:55 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 74D4E16A420
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2005 18:55:55 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 421EE43D69
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2005 18:55:51 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9EItpBv067248
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2005 18:55:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9EItpaO067247;
	Fri, 14 Oct 2005 18:55:51 GMT
	(envelope-from nobody)
Message-Id: <200510141855.j9EItpaO067247@www.freebsd.org>
Date: Fri, 14 Oct 2005 18:55:51 GMT
From: John Fleming <john.fleming-eds@eds.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsnmp doesn't show correct status for ifOperStatus
X-Send-Pr-Version: www-2.3

>Number:         87455
>Category:       kern
>Synopsis:       bsnmp doesn't show correct status for ifOperStatus
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    csjp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 19:00:28 GMT 2005
>Closed-Date:    Wed Nov 30 02:32:49 GMT 2005
>Last-Modified:  Wed Nov 30 02:32:49 GMT 2005
>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:
Responsible-Changed-From-To: freebsd-bugs->harti 
Responsible-Changed-By: rodrigc 
Responsible-Changed-When: Fri Oct 14 19:02:56 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87455 
State-Changed-From-To: open->analyzed 
State-Changed-By: csjp 
State-Changed-When: Sat Oct 22 23:15:22 GMT 2005 
State-Changed-Why:  
I have a fix for this and I have given it to the submitter just 
waiting to hear back. 


Responsible-Changed-From-To: harti->csjp 
Responsible-Changed-By: csjp 
Responsible-Changed-When: Sat Oct 22 23:15:22 GMT 2005 
Responsible-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=87455 
State-Changed-From-To: analyzed->patched 
State-Changed-By: csjp 
State-Changed-When: Thu Nov 3 16:44:32 GMT 2005 
State-Changed-Why:  
There was two fixes for this problem, one in the kernel and 
another for userspace. Harti has committed the change to 
bsnmpd into his vendor branch, and the kernel fix was committed 
to head. 

Thanks for the report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87455 
State-Changed-From-To: patched->closed 
State-Changed-By: csjp 
State-Changed-When: Wed Nov 30 02:32:22 GMT 2005 
State-Changed-Why:  
This has been fixed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87455 
>Unformatted:
