plan 9 kernel history: overview | file list | diff list

1994/0629/port/netif.c (diff list | history)

1994/0624/sys/src/9/port/netif.c:213,2181994/0629/sys/src/9/port/netif.c:213,220 (short | long | prev | next)
1993/0525    
	f = nif->f[NETID(c->qid.path)]; 
	if(p = matchtoken(buf, "connect")){ 
		f->type = atoi(p); 
1994/0629    
		if(f->type < 0) 
			nif->all++; 
1993/0525    
	} else if(matchtoken(buf, "promiscuous")){ 
		f->prom = 1; 
		nif->prom++; 
1994/0624/sys/src/9/port/netif.c:264,2691994/0629/sys/src/9/port/netif.c:266,276
1993/0525    
			qlock(nif); 
			if(--(nif->prom) == 0) 
				(*nif->promiscuous)(nif->arg, 0); 
1994/0629    
			qunlock(nif); 
		} 
		if(f->type < 0){ 
			qlock(nif); 
			--(nif->all); 
1993/0525    
			qunlock(nif); 
		} 
		f->owner[0] = 0; 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)