From: Guus Sliepen Date: Mon, 19 Oct 2015 18:45:31 +0000 (+0200) Subject: Make sure all of the packet header is set when retransmitting packets. X-Git-Url: http://git.meshlink.io/?p=utcp;a=commitdiff_plain;h=42a2ce613c748e506129da781856ec8f85c92f26 Make sure all of the packet header is set when retransmitting packets. --- 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);