diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-07-29 18:47:41 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-08-03 08:49:59 +0200 |
| commit | add9f4a99cc358749b276157d9957c527fef4fe7 (patch) | |
| tree | 25b968b54abd7d4f8a568c8d4dc62442356e70a6 /src/ipcpd/unicast/pff/pft.h | |
| parent | 3388bd9e9b82df6d7fe79fa4eee7c22a3277624e (diff) | |
| download | ouroboros-add9f4a99cc358749b276157d9957c527fef4fe7.tar.gz ouroboros-add9f4a99cc358749b276157d9957c527fef4fe7.zip | |
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 <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/pff/pft.h')
| -rw-r--r-- | src/ipcpd/unicast/pff/pft.h | 3 |
1 files changed, 3 insertions, 0 deletions
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, |
