5315fbba5b
ok sthen@
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
$OpenBSD: patch-agent_mibgroup_mibII_tcpTable_c,v 1.6 2008/09/20 22:15:51 rui Exp $
|
|
--- agent/mibgroup/mibII/tcpTable.c.orig Sun Oct 14 13:12:58 2007
|
|
+++ agent/mibgroup/mibII/tcpTable.c Fri Sep 19 18:04:38 2008
|
|
@@ -456,7 +456,7 @@ tcpTable_next_entry( void **loop_context,
|
|
* and update the loop context ready for the next one.
|
|
*/
|
|
*data_context = (void*)entry;
|
|
- *loop_context = (void*)entry->INP_NEXT_SYMBOL;
|
|
+ *loop_context = (void*)entry->inp_next;
|
|
return index;
|
|
}
|
|
|
|
@@ -466,7 +466,7 @@ tcpTable_free(netsnmp_cache *cache, void *magic)
|
|
TCPTABLE_ENTRY_TYPE *p;
|
|
while (tcp_head) {
|
|
p = tcp_head;
|
|
- tcp_head = tcp_head->INP_NEXT_SYMBOL;
|
|
+ tcp_head = tcp_head->inp_next;
|
|
free(p);
|
|
}
|
|
|
|
@@ -811,7 +811,7 @@ tcpTable_load(netsnmp_cache *cache, void *vmagic)
|
|
nnew->state == 8 /* closeWait */ )
|
|
tcp_estab++;
|
|
|
|
- entry = nnew->INP_NEXT_SYMBOL; /* Next kernel entry */
|
|
+ entry = nnew->inp_next; /* Next kernel entry */
|
|
nnew->inp_next = tcp_head;
|
|
tcp_head = nnew;
|
|
|