From d6c4760a809506ca77eb6119f221ae5e8f691bc5 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 18 Oct 2015 13:42:36 +0200 Subject: [PATCH] When debugging, set initial segment seqno to 0. --- utcp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utcp.c b/utcp.c index 7624aa5..354cbe5 100644 --- a/utcp.c +++ b/utcp.c @@ -282,7 +282,12 @@ static struct utcp_connection *allocate_connection(struct utcp *utcp, uint16_t s c->src = src; c->dst = dst; +#ifdef UTCP_DEBUG +#warning debugging + c->snd.iss = 0; +#else c->snd.iss = rand(); +#endif c->snd.una = c->snd.iss; c->snd.nxt = c->snd.iss + 1; c->rcv.wnd = utcp->mtu; -- 2.39.2