From 42a2ce613c748e506129da781856ec8f85c92f26 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 19 Oct 2015 20:45:31 +0200 Subject: [PATCH] Make sure all of the packet header is set when retransmitting packets. --- utcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utcp.c b/utcp.c index 047f70f..5ba4eaa 100644 --- a/utcp.c +++ b/utcp.c @@ -561,13 +561,14 @@ static void retransmit(struct utcp_connection *c) { pkt->hdr.src = c->src; pkt->hdr.dst = c->dst; + pkt->hdr.wnd = c->rcv.wnd; + pkt->hdr.aux = 0; switch(c->state) { case SYN_SENT: // Send our SYN again pkt->hdr.seq = c->snd.iss; pkt->hdr.ack = 0; - pkt->hdr.wnd = c->rcv.wnd; pkt->hdr.ctl = SYN; print_packet(c->utcp, "rtrx", pkt, sizeof pkt->hdr); utcp->send(utcp, pkt, sizeof pkt->hdr); -- 2.39.5