From c9d17c4eb0457790a68c74a50bfd0228f2d1d0c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Mon, 30 Jan 2023 19:00:01 +0100 Subject: [PATCH] Correct reproducer to pass Skip inclusion of TCP control port, which makes the test failing. It is not wanted in the test anyway. --- .../reproducer.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Regression/bind-does-not-listen-on-all-addresses-over-TCP/reproducer.sh b/Regression/bind-does-not-listen-on-all-addresses-over-TCP/reproducer.sh index 28b3cc6..f554637 100644 --- a/Regression/bind-does-not-listen-on-all-addresses-over-TCP/reproducer.sh +++ b/Regression/bind-does-not-listen-on-all-addresses-over-TCP/reproducer.sh @@ -5,7 +5,7 @@ # Pause bind on loading this file mkfifo _bind.nta -named -g -c <(echo "options { port 5300; listen-on { any; }; listen-on-v6 { any; }; };") -n 1 & +named -g -c <(echo "options { port 5300; listen-on { any; }; listen-on-v6 { any; }; }; controls {};") -n 1 & NAMED_PID=$! sleep 2 @@ -20,6 +20,19 @@ TCP=$(lsof -n -p ${NAMED_PID} | grep 'TCP 127.0.0.' | wc -l) UDP=$(lsof -n -p ${NAMED_PID} | grep 'UDP 127.0.0.' | wc -l) echo "TCP: $TCP UDP: $UDP" +if [ "$DEBUG" = y ]; then + TCPL=$(lsof -n -p ${NAMED_PID} | grep 'TCP 127.0.0.') + UDPL=$(lsof -n -p ${NAMED_PID} | grep 'UDP 127.0.0.') + + cat << EOF +TCP: +${TCPL} + +UDP: +${UDPL} +EOF +fi + sleep 5 #echo "Done adding addresses, press ENTER to terminate." #read