diff options
Diffstat (limited to 'qa/ct_echo_event.sh')
-rwxr-xr-x | qa/ct_echo_event.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/qa/ct_echo_event.sh b/qa/ct_echo_event.sh new file mode 100755 index 0000000..b4d7409 --- /dev/null +++ b/qa/ct_echo_event.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +. `dirname $0`/nssocket_env.sh + +echo "---- TCP echo" +pre_sync +echo | nc -q 0 $VETH_CHILD_ADDR $DSTPORT +post_sync + +echo "---- UDP echo" +pre_sync +echo | nc -q 0 -u $VETH_CHILD_ADDR $DSTPORT +post_sync + +echo "---- ICMP echo" +pre_sync +ping -c 1 $VETH_CHILD_ADDR > /dev/null 2>&1 +post_sync + +fin |