From e668225d16b10a503c6dfd590f3d6e03aab4962d Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Sat, 6 Jun 1992 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1992-06-06 --- port/ipdat.h | 2 +- port/tcpinput.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/port/ipdat.h b/port/ipdat.h index 4b4d15ac3ef91576301ea41fe5f4e86b1f190178..6997bda9c8914ba593e3521cabc86d9078aab0e1 100644 --- a/port/ipdat.h +++ b/port/ipdat.h @@ -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) diff --git a/port/tcpinput.c b/port/tcpinput.c index 11bf8b57d8b4cf5876910af3fcb8e46fb132bf51..890463bf2cd4461e56e23a7dba8f39a26ca4e9a3 100644 --- a/port/tcpinput.c +++ b/port/tcpinput.c @@ -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; }