Bugfix: if a SYN is received in the SYN_RCVD state we should not send a blank SYN, but a SYNACK in response.
This commit is contained in:
parent
6265219775
commit
f31d6f271f
@ -1833,8 +1833,12 @@ uip_process(uint8_t flag)
|
||||
UIP_TCP_BUF->seqno[2] != uip_connr->rcv_nxt[2] ||
|
||||
UIP_TCP_BUF->seqno[3] != uip_connr->rcv_nxt[3])) {
|
||||
|
||||
if(UIP_TCP_BUF->flags & TCP_SYN) {
|
||||
goto tcp_send_synack;
|
||||
if((UIP_TCP_BUF->flags & TCP_SYN)) {
|
||||
if((uip_connr->tcpstateflags & UIP_TS_MASK) == UIP_SYN_RCVD) {
|
||||
goto tcp_send_synack;
|
||||
} else if((uip_connr->tcpstateflags & UIP_TS_MASK) == UIP_SYN_SENT) {
|
||||
goto tcp_send_syn;
|
||||
}
|
||||
}
|
||||
goto tcp_send_ack;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user