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

1999/10041/ip/ip.c (diff list | history)

1999/1003/sys/src/9/ip/ip.c:180,1991999/10041/sys/src/9/ip/ip.c:180,189 (short | long | prev | next)
1998/0313    
	else 
1998/0306    
		gate = r->v4.gate; 
1998/0313    
 
1999/1003    
	if(gating){ 
		switch(eh->ttl){ 
		case 0: 
		case 1: 
			goto free; 
		default: 
			eh->ttl--; 
			break; 
		} 
	} else { 
1999/10041    
	if(!gating) 
1997/0327    
		eh->vihl = IP_VER|IP_HLEN; 
1999/0917    
		eh->ttl = ttl; 
		eh->tos = tos; 
1997/0327    
	} 
1999/10041    
	eh->ttl = ttl; 
	eh->tos = tos; 
1997/0327    
 
1999/0302    
	if(!canrlock(ifc)) 
		goto free; 


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