diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-12-02 15:02:09 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-12-02 23:07:24 +0100 |
| commit | 74e6f12f0a55c9ee6c1cad6de25ad69ebfc4f3af (patch) | |
| tree | 4a5b7996344721397d44646c2950b0c1628482fd /test/lib | |
| parent | c8d468339553b65818df784242d6abb787a36b45 (diff) | |
| download | passt-74e6f12f0a55c9ee6c1cad6de25ad69ebfc4f3af.tar passt-74e6f12f0a55c9ee6c1cad6de25ad69ebfc4f3af.tar.gz passt-74e6f12f0a55c9ee6c1cad6de25ad69ebfc4f3af.tar.bz2 passt-74e6f12f0a55c9ee6c1cad6de25ad69ebfc4f3af.tar.lz passt-74e6f12f0a55c9ee6c1cad6de25ad69ebfc4f3af.tar.xz passt-74e6f12f0a55c9ee6c1cad6de25ad69ebfc4f3af.tar.zst passt-74e6f12f0a55c9ee6c1cad6de25ad69ebfc4f3af.zip | |
udp: Move udp_sock_init() special case to its caller
Inbound sockets are bound to the unspecified address by default, whereas
outbound sockets are bound to the loopback address. This is currently
handled in udp_sock_init() which ignores its addr argument in the outbound
case.
Move the handling of this special case to the caller, udp_port_rebind().
This makes the semantics of the 'addr' argument more consistent, and will
make future changes easier.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib')
0 files changed, 0 insertions, 0 deletions
