summaryrefslogtreecommitdiffstats
path: root/sys/netnatm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netnatm')
-rw-r--r--sys/netnatm/natm_pcb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netnatm/natm_pcb.c b/sys/netnatm/natm_pcb.c
index 46bcb7c..ccb253a 100644
--- a/sys/netnatm/natm_pcb.c
+++ b/sys/netnatm/natm_pcb.c
@@ -125,8 +125,8 @@ u_int8_t vpi;
* lookup required
*/
- for (cpcb = natm_pcbs.lh_first ; cpcb != NULL ;
- cpcb = cpcb->pcblist.le_next) {
+ for (cpcb = LIST_FIRST(&natm_pcbs) ; cpcb != NULL ;
+ cpcb = LIST_NEXT(cpcb, pcblist)) {
if (ifp == cpcb->npcb_ifp && vci == cpcb->npcb_vci && vpi == cpcb->npcb_vpi)
break;
}
@@ -177,8 +177,8 @@ int npcb_dump()
struct natmpcb *cpcb;
printf("npcb dump:\n");
- for (cpcb = natm_pcbs.lh_first ; cpcb != NULL ;
- cpcb = cpcb->pcblist.le_next) {
+ for (cpcb = LIST_FIRST(&natm_pcbs) ; cpcb != NULL ;
+ cpcb = LIST_NEXT(cpcb, pcblist)) {
printf("if=%s, vci=%d, vpi=%d, IP=0x%x, sock=%p, flags=0x%x, inq=%d\n",
cpcb->npcb_ifp->if_xname, cpcb->npcb_vci, cpcb->npcb_vpi,
cpcb->ipaddr.s_addr, cpcb->npcb_socket,
OpenPOWER on IntegriCloud