$OpenBSD: patch-agent_mibgroup_mibII_tcpTable_c,v 1.9 2014/12/09 15:20:06 sthen Exp $ --- agent/mibgroup/mibII/tcpTable.c.orig Mon Dec 8 16:23:22 2014 +++ agent/mibgroup/mibII/tcpTable.c Tue Jun 12 04:55:55 2018 @@ -101,7 +101,7 @@ struct netsnmp_inpcb_s { netsnmp_inpcb *inp_next; }; #undef INP_NEXT_SYMBOL -#define INP_NEXT_SYMBOL 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 @@ -974,7 +974,7 @@ tcpTable_load(netsnmp_cache *cache, void *vmagic) /* * Set up a linked list */ - entry = table.inpt_queue.cqh_first; + entry = TAILQ_FIRST(&table.inpt_queue); while (entry) { nnew = SNMP_MALLOC_TYPEDEF(netsnmp_inpcb); @@ -998,7 +998,7 @@ tcpTable_load(netsnmp_cache *cache, void *vmagic) nnew->inp_next = tcp_head; tcp_head = nnew; - if (entry == table.inpt_queue.cqh_first) + if (entry == TAILQ_FIRST(&table.inpt_queue)) break; }