Adding in tcpdump capture
This commit is contained in:
parent
f089b2c2f6
commit
bad00ea9f7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user