connection: handle ACKs from empty packets correctly
Some checks failed
/ build-hamnet70 (push) Failing after 29s
/ build-doc (push) Successful in 16s
/ deploy-doc (push) Has been skipped

This commit is contained in:
Thomas Kolb 2024-09-22 15:52:44 +02:00
parent f0770baf31
commit dedad8b81f

View file

@ -114,6 +114,8 @@ result_t connection_handle_packet(connection_ctx_t *ctx, const uint8_t *buf, siz
switch(header.msg_type) {
case L2_MSG_TYPE_EMPTY:
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
case L2_MSG_TYPE_CONN_MGMT: