Adding in tcpdump capture

This commit is contained in:
Andras Fekete 2023-08-18 11:04:45 -04:00
parent f089b2c2f6
commit bad00ea9f7

View File

@ -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