Files
podman/libpod
Danish Prakash 1a20d82edc libpod: replace listen with socket+bind for dual-stack port reservation
This commit addresses two concerns.

Bind dual stack when hostIP unless it is explicitly specified. Since we
use listen(), this change resulted in blocked connections on stacks
without matching DNAT rules (e.g. connecting to [::1] on an IPv4-only
network) because the TCP handshake on the reservation socket would complete
instead of returning ECONNREFUSED allowing the client to fallback to IPv4.

Replacing listen() with raw socket() and bind() syscalls fixes this by
allowing us to reserve this port without accepting connections; clients
get ECONNREFUSED and fall back to IPv4 automatically, as is desired.

Fixes: https://github.com/containers/netavark/issues/1338

Co-authored-by: Paul Holzinger <pholzing@redhat.com>
Signed-off-by: Danish Prakash <contact@danishpraka.sh>
2026-05-11 13:21:12 +05:30
..
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2025-11-11 12:32:46 +01:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00