diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-11-07 12:40:15 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-11-07 09:53:41 +0100 |
commit | 732e24937618f5848e182dc8a38eb170cf079394 (patch) | |
tree | f9748dad8026c85506fad12fd8bb400782635be9 /tcp.h | |
parent | 125c5e52a5c963ead98b175c440314b4c9071143 (diff) | |
download | passt-732e24937618f5848e182dc8a38eb170cf079394.tar passt-732e24937618f5848e182dc8a38eb170cf079394.tar.gz passt-732e24937618f5848e182dc8a38eb170cf079394.tar.bz2 passt-732e24937618f5848e182dc8a38eb170cf079394.tar.lz passt-732e24937618f5848e182dc8a38eb170cf079394.tar.xz passt-732e24937618f5848e182dc8a38eb170cf079394.tar.zst passt-732e24937618f5848e182dc8a38eb170cf079394.zip |
pif: Record originating pif in listening socket refs
For certain socket types, we record in the epoll ref whether they're
sockets in the namespace, or on the host. We now have the notion of "pif"
to indicate what "place" a socket is associated with, so generalise the
simple one-bit 'ns' to a pif id.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.h')
-rw-r--r-- | tcp.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,13 +41,13 @@ union tcp_epoll_ref { /** * union tcp_listen_epoll_ref - epoll reference portion for TCP listening * @port: Port number we're forwarding *to* (listening port plus delta) - * @ns: True if listening within the pasta namespace + * @pif: pif in which the socket is listening * @u32: Opaque u32 value of reference */ union tcp_listen_epoll_ref { struct { in_port_t port; - bool ns; + uint8_t pif; }; uint32_t u32; }; |