From add9f4a99cc358749b276157d9957c527fef4fe7 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 29 Jul 2026 18:47:41 +0200 Subject: ipcpd: Flush fd from pff after disconnect The flow descriptors were not immediately removed from the routing tables when they were disconnected, so forwarding paths could still use the fd after the IPCP has deallocated the flow. Refactors the tests and adds some for the del_fd function. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/pff/pft.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ipcpd/unicast/pff/pft.h') diff --git a/src/ipcpd/unicast/pff/pft.h b/src/ipcpd/unicast/pff/pft.h index 15bbe451..3517e0ef 100644 --- a/src/ipcpd/unicast/pff/pft.h +++ b/src/ipcpd/unicast/pff/pft.h @@ -35,6 +35,9 @@ void pft_destroy(struct pft * table); void pft_flush(struct pft * table); +void pft_del_fd(struct pft * table, + int fd); + /* Passes ownership of the block of memory */ int pft_insert(struct pft * pft, uint64_t dst, -- cgit v1.2.3