diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-02-14 10:48:21 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-02-14 17:25:08 +0100 |
commit | 912d37cd5b8c507d17f38758d50ff3ba0401a99c (patch) | |
tree | 0d836b5e5c9934b66d7c110f10d6ef4b4211119c /contrib/selinux | |
parent | c8993476d53302b73c8cdac1c975525315f5a2db (diff) | |
download | passt-912d37cd5b8c507d17f38758d50ff3ba0401a99c.tar passt-912d37cd5b8c507d17f38758d50ff3ba0401a99c.tar.gz passt-912d37cd5b8c507d17f38758d50ff3ba0401a99c.tar.bz2 passt-912d37cd5b8c507d17f38758d50ff3ba0401a99c.tar.lz passt-912d37cd5b8c507d17f38758d50ff3ba0401a99c.tar.xz passt-912d37cd5b8c507d17f38758d50ff3ba0401a99c.tar.zst passt-912d37cd5b8c507d17f38758d50ff3ba0401a99c.zip |
tcp: Move socket pool declarations around
tcp_splice.c has some explicit extern declarations to access the
socket pools. This is pretty dangerous - if we changed the type of
these variables in tcp.c, we'd have tcp.c and tcp_splice.c using the
same memory in different ways with no compiler error. So, move the
extern declarations to tcp_conn.h so they're visible to both tcp.c and
tcp_splice.c, but not the rest of pasta.
In fact the pools for the guest namespace are necessarily only used by
tcp_splice.c - we have no sockets on the guest side if we're not
splicing. So move those declarations and the functions that deal
exclusively with them to tcp_splice.c
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/selinux')
0 files changed, 0 insertions, 0 deletions