Date: Tue, 10 May 2011 05:33:38 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r221724 - in stable/8/contrib/bsnmp: snmp_mibII snmpd Message-ID: <201105100533.p4A5Xcrr028572@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ru Date: Tue May 10 05:33:37 2011 New Revision: 221724 URL: http://svn.freebsd.org/changeset/base/221724 Log: MFC r221373: Properly detect interface's state in the LINK_STATE_UNKNOWN case. Modified: stable/8/contrib/bsnmp/snmp_mibII/mibII_interfaces.c Directory Properties: stable/8/contrib/bsnmp/ (props changed) stable/8/contrib/bsnmp/snmpd/bsnmpd.1 (props changed) Modified: stable/8/contrib/bsnmp/snmp_mibII/mibII_interfaces.c ============================================================================== --- stable/8/contrib/bsnmp/snmp_mibII/mibII_interfaces.c Tue May 10 05:30:06 2011 (r221723) +++ stable/8/contrib/bsnmp/snmp_mibII/mibII_interfaces.c Tue May 10 05:33:37 2011 (r221724) @@ -289,8 +289,7 @@ op_ifentry(struct snmp_context *ctx, str * cable) and hence return 'dormant'. */ if (ifp->mib.ifmd_flags & IFF_RUNNING) { - if (ifp->mib.ifmd_data.ifi_link_state == - LINK_STATE_DOWN) + if (ifp->mib.ifmd_data.ifi_link_state != LINK_STATE_UP) value->v.integer = 5; /* state dormant */ else value->v.integer = 1; /* state up */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105100533.p4A5Xcrr028572>