From f300e609e7975dacc06996d407170fe58aa49439 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 10 Mar 2022 08:23:15 +0100 Subject: lib: Fix buffer allocation when retransmitting The timerwheel was retransmitting packets and the error check for negative values of the rbuff allocation was instead checking for non-zero values, causing a buffer allocation to succeed but the program to continue down the unhappy path leaving that packet stuck in the buffer unattended. Also fixes wrongly scheduled retransmissions that cause packet storms. FRCP is much more stable now. Still needs some work for high bandwidth-delay products (fast-retransmit). Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/irmd/main.c') diff --git a/src/irmd/main.c b/src/irmd/main.c index fab9497d..6d7f7a2a 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1401,6 +1401,9 @@ static int flow_alloc(pid_t pid, int state; uint8_t * hash; + log_info("Allocating flow for %d to %s.\n", + pid, dst); + ipcp = join ? get_ipcp_entry_by_layer(dst) : get_ipcp_by_dst_name(dst, pid); if (ipcp == NULL) { -- cgit v1.2.3