diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2025-01-31 18:27:07 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-02-04 01:28:04 +0100 |
commit | 52e57f9c9a6d8ae4153ac592d01d868b31c10171 (patch) | |
tree | 9e2368d9e29a58be0b53f17b2a962f1fd3ad30d7 /util.c | |
parent | 8c24301462c39027e6eb6f1ad56c1f6c83fb0c23 (diff) | |
download | passt-52e57f9c9a6d8ae4153ac592d01d868b31c10171.tar passt-52e57f9c9a6d8ae4153ac592d01d868b31c10171.tar.gz passt-52e57f9c9a6d8ae4153ac592d01d868b31c10171.tar.bz2 passt-52e57f9c9a6d8ae4153ac592d01d868b31c10171.tar.lz passt-52e57f9c9a6d8ae4153ac592d01d868b31c10171.tar.xz passt-52e57f9c9a6d8ae4153ac592d01d868b31c10171.tar.zst passt-52e57f9c9a6d8ae4153ac592d01d868b31c10171.zip |
tcp: Get socket port and address using getsockname() when connecting from guest
For migration only: we need to store 'oport', our socket-side port,
as we establish a connection from the guest, so that we can bind the
same oport as source port in the migration target.
Similar for 'oaddr': this is needed in case the migration target has
additional network interfaces, and we need to make sure our socket is
bound to the equivalent interface as it was on the source.
Use getsockname() to fetch them.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions