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

1998/0813/ip/ip.c (diff list | history)

1998/0630/sys/src/9/ip/ip.c:116,1211998/0813/sys/src/9/ip/ip.c:116,125 (short | long | prev | next)
1998/0314    
iprouting(Fs *f, int on) 
{ 
	f->ip->iprouting = on; 
1998/0813    
	if(f->ip->iprouting==0) 
		f->ip->istats.ipForwarding = 2; 
	else 
		f->ip->istats.ipForwarding = 1;	 
1998/0314    
} 
 
void 
1998/0630/sys/src/9/ip/ip.c:373,3811998/0813/sys/src/9/ip/ip.c:377,387
1998/0306    
	if(notforme) { 
1998/0313    
		if(ip->iprouting) { 
1998/0306    
			/* gate */ 
			if(h->ttl <= 1) 
1998/0813    
			if(h->ttl <= 1){ 
				ip->istats.ipInHdrErrors++; 
				icmpttlexceeded(f, ia, bp); 
1998/0306    
				freeblist(bp); 
1998/0313    
			else { 
1998/0813    
			} else { 
1998/0313    
				ip->istats.ipForwDatagrams++; 
				ipoput(f, bp, 1, h->ttl - 1); 
			} 
1998/0630/sys/src/9/ip/ip.c:414,4191998/0813/sys/src/9/ip/ip.c:420,426
1998/0313    
	IP *ip; 
1997/0327    
 
1998/0313    
	ip = f->ip; 
1998/0813    
	ip->istats.ipDefaultTTL = MAXTTL; 
1998/0313    
	return snprint(buf, len, "%d %d %d %d %d %d %d %d %d %d " 
				 "%d %d %d %d %d %d %d %d %d", 
		ip->istats.ipForwarding, ip->istats.ipDefaultTTL, 


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