summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches/patch-ai
diff options
context:
space:
mode:
Diffstat (limited to 'net/net-snmp/patches/patch-ai')
-rw-r--r--net/net-snmp/patches/patch-ai21
1 files changed, 21 insertions, 0 deletions
diff --git a/net/net-snmp/patches/patch-ai b/net/net-snmp/patches/patch-ai
new file mode 100644
index 00000000000..ca9b235a122
--- /dev/null
+++ b/net/net-snmp/patches/patch-ai
@@ -0,0 +1,21 @@
+$NetBSD: patch-ai,v 1.1 2004/05/14 13:32:11 adam Exp $
+
+--- agent/mibgroup/mibII/tcpTable.c.orig 2004-03-15 23:27:45.000000000 +0000
++++ agent/mibgroup/mibII/tcpTable.c
+@@ -88,6 +88,7 @@ struct netsnmp_inpcb_s {
+ int state;
+ netsnmp_inpcb *inp_next;
+ };
++#define INP_NEXT_SYMBOL inp_next
+ #define TCPTABLE_ENTRY_TYPE netsnmp_inpcb
+ #define TCPTABLE_STATE state
+ #define TCPTABLE_LOCALADDRESS pcb.inp_laddr.s_addr
+@@ -771,7 +772,7 @@ tcpTable_load(netsnmp_cache *cache, void
+ nnew->state == 8 /* closeWait */ )
+ tcp_estab++;
+
+- entry = nnew->inp_queue.cqe_next; /* Next kernel entry */
++ entry = nnew->INP_NEXT_SYMBOL; /* Next kernel entry */
+ nnew->inp_next = tcp_head;
+ tcp_head = nnew;
+