aboutgitcodebugslistschat
path: root/pasta.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2025-02-04 16:42:15 +1100
committerStefano Brivio <sbrivio@redhat.com>2025-02-04 09:02:54 +0100
commit745c163e60b0e5da7bf6013645d79b4bdbf3e848 (patch)
tree5f883e1d96cdf0e1ab3ad5f3760b4ec186a6e914 /pasta.c
parentb4a7b5d4a66db5f419cb5de87da3403cfba3847d (diff)
downloadpasst-745c163e60b0e5da7bf6013645d79b4bdbf3e848.tar
passt-745c163e60b0e5da7bf6013645d79b4bdbf3e848.tar.gz
passt-745c163e60b0e5da7bf6013645d79b4bdbf3e848.tar.bz2
passt-745c163e60b0e5da7bf6013645d79b4bdbf3e848.tar.lz
passt-745c163e60b0e5da7bf6013645d79b4bdbf3e848.tar.xz
passt-745c163e60b0e5da7bf6013645d79b4bdbf3e848.tar.zst
passt-745c163e60b0e5da7bf6013645d79b4bdbf3e848.zip
tcp: Simplify handling of getsockname()
For migration we need to get the specific local address and port for connected sockets with getsockname(). We currently open code marshalling the results into the flow entry. However, we already have inany_from_sockaddr() which handles the fiddly parts of this, so use it. Also report failures, which may make debugging problems easier. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> [sbrivio: Drop re-declarations of 'sa' and 'sl'] Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'pasta.c')
0 files changed, 0 insertions, 0 deletions