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

1995/0801/pc/devether.c (diff list | history)

1995/0731/sys/src/9/pc/devether.c:104,1101995/0801/sys/src/9/pc/devether.c:104,110 (short | long | prev | next)
1993/1120    
{ 
1995/0713    
	Block *bp; 
1993/1120    
	ushort type; 
1995/0713    
	int i; 
1995/0801    
	int i, n; 
1993/1120    
	Netfile *f, **fp, **ep; 
 
	type = (pkt->type[0]<<8)|pkt->type[1]; 
1995/0731/sys/src/9/pc/devether.c:117,1281995/0801/sys/src/9/pc/devether.c:117,130
1995/0713    
			} else { 
				if(qwindow(f->in) <= 0) 
					continue; 
				if(len > 60) 
					len = 60; 
				bp = iallocb(len); 
1995/0801    
				if(len > 64) 
					n = 64; 
				else 
					n = len; 
				bp = iallocb(n); 
1995/0713    
				if(bp == 0) 
					continue; 
				memmove(bp->wp, pkt->d, len); 
1995/0801    
				memmove(bp->wp, pkt->d, n); 
1995/0713    
				i = TK2MS(m->ticks); 
1995/0731    
				bp->wp[58] = len>>8; 
				bp->wp[59] = len; 


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