summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp53/files/patch-interfaces.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/net-snmp53/files/patch-interfaces.c')
-rw-r--r--net-mgmt/net-snmp53/files/patch-interfaces.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp53/files/patch-interfaces.c b/net-mgmt/net-snmp53/files/patch-interfaces.c
new file mode 100644
index 000000000000..c9d465c00859
--- /dev/null
+++ b/net-mgmt/net-snmp53/files/patch-interfaces.c
@@ -0,0 +1,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;
+ }
+ }