summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches
diff options
context:
space:
mode:
authorshattered <shattered@pkgsrc.org>2011-10-17 19:40:26 +0000
committershattered <shattered@pkgsrc.org>2011-10-17 19:40:26 +0000
commit6a8b5f21ee64da037d572d56dbb0ea28efa4161f (patch)
treeb97066eb44af7b0076a55bad9c136e49b9a8a65d /net/net-snmp/patches
parent43d8d13cfcb2ba2ab38d8a6b34ce2c5cbf9b3c12 (diff)
downloadpkgsrc-6a8b5f21ee64da037d572d56dbb0ea28efa4161f.tar.gz
PR/44479 -- disable use of nlist() if we're using sysctl() to get IP stats.
Diffstat (limited to 'net/net-snmp/patches')
-rw-r--r--net/net-snmp/patches/patch-fa8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/net-snmp/patches/patch-fa b/net/net-snmp/patches/patch-fa
index 86268ce5aeb..941a697972b 100644
--- a/net/net-snmp/patches/patch-fa
+++ b/net/net-snmp/patches/patch-fa
@@ -1,13 +1,17 @@
-$NetBSD: patch-fa,v 1.3 2011/05/27 10:55:26 adam Exp $
+$NetBSD: patch-fa,v 1.4 2011/10/17 19:40:26 shattered Exp $
--- include/net-snmp/system/netbsd.h.orig 2009-04-09 08:48:32.000000000 +0000
+++ include/net-snmp/system/netbsd.h
-@@ -38,6 +38,10 @@
+@@ -38,6 +38,14 @@
# define netbsd1 netbsd1
#endif
+#if __NetBSD_Version__ >= 499005800
+#define NETBSD_STATS_VIA_SYSCTL
++#undef IPSTAT_SYMBOL
++#undef ICMPSTAT_SYMBOL
++#undef TCPSTAT_SYMBOL
++#undef UDPSTAT_SYMBOL
+#endif /* __NetBSD_Version__ >= 499005800 */
+
/* define the extra mib modules that are supported */