From: Guus Sliepen Date: Sun, 18 Oct 2015 11:42:36 +0000 (+0200) Subject: When debugging, set initial segment seqno to 0. X-Git-Url: http://git.meshlink.io/?p=utcp;a=commitdiff_plain;h=d6c4760a809506ca77eb6119f221ae5e8f691bc5 When debugging, set initial segment seqno to 0. --- 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;