From de4f8ad9205a0fcf3198d75ad0747fac9faa9787 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 29 Oct 2015 16:36:39 +0100 Subject: [PATCH] Add debug message when dropping a packet because all SACK entries are used. --- utcp.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5