]> git.meshlink.io Git - utcp/blobdiff - utcp.c
When debugging, set initial segment seqno to 0.
[utcp] / utcp.c
diff --git a/utcp.c b/utcp.c
index 7624aa576d39c8753c810cea4c4f8643c377d3d4..354cbe547637b0bdf0dc4709dee2205b23d0863e 100644 (file)
--- 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;