Skip to content

Commit d7df543

Browse files
committed
fix: workaround socat 1.8.0 bug
socat v1.8.0 in Ubuntu 24.04 has a bug when using `UDP-LISTEN` without specifying the address family. It looks like: E xioopen_ipdgram_listen(): unknown address family 0 We can work-around it by specifying IPv4. See http://www.dest-unreach.org/socat/CHANGES v1.8.0.1 Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 31fceee commit d7df543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration_tests/functional/test_net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def run_udp_offload_test(vm):
9999
# Start a UDP server in the guest
100100
# vm.ssh.check_output(f"nohup socat UDP-LISTEN:{port} - > {out_filename} &")
101101
vm.ssh.check_output(
102-
f"nohup socat UDP-LISTEN:{port} OPEN:{out_filename},creat > /dev/null 2>&1 &"
102+
f"nohup socat UDP4-LISTEN:{port} OPEN:{out_filename},creat > /dev/null 2>&1 &"
103103
)
104104

105105
# Try to send a UDP message from host with UDP offload enabled

0 commit comments

Comments
 (0)