X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=utcp.c;h=354cbe547637b0bdf0dc4709dee2205b23d0863e;hb=d6c4760a809506ca77eb6119f221ae5e8f691bc5;hp=7624aa576d39c8753c810cea4c4f8643c377d3d4;hpb=5d6a4bd71c683042495038e9679cbf7c80d816fd;p=utcp 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;