diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2002-07-29 12:29:44 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2002-07-29 12:29:44 +0800 |
commit | 1552cfff6ff1a8f30cbaf5c6a1773dde1dfe5408 (patch) | |
tree | 4c79f28cfd0847f363d9ede5aca7a02bab0c6d69 /net-mgmt/net-snmp | |
parent | 54c0dd5c065875a608f1dc2eba956c47cf9a9495 (diff) | |
download | freebsd-ports-graphics-1552cfff6ff1a8f30cbaf5c6a1773dde1dfe5408.tar.gz freebsd-ports-graphics-1552cfff6ff1a8f30cbaf5c6a1773dde1dfe5408.tar.zst freebsd-ports-graphics-1552cfff6ff1a8f30cbaf5c6a1773dde1dfe5408.zip |
Fix enumeration after interface without address.
Submitted by: billf
PR: ports/28717
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/patch-interfaces.c | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index 0e76f7225b3..3cdf327afab 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 00000000000..c9d465c0085 --- /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; + } + } |