aboutgitcodebugslistschat
path: root/util.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-11-15 16:25:33 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-11-19 09:08:37 +0100
commit4ccdeecb744d48e0c70386d561d34ced860bfacd (patch)
tree181393a05a4106cc39a5fae5c20e61581d21efd7 /util.h
parent1776e7af9b25cfbb1e28eca94d9052563dad3724 (diff)
downloadpasst-4ccdeecb744d48e0c70386d561d34ced860bfacd.tar
passt-4ccdeecb744d48e0c70386d561d34ced860bfacd.tar.gz
passt-4ccdeecb744d48e0c70386d561d34ced860bfacd.tar.bz2
passt-4ccdeecb744d48e0c70386d561d34ced860bfacd.tar.lz
passt-4ccdeecb744d48e0c70386d561d34ced860bfacd.tar.xz
passt-4ccdeecb744d48e0c70386d561d34ced860bfacd.tar.zst
passt-4ccdeecb744d48e0c70386d561d34ced860bfacd.zip
tcp: Simplify away tcp_port_rebind()
tcp_port_rebind() is desgined to be called from NS_CALL() and has two disjoint cases: one where it enters the namespace (outbound forwards) and one where it doesn't (inbound forwards). We only actually need the NS_CALL() framing for the outbound case, for inbound we can just call tcp_port_do_rebind() directly. So simplify tcp_port_rebind() to tcp_port_rebind_outbound(), allowing us to eliminate an awkward parameters structure. With that done we can safely rename tcp_port_do_rebind() to tcp_port_rebind() for brevity. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.h')
0 files changed, 0 insertions, 0 deletions