changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/ip/ipifc.c

revision 7233: 24d21d7c0868
parent 7231: 7c0cb11e474d
child 7430: 88a2f67638e2
     1.1--- a/sys/src/9/ip/ipifc.c
     1.2+++ b/sys/src/9/ip/ipifc.c
     1.3@@ -26,12 +26,10 @@ Medium *media[Maxmedia] = { 0 };
     1.4 struct Ipself
     1.5 {
     1.6 	uchar	a[IPaddrlen];
     1.7-	Ipself	*hnext;		/* next address in the hash table */
     1.8+	Ipself	*next;		/* next address in the hash table */
     1.9 	Iplink	*link;		/* binding twixt Ipself and Ipifc */
    1.10 	ulong	expire;
    1.11 	uchar	type;		/* type of address */
    1.12-	int	ref;
    1.13-	Ipself	*next;		/* free list */
    1.14 };
    1.15 
    1.16 struct Ipselftab
    1.17@@ -1100,7 +1098,6 @@ ipselftabread(Fs *f, char *cp, ulong off
    1.18 
    1.19 	m = 0;
    1.20 	off = offset;
    1.21-	qlock(f->self);
    1.22 	for(i = 0; i < NHASH && m < n; i++){
    1.23 		for(p = f->self->hash[i]; p != nil && m < n; p = p->next){
    1.24 			nifc = 0;
    1.25@@ -1115,7 +1112,6 @@ ipselftabread(Fs *f, char *cp, ulong off
    1.26 			}
    1.27 		}
    1.28 	}
    1.29-	qunlock(f->self);
    1.30 	return m;
    1.31 }
    1.32