~kris/9p

9hist

e668225d16b10a503c6dfd590f3d6e03aab4962d — David du Colombier 34 years ago f2cfe8d
Plan 9 from Bell Labs 1992-06-06
2 files changed, 4 insertions(+), 2 deletions(-)

M port/ipdat.h
M port/tcpinput.c
M port/ipdat.h => port/ipdat.h +1 -1
@@ 340,7 340,7 @@ struct Ipconv
#define TIMER_RUN	1
#define TIMER_EXPIRE	2

#define Nreseq		64
#define Nreseq		128

#define	set_timer(t,x)	(((t)->start) = (x)/MSPTICK)
#define	run_timer(t)	((t)->state == TIMER_RUN)

M port/tcpinput.c => port/tcpinput.c +3 -1
@@ 624,11 624,13 @@ void
add_reseq(Tcpctl *tcb, char tos, Tcp *seg, Block *bp, ushort length)
{
	Reseq *rp, *rp1;
	static int dropped;

	qlock(&reseqlock);
	if(!reseqfree) {
		qunlock(&reseqlock);
		print("tcp: no resequence descriptors\n");
		if((dropped++%256) == 0)
			print("tcp: no resequence descriptors\n");
		freeb(bp);
		return;
	}