From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 14 19:00:31 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DF7316A439 for ; Fri, 14 Oct 2005 19:00:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22C7343D7D for ; Fri, 14 Oct 2005 19:00:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9EJ0Tji061347 for ; Fri, 14 Oct 2005 19:00:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9EJ0Snp061346; Fri, 14 Oct 2005 19:00:28 GMT (envelope-from gnats) Resent-Date: Fri, 14 Oct 2005 19:00:28 GMT Resent-Message-Id: <200510141900.j9EJ0Snp061346@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Fleming Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74D4E16A420 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/87455: bsnmp doesn't show correct status for ifOperStatus X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 19:00:31 -0000 >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: