This commit is contained in:
rsc 2005-12-31 19:33:03 +00:00
parent 9fe7e1a14c
commit 9aec88f29c
12 changed files with 493 additions and 232 deletions

20
src/libip/freeipifc.c Normal file
View 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);
}
}