4 Feb
2025
4 Feb
'25
9:36 a.m.
On Tue, 4 Feb 2025 16:42:15 +1100
David Gibson
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
Applied with re-declarations of 'sa' and 'sl' dropped. -- Stefano