summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches/patch-ai
blob: ca9b235a122ebb2acbac752a7e2ba1c12b553612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;