forked from wolfSSL/wolfssl
Adding in tcpdump capture
This commit is contained in:
@ -13,6 +13,11 @@ cleanup () {
|
|||||||
echo "Killing server $SERVER_PID"
|
echo "Killing server $SERVER_PID"
|
||||||
kill $SERVER_PID
|
kill $SERVER_PID
|
||||||
fi
|
fi
|
||||||
|
if [ ! -z "$TCPDUMP_PID" ];then
|
||||||
|
echo "Killing tcpdump $TCPDUMP_PID"
|
||||||
|
sleep 1
|
||||||
|
kill $TCPDUMP_PID
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
trap cleanup err exit
|
trap cleanup err exit
|
||||||
@ -108,6 +113,10 @@ EOF
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "Starting capture"
|
||||||
|
tcpdump -i lo -n port ${SERVER_PORT} -w ./dtls.pcap -U &
|
||||||
|
TCPDUMP_PID=$!
|
||||||
|
|
||||||
test_dropping_packets
|
test_dropping_packets
|
||||||
test_permutations client 012
|
test_permutations client 012
|
||||||
test_dropping_new_session_ticket 200
|
test_dropping_new_session_ticket 200
|
||||||
|
Reference in New Issue
Block a user