aboutgitcodebugslistschat
path: root/test/tcp/git:
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-01-16 11:59:17 +1100
committerStefano Brivio <sbrivio@redhat.com>2026-01-18 12:47:41 +0100
commitda49557bedfa515bc5943fccd257c0ae5306dc78 (patch)
tree7f798594121a86a51f0ebb4ef277cfae6881a15b /test/tcp/git:
parente2633b9a7e9ec58dc0c83285c4cb27ff97468761 (diff)
downloadpasst-da49557bedfa515bc5943fccd257c0ae5306dc78.tar
passt-da49557bedfa515bc5943fccd257c0ae5306dc78.tar.gz
passt-da49557bedfa515bc5943fccd257c0ae5306dc78.tar.bz2
passt-da49557bedfa515bc5943fccd257c0ae5306dc78.tar.lz
passt-da49557bedfa515bc5943fccd257c0ae5306dc78.tar.xz
passt-da49557bedfa515bc5943fccd257c0ae5306dc78.tar.zst
passt-da49557bedfa515bc5943fccd257c0ae5306dc78.zip
fwd: Make space to store listening sockets in forward table
At present, we don't keep track of the fds for listening sockets (except for "auto" ones). Since the fd is stored in the epoll reference, we didn't need an alternative source of it for the various handlers. However, we're intending to allow dynamic changes to forwarding configuration in future. That means we need a way to enumerate sockets so we can close them on removal of a forward. Extend our forwarding table data structure to make space for all the listening sockets. To avoid allocation, this imposes another limit: we could run out of space for socket fds before we run out of slots for forwarding rules. We don't actually do anything with the allocate spaced yet. For "auto" forwards it's redundant with existing arrays. We'll fix both of those in later patches. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/tcp/git:')
0 files changed, 0 insertions, 0 deletions