Skip to content

Commit

Permalink
tools/testing/selftests/bpf/test_tc_tunnel.sh: Fix wait for server bind
Browse files Browse the repository at this point in the history
Commit f803bcf ("selftests/bpf: Prevent client connect before
server bind in test_tc_tunnel.sh") added code that waits for the
netcat server to start before the netcat client attempts to connect to
it. However, not all calls to 'server_listen' were guarded.

This patch adds the existing 'wait_for_port' guard after the remaining
call to 'server_listen'.

Fixes: f803bcf ("selftests/bpf: Prevent client connect before server bind in test_tc_tunnel.sh")
Signed-off-by: Marco Leogrande <[email protected]>
  • Loading branch information
dark authored and Kernel Patches Daemon committed Dec 3, 2024
1 parent ecfb2c8 commit f03e3c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/testing/selftests/bpf/test_tc_tunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ else
client_connect
verify_data
server_listen
wait_for_port ${port} ${netcat_opt}
fi

# serverside, use BPF for decap
Expand Down

0 comments on commit f03e3c4

Please sign in to comment.