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

2002/0424/ip/ip.c (diff list | history)

2001/1117/sys/src/9/ip/ip.c:354,3592002/0424/sys/src/9/ip/ip.c:354,360 (short | long | prev | next)
1998/0313    
	uchar *dp, v6dst[IPaddrlen]; 
	IP *ip; 
1998/1209    
	Route *r, *sr; 
2002/0424    
	int olen; 
1997/0327    
 
1998/0313    
	ip = f->ip; 
2000/0706    
	ip->stats[InReceives]++; 
2001/1117/sys/src/9/ip/ip.c:401,4112002/0424/sys/src/9/ip/ip.c:402,414
1998/0313    
		} 
		/* If this is not routed strip off the options */ 
		if(notforme == 0) { 
2002/0424    
			olen = nhgets(h->length); 
1998/0313    
			dp = bp->rp + (hl - (IP_HLEN<<2)); 
			memmove(dp, h, IP_HLEN<<2); 
			bp->rp = dp; 
			h = (Iphdr *)(bp->rp); 
			h->vihl = (IP_VER|IP_HLEN); 
2002/0424    
			hnputs(h->length, olen-hl+(IP_HLEN<<2)); 
1998/0313    
		} 
	} 
 


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