From bad00ea9f7688c068f1bf212f24f4518577f4b06 Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Fri, 18 Aug 2023 11:04:45 -0400 Subject: [PATCH] Adding in tcpdump capture --- scripts/dtls13.test | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/dtls13.test b/scripts/dtls13.test index 63f18f9d5..30bcd079a 100755 --- a/scripts/dtls13.test +++ b/scripts/dtls13.test @@ -13,6 +13,11 @@ cleanup () { echo "Killing server $SERVER_PID" kill $SERVER_PID fi + if [ ! -z "$TCPDUMP_PID" ];then + echo "Killing tcpdump $TCPDUMP_PID" + sleep 1 + kill $TCPDUMP_PID + fi } trap cleanup err exit @@ -108,6 +113,10 @@ EOF done } +echo "Starting capture" +tcpdump -i lo -n port ${SERVER_PORT} -w ./dtls.pcap -U & +TCPDUMP_PID=$! + test_dropping_packets test_permutations client 012 test_dropping_new_session_ticket 200