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

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

1998/1209/sys/src/9/ip/ip.c:85,911999/0302/sys/src/9/ip/ip.c:85,91 (short | long | prev | next)
1998/0313    
	Fragment*	flisthead; 
	Fragment*	fragfree; 
 
	ulong		id; 
1999/0302    
	Ref		id; 
1998/0313    
	int		iprouting;			/* true if we route like a gateway */ 
	void 		(*ipextprotoiput)(Block*); 
}; 
1998/1209/sys/src/9/ip/ip.c:186,1961999/0302/sys/src/9/ip/ip.c:186,197
1997/0327    
		eh->ttl = ttl; 
	} 
 
1999/0302    
	if(!canrlock(ifc)) 
		goto free; 
1998/0307    
	if(waserror()){ 
		runlock(ifc); 
		nexterror(); 
	} 
1998/0630    
	rlock(ifc); 
1998/0307    
	if(ifc->m == nil) 
		goto raise; 
 
1998/1209/sys/src/9/ip/ip.c:198,2041999/0302/sys/src/9/ip/ip.c:199,205
1998/0306    
	medialen = ifc->m->maxmtu - ifc->m->hsize; 
1997/0327    
	if(len <= medialen) { 
		if(!gating) 
1998/0313    
			hnputs(eh->id, ip->id++); 
1999/0302    
			hnputs(eh->id, incref(&ip->id)); 
1997/0327    
		hnputs(eh->length, len); 
		eh->frag[0] = 0; 
		eh->frag[1] = 0; 
1998/1209/sys/src/9/ip/ip.c:231,2371999/0302/sys/src/9/ip/ip.c:232,238
1997/0327    
	if(gating) 
		lid = nhgets(eh->id); 
	else 
1998/0313    
		lid = ip->id++; 
1999/0302    
		lid = incref(&ip->id); 
1997/0327    
 
	offset = IPHDR; 
	while(xp != nil && offset && offset >= BLEN(xp)) { 


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