aboutsummaryrefslogtreecommitdiffstats
path: root/net/net-snmp
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2002-07-29 12:29:44 +0800
committerkuriyama <kuriyama@FreeBSD.org>2002-07-29 12:29:44 +0800
commit1552cfff6ff1a8f30cbaf5c6a1773dde1dfe5408 (patch)
tree4c79f28cfd0847f363d9ede5aca7a02bab0c6d69 /net/net-snmp
parent54c0dd5c065875a608f1dc2eba956c47cf9a9495 (diff)
downloadfreebsd-ports-gnome-1552cfff6ff1a8f30cbaf5c6a1773dde1dfe5408.tar.gz
freebsd-ports-gnome-1552cfff6ff1a8f30cbaf5c6a1773dde1dfe5408.tar.zst
freebsd-ports-gnome-1552cfff6ff1a8f30cbaf5c6a1773dde1dfe5408.zip
Fix enumeration after interface without address.
Submitted by: billf PR: ports/28717
Diffstat (limited to 'net/net-snmp')
-rw-r--r--net/net-snmp/Makefile2
-rw-r--r--net/net-snmp/files/patch-interfaces.c16
2 files changed, 17 insertions, 1 deletions
diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile
index 0e76f7225b3d..3cdf327afabe 100644
--- a/net/net-snmp/Makefile
+++ b/net/net-snmp/Makefile
@@ -7,7 +7,7 @@
PORTNAME= net-snmp
PORTVERSION= 5.0.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
diff --git a/net/net-snmp/files/patch-interfaces.c b/net/net-snmp/files/patch-interfaces.c
new file mode 100644
index 000000000000..c9d465c00859
--- /dev/null
+++ b/net/net-snmp/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;
+ }
+ }