summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp-devel/files/patch-interfaces.c
blob: c9d465c00859aba2dd85d27e334d001a26e7ebc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- agent/mibgroup/mibII/interfaces.c.orig	Sat Jun  8 00:18:03 2002
+++ agent/mibgroup/mibII/interfaces.c	Mon Jul 29 12:35:08 2002
@@ -555,11 +555,9 @@
                         ifp->ifm_type));
         }
     }
-    if (have_ifinfo && have_addr) {
+    if (have_ifinfo) {
         return 0;
-    } else if (have_ifinfo && !(if_msg->ifm_flags & IFF_UP))
-        return 0;
-    else {
+    } else {
         return -1;
     }
 }