mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 23:12:09 +00:00
tcp: improve debug message a little
This commit is contained in:
parent
3e59b224fa
commit
ed561a578b
@ -855,8 +855,9 @@ tcp_process(struct tcp_pcb *pcb)
|
|||||||
/* Do different things depending on the TCP state. */
|
/* Do different things depending on the TCP state. */
|
||||||
switch (pcb->state) {
|
switch (pcb->state) {
|
||||||
case SYN_SENT:
|
case SYN_SENT:
|
||||||
LWIP_DEBUGF(TCP_INPUT_DEBUG, ("SYN-SENT: ackno %"U32_F" pcb->snd_nxt %"U32_F" unacked %"U32_F"\n", ackno,
|
LWIP_DEBUGF(TCP_INPUT_DEBUG, ("SYN-SENT: ackno %"U32_F" pcb->snd_nxt %"U32_F" unacked %s %"U32_F"\n",
|
||||||
pcb->snd_nxt, (pcb->unacked != NULL)? lwip_ntohl(pcb->unacked->tcphdr->seqno) : 0));
|
ackno, pcb->snd_nxt, pcb->unacked ? "" : " empty:",
|
||||||
|
pcb->unacked ? lwip_ntohl(pcb->unacked->tcphdr->seqno) : 0));
|
||||||
/* received SYN ACK with expected sequence number? */
|
/* received SYN ACK with expected sequence number? */
|
||||||
if ((flags & TCP_ACK) && (flags & TCP_SYN)
|
if ((flags & TCP_ACK) && (flags & TCP_SYN)
|
||||||
&& (ackno == pcb->lastack + 1)) {
|
&& (ackno == pcb->lastack + 1)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user