]> git.meshlink.io Git - utcp/commitdiff
Add debug message when dropping a packet because all SACK entries are used.
authorGuus Sliepen <guus@meshlink.io>
Thu, 29 Oct 2015 15:36:39 +0000 (16:36 +0100)
committerGuus Sliepen <guus@sliepen.org>
Sun, 2 Jul 2017 10:05:53 +0000 (12:05 +0200)
utcp.c

diff --git a/utcp.c b/utcp.c
index 57b3157ced701ce46ae824e2e57c491d03129500..1627be77cbce59467e7aae4936cd4a730ff73ce7 100644 (file)
--- 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