new
This commit is contained in:
parent
9fe7e1a14c
commit
9aec88f29c
12 changed files with 493 additions and 232 deletions
20
src/libip/freeipifc.c
Normal file
20
src/libip/freeipifc.c
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include <ip.h>
|
||||
|
||||
void
|
||||
freeipifc(Ipifc *i)
|
||||
{
|
||||
Ipifc *next;
|
||||
Iplifc *l, *lnext;
|
||||
|
||||
for(; i; i=next){
|
||||
next = i->next;
|
||||
for(l=i->lifc; l; l=lnext){
|
||||
lnext = l->next;
|
||||
free(l);
|
||||
}
|
||||
free(i);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue