natm_pcb.c (71999) | natm_pcb.c (92745) |
---|---|
1/* $FreeBSD: head/sys/netnatm/natm_pcb.c 71999 2001-02-04 13:13:25Z phk $ */ | 1/* $FreeBSD: head/sys/netnatm/natm_pcb.c 92745 2002-03-20 02:39:27Z alfred $ */ |
2/* $NetBSD: natm_pcb.c,v 1.4 1996/11/09 03:26:27 chuck Exp $ */ 3 4/* 5 * 6 * Copyright (c) 1996 Charles D. Cranor and Washington University. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 154 unchanged lines hidden (view full) --- 164 splx(s); 165 return(cpcb); 166} 167 168 169 170#ifdef DDB 171 | 2/* $NetBSD: natm_pcb.c,v 1.4 1996/11/09 03:26:27 chuck Exp $ */ 3 4/* 5 * 6 * Copyright (c) 1996 Charles D. Cranor and Washington University. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 154 unchanged lines hidden (view full) --- 164 splx(s); 165 return(cpcb); 166} 167 168 169 170#ifdef DDB 171 |
172int npcb_dump __P((void)); | 172int npcb_dump(void); |
173 174int npcb_dump() 175 176{ 177 struct natmpcb *cpcb; 178 179 printf("npcb dump:\n"); 180 for (cpcb = LIST_FIRST(&natm_pcbs) ; cpcb != NULL ; 181 cpcb = LIST_NEXT(cpcb, pcblist)) { 182 printf("if=%s, vci=%d, vpi=%d, IP=0x%x, sock=%p, flags=0x%x, inq=%d\n", 183 cpcb->npcb_ifp->if_xname, cpcb->npcb_vci, cpcb->npcb_vpi, 184 cpcb->ipaddr.s_addr, cpcb->npcb_socket, 185 cpcb->npcb_flags, cpcb->npcb_inq); 186 } 187 printf("done\n"); 188 return(0); 189} 190 191#endif | 173 174int npcb_dump() 175 176{ 177 struct natmpcb *cpcb; 178 179 printf("npcb dump:\n"); 180 for (cpcb = LIST_FIRST(&natm_pcbs) ; cpcb != NULL ; 181 cpcb = LIST_NEXT(cpcb, pcblist)) { 182 printf("if=%s, vci=%d, vpi=%d, IP=0x%x, sock=%p, flags=0x%x, inq=%d\n", 183 cpcb->npcb_ifp->if_xname, cpcb->npcb_vci, cpcb->npcb_vpi, 184 cpcb->ipaddr.s_addr, cpcb->npcb_socket, 185 cpcb->npcb_flags, cpcb->npcb_inq); 186 } 187 printf("done\n"); 188 return(0); 189} 190 191#endif |