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

1999/1031/ip/ipifc.c (diff list | history)

1999/1029/sys/src/9/ip/ipifc.c:463,4681999/1031/sys/src/9/ip/ipifc.c:463,470 (short | long | prev | next)
Format edit.
rsc Fri Mar 4 12:44:25 2005
1998/0306    
	uchar mask[IPaddrlen]; 
	Iplifc *lifc, **l; 
1998/0313    
	Fs *f; 
1999/1031    
	uchar *addr; 
	int type; 
1998/0306    
 
	if(argc < 3) 
		return Ebadarg; 
1999/1029/sys/src/9/ip/ipifc.c:490,4961999/1031/sys/src/9/ip/ipifc.c:492,499
1999/1029    
		addr = lifc->local; 
		if(type == Rptpt) 
			addr = lifc->remote; 
		if(memcmp(ip, addr, IPaddrlen) == 0 && memcmp(mask, lifc->mask, IPaddrlen) == 0) { 
1999/1031    
		if(memcmp(ip, addr, IPaddrlen) == 0) 
		if(memcmp(mask, lifc->mask, IPaddrlen) == 0) { 
1998/0306    
			*l = lifc->next; 
			break; 
		} 


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