From: Guus Sliepen Date: Thu, 29 Oct 2015 15:36:39 +0000 (+0100) Subject: Add debug message when dropping a packet because all SACK entries are used. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=de4f8ad9205a0fcf3198d75ad0747fac9faa9787;p=utcp Add debug message when dropping a packet because all SACK entries are used. --- diff --git a/utcp.c b/utcp.c index 57b3157..1627be7 100644 --- a/utcp.c +++ b/utcp.c @@ -706,6 +706,8 @@ static void handle_out_of_order(struct utcp_connection *c, uint32_t offset, cons memmove(&c->sacks[i + 1], &c->sacks[i], (NSACKS - i - 1) * sizeof c->sacks[i]); c->sacks[i].offset = offset; c->sacks[i].len = rxd; + } else { + debug("SACK entries full, dropping packet\n"); } break; } else { // merge