summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches/patch-ey
diff options
context:
space:
mode:
Diffstat (limited to 'net/net-snmp/patches/patch-ey')
-rw-r--r--net/net-snmp/patches/patch-ey10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/net-snmp/patches/patch-ey b/net/net-snmp/patches/patch-ey
index 00fe9e456aa..42483181656 100644
--- a/net/net-snmp/patches/patch-ey
+++ b/net/net-snmp/patches/patch-ey
@@ -1,12 +1,12 @@
-$NetBSD: patch-ey,v 1.2 2010/07/20 08:33:44 adam Exp $
+$NetBSD: patch-ey,v 1.2.2.1 2010/11/28 14:04:37 tron Exp $
---- agent/mibgroup/mibII/tcp.c.orig 2009-11-13 12:59:26.000000000 +0000
+--- agent/mibgroup/mibII/tcp.c.orig 2010-10-19 03:54:58.000000000 +0000
+++ agent/mibgroup/mibII/tcp.c
@@ -167,6 +167,12 @@ init_tcp(void)
#define USES_SNMP_DESIGNED_TCPSTAT
#endif
-+#ifdef netbsd4
++#ifdef NETBSD_STATS_VIA_SYSCTL
+#define TCP_STAT_STRUCTURE struct tcp_mib
+#define USES_SNMP_DESIGNED_TCPSTAT
+#undef TCP_NSTATS
@@ -15,11 +15,11 @@ $NetBSD: patch-ey,v 1.2 2010/07/20 08:33:44 adam Exp $
#if defined (WIN32) || defined (cygwin)
#include <iphlpapi.h>
#define TCP_STAT_STRUCTURE MIB_TCPSTATS
-@@ -689,6 +695,21 @@ tcp_load(netsnmp_cache *cache, void *vma
+@@ -768,6 +774,21 @@ tcp_load(netsnmp_cache *cache, void *vma
}
return ret_value;
}
-+#elif defined(netbsd4)
++#elif defined(NETBSD_STATS_VIA_SYSCTL)
+int
+tcp_load(netsnmp_cache *cache, void *vmagic)
+{