connection: handle ACKs from empty packets correctly
This commit is contained in:
parent
f0770baf31
commit
dedad8b81f
|
@ -114,6 +114,8 @@ result_t connection_handle_packet(connection_ctx_t *ctx, const uint8_t *buf, siz
|
||||||
switch(header.msg_type) {
|
switch(header.msg_type) {
|
||||||
case L2_MSG_TYPE_EMPTY:
|
case L2_MSG_TYPE_EMPTY:
|
||||||
LOG(LVL_DEBUG, "Empty packet: accepted ACK for %u.", ctx->last_acked_seq);
|
LOG(LVL_DEBUG, "Empty packet: accepted ACK for %u.", ctx->last_acked_seq);
|
||||||
|
// handle the acknowledgement internally
|
||||||
|
connection_handle_ack(ctx, header.rx_seq_nr);
|
||||||
return OK; // do not ACK and call back
|
return OK; // do not ACK and call back
|
||||||
|
|
||||||
case L2_MSG_TYPE_CONN_MGMT:
|
case L2_MSG_TYPE_CONN_MGMT:
|
||||||
|
|
Loading…
Reference in a new issue