lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #26251] RST process in TIME_WAIT TCP state


From: Oleg Tyshev
Subject: [lwip-devel] [bug #26251] RST process in TIME_WAIT TCP state
Date: Thu, 22 Oct 2009 17:10:49 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 GTB5

Follow-up Comment #11, bug #26251 (project lwip):

Ooops

tcplen already contains length of FIN and SYN:
tcplen = p->tot_len + ((flags & (TCP_FIN | TCP_SYN)) ? 1 : 0);

So will be better

/* RFC 1337: in TIME_WAIT, ignore RST and ACK FINs + any 'acceptable'
segments */
if (((flags & TCP_RST) == 0) && (tcplen > 0)) {
pcb->flags |= TF_ACK_NOW;
return tcp_output(pcb);
}
return ERR_OK;

ACK to the SYN would be acceptable according to RFC 793 too
(page 71)

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?26251>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]