Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2011 10:11:45 +0000 (UTC)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221373 - head/contrib/bsnmp/snmp_mibII
Message-ID:  <201105031011.p43ABjcm080102@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ru
Date: Tue May  3 10:11:44 2011
New Revision: 221373
URL: http://svn.freebsd.org/changeset/base/221373

Log:
  Properly detect interface's state in the LINK_STATE_UNKNOWN case.
  
  MFC after:	1 week

Modified:
  head/contrib/bsnmp/snmp_mibII/mibII_interfaces.c

Modified: head/contrib/bsnmp/snmp_mibII/mibII_interfaces.c
==============================================================================
--- head/contrib/bsnmp/snmp_mibII/mibII_interfaces.c	Tue May  3 10:08:11 2011	(r221372)
+++ head/contrib/bsnmp/snmp_mibII/mibII_interfaces.c	Tue May  3 10:11:44 2011	(r221373)
@@ -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?201105031011.p43ABjcm080102>