summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-07-29 04:29:44 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-07-29 04:29:44 +0000
commit9d20fdf9f0f310976e73bf69dbc0aa581869853f (patch)
tree819f5ce7624f1b46c8a8f622f4aa8c261095ac4a /net-mgmt
parentUpgrade to 2.5.10. (diff)
Fix enumeration after interface without address.
Submitted by: billf PR: ports/28717
Notes
Notes: svn path=/head/; revision=63689
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/net-snmp-devel/Makefile2
-rw-r--r--net-mgmt/net-snmp-devel/files/patch-interfaces.c16
-rw-r--r--net-mgmt/net-snmp/Makefile2
-rw-r--r--net-mgmt/net-snmp/files/patch-interfaces.c16
-rw-r--r--net-mgmt/net-snmp53/Makefile2
-rw-r--r--net-mgmt/net-snmp53/files/patch-interfaces.c16
6 files changed, 51 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp-devel/Makefile b/net-mgmt/net-snmp-devel/Makefile
index 0e76f7225b3d..3cdf327afabe 100644
--- a/net-mgmt/net-snmp-devel/Makefile
+++ b/net-mgmt/net-snmp-devel/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-mgmt/net-snmp-devel/files/patch-interfaces.c b/net-mgmt/net-snmp-devel/files/patch-interfaces.c
new file mode 100644
index 000000000000..c9d465c00859
--- /dev/null
+++ b/net-mgmt/net-snmp-devel/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;
+ }
+ }
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 0e76f7225b3d..3cdf327afabe 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/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-mgmt/net-snmp/files/patch-interfaces.c b/net-mgmt/net-snmp/files/patch-interfaces.c
new file mode 100644
index 000000000000..c9d465c00859
--- /dev/null
+++ b/net-mgmt/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;
+ }
+ }
diff --git a/net-mgmt/net-snmp53/Makefile b/net-mgmt/net-snmp53/Makefile
index 0e76f7225b3d..3cdf327afabe 100644
--- a/net-mgmt/net-snmp53/Makefile
+++ b/net-mgmt/net-snmp53/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-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;
+ }
+ }