tcp_listen_input: format code for #if LWIP_TCP_TIMESTAMPS that calls tcp_enqueue like the other calls.

This commit is contained in:
goldsimon 2009-04-19 12:17:59 +00:00
parent 9d5bf57dd9
commit 12c50ed87b

View File

@ -453,13 +453,12 @@ tcp_listen_input(struct tcp_pcb_listen *pcb)
snmp_inc_tcppassiveopens(); snmp_inc_tcppassiveopens();
/* Send a SYN|ACK together with the MSS option. */ /* Send a SYN|ACK together with the MSS option. */
rc = tcp_enqueue(npcb, NULL, 0, TCP_SYN | TCP_ACK, 0, TF_SEG_OPTS_MSS
#if LWIP_TCP_TIMESTAMPS #if LWIP_TCP_TIMESTAMPS
if (npcb->flags & TF_TIMESTAMP) /* and maybe include the TIMESTAMP option */
rc = tcp_enqueue(npcb, NULL, 0, TCP_SYN | TCP_ACK, 0, | (npcb->flags & TF_TIMESTAMP ? TF_SEG_OPTS_TS : 0)
TF_SEG_OPTS_MSS | TF_SEG_OPTS_TS);
else
#endif #endif
rc = tcp_enqueue(npcb, NULL, 0, TCP_SYN | TCP_ACK, 0, TF_SEG_OPTS_MSS); );
if (rc != ERR_OK) { if (rc != ERR_OK) {
tcp_abandon(npcb, 0); tcp_abandon(npcb, 0);
return rc; return rc;