net: tcp: Print information when proper ACK is received
It is useful to know that we received ACK when debugging the TCP code. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
8fd677e9e1
commit
aee31bb7c1
1 changed files with 3 additions and 0 deletions
|
@ -1204,6 +1204,9 @@ bool net_tcp_ack_received(struct net_context *ctx, u32_t ack)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NET_DBG("[%p] Received ACK pkt %p (len %zd bytes)", ctx->tcp,
|
||||||
|
pkt, net_pkt_get_len(pkt));
|
||||||
|
|
||||||
sys_slist_remove(list, NULL, head);
|
sys_slist_remove(list, NULL, head);
|
||||||
|
|
||||||
/* If we receive a valid ACK, then we need to undo the ref
|
/* If we receive a valid ACK, then we need to undo the ref
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue