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

1992/0111/port/tcpif.c (diff list | history)

1991/12171/sys/src/9/port/tcpif.c:3,91992/0111/sys/src/9/port/tcpif.c:3,9 (short | long | prev | next)
Move error.h to ../port. Change errors to actual strings.
rsc Fri Mar 4 12:44:25 2005
1991/0424    
#include	"mem.h" 
#include	"dat.h" 
#include	"fns.h" 
#include	"errno.h" 
1992/0111    
#include	"../port/error.h" 
1991/0424    
#include 	"arp.h" 
#include 	"ipdat.h" 
 
1991/12171/sys/src/9/port/tcpif.c:16,221992/0111/sys/src/9/port/tcpif.c:16,22
1991/0424    
	Block *bp; 
	int len; 
 
	DPRINT("state_upcall: %s -> %s err %d\n",  
1992/0111    
	DPRINT("state_upcall: %s -> %s err %s\n",  
1991/0424    
	      tcpstate[oldstate], tcpstate[newstate], s->err); 
 
	if(oldstate == newstate) 
1991/12171/sys/src/9/port/tcpif.c:33,411992/0111/sys/src/9/port/tcpif.c:33,41
1991/0424    
			break; 
1991/1120    
 
1991/0424    
		if(s->err) { 
1991/1120    
			len = strlen(errstrtab[s->err]); 
1992/0111    
			len = strlen(s->err); 
1991/0424    
			bp = allocb(len); 
1991/1120    
			strcpy((char *)bp->wptr, errstrtab[s->err]); 
1992/0111    
			strcpy((char *)bp->wptr, s->err); 
1991/1120    
			bp->wptr += len; 
1991/0424    
		} 
		else 


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