diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-06-14 11:51:05 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-06-14 12:10:52 +0200 |
commit | 523fbc5af70fabb99a56b6ae8abf52770b59cd24 (patch) | |
tree | 6fd21b2bff1fc078d1f738a129e87dd798b6a10b /passt.h | |
parent | 4070bac7a48f92041617363a5e94ab760ba72073 (diff) | |
download | passt-523fbc5af70fabb99a56b6ae8abf52770b59cd24.tar passt-523fbc5af70fabb99a56b6ae8abf52770b59cd24.tar.gz passt-523fbc5af70fabb99a56b6ae8abf52770b59cd24.tar.bz2 passt-523fbc5af70fabb99a56b6ae8abf52770b59cd24.tar.lz passt-523fbc5af70fabb99a56b6ae8abf52770b59cd24.tar.xz passt-523fbc5af70fabb99a56b6ae8abf52770b59cd24.tar.zst passt-523fbc5af70fabb99a56b6ae8abf52770b59cd24.zip |
util: Split construction of bind socket address from the rest of sock_l4()
sock_l4() creates, binds and otherwise prepares a new socket. It builds
the socket address to bind from separately provided address and port.
However, we have use cases coming up where it's more natural to construct
the socket address in the caller.
Prepare for this by adding sock_l4_sa() which takes a pre-constructed
socket address, and rewriting sock_l4() in terms of it.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.h')
0 files changed, 0 insertions, 0 deletions