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

2000/1111/ip/ip.c (diff list | history)

2000/1111/sys/src/9/ip/ip.c:206,2122001/0430/sys/src/9/ip/ip.c:206,213 (short | long | prev | next)
1999/10041    
	if(!gating) 
1997/0327    
		eh->vihl = IP_VER|IP_HLEN; 
1999/10041    
	eh->ttl = ttl; 
	eh->tos = tos; 
2001/0430    
	if(!gating) 
		eh->tos = tos; 
1997/0327    
 
1999/0302    
	if(!canrlock(ifc)) 
		goto free; 
2000/1111/sys/src/9/ip/ip.c:223,2302001/0430/sys/src/9/ip/ip.c:224,233
1997/0327    
		if(!gating) 
1999/0302    
			hnputs(eh->id, incref(&ip->id)); 
1997/0327    
		hnputs(eh->length, len); 
		eh->frag[0] = 0; 
		eh->frag[1] = 0; 
2001/0430    
		if(!gating){ 
			eh->frag[0] = 0; 
			eh->frag[1] = 0; 
		} 
1997/0327    
		eh->cksum[0] = 0; 
		eh->cksum[1] = 0; 
		hnputs(eh->cksum, ipcsum(&eh->vihl)); 
2000/1111/sys/src/9/ip/ip.c:265,2712001/0430/sys/src/9/ip/ip.c:268,279
1997/0327    
	} 
	xp->rp += offset; 
 
	for(fragoff = 0; fragoff < dlen; fragoff += seglen) { 
2001/0430    
	if(gating) 
		fragoff = nhgets(eh->frag); 
	else 
		fragoff = 0; 
	dlen += fragoff; 
	for(; fragoff < dlen; fragoff += seglen) { 
1997/0327    
		nb = allocb(IPHDR+seglen); 
		feh = (Iphdr*)(nb->rp); 
 


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