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

1991/1124/port/ipdat.h (diff list | history)

1991/1121/sys/src/9/port/ipdat.h:96,1131991/1124/sys/src/9/port/ipdat.h:96,126 (short | long | prev | next)
Fiddle with Ilcb. Increase IP_MAX to 32kB.
In Ilcb: add QLocks for block queues; comment edits; add oblks, slowtime, fasttime, acktime], rtt, rttack, ackms; remove lastack.
rsc Fri Mar 4 12:44:25 2005
1991/1012    
 
1991/1014    
struct Ilcb				/* Control block */ 
1991/1012    
{ 
1991/1019    
	Lock; 
1991/1012    
	int	state; 
1991/1124    
	int	state;			/* Connection state */ 
 
	QLock	ackq;			/* Unacknowledged queue */ 
1991/1012    
	Block	*unacked; 
	Block	*unackedtail; 
1991/1124    
 
	QLock	outo;			/* Out of order packet queue */ 
1991/1012    
	Block	*outoforder; 
1991/1107    
	ulong	next; 
1991/1012    
	ulong	recvd; 
1991/1026    
	ulong	start; 
1991/1106    
	ulong	rstart; 
1991/1012    
	ulong	lastack; 
1991/1102    
	int	timeout; 
1991/1014    
	int	window; 
1991/1124    
	int	oblks;			/* Number of blocks in queue */ 
 
	ulong	next;			/* Id of next to send */ 
	ulong	recvd;			/* Last packet received */ 
	ulong	start;			/* Local start id */ 
	ulong	rstart;			/* Remote start id */ 
 
	int	timeout;		/* Time out counter */ 
	int	slowtime;		/* Slow time counter */ 
	int	fasttime;		/* Retransmission timer */ 
	int	acktime;		/* Acknowledge timer */ 
 
	int	rtt;			/* Average round trip time */ 
	ulong	rttack;			/* The ack we are waiting for */ 
	ulong	ackms;			/* Time we issued */ 
 
	int	window;			/* Maximum receive window */ 
1991/1012    
}; 
 
1991/1014    
enum					/* Packet types */ 
1991/1121/sys/src/9/port/ipdat.h:400,4061991/1124/sys/src/9/port/ipdat.h:413,419
1991/0424    
#define	ICMP_IREQREPLY		16	/* Information Reply */ 
 
/* Sizes */ 
#define IP_MAX		8192			/* Maximum Internet packet size */ 
1991/1124    
#define IP_MAX		(32*1024)		/* Maximum Internet packet size */ 
1991/0424    
#define UDP_MAX		(IP_MAX-ETHER_IPHDR)	/* Maximum UDP datagram size */ 
#define UDP_DATMAX	(UDP_MAX-UDP_HDRSIZE)	/* Maximum amount of udp data */ 
1991/1012    
#define IL_DATMAX	(IP_MAX-IL_HDRSIZE)	/* Maximum IL data in one ip packet */ 


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