summaryrefslogtreecommitdiffstats
path: root/tests/ct_echo_event.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ct_echo_event.sh')
-rwxr-xr-xtests/ct_echo_event.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ct_echo_event.sh b/tests/ct_echo_event.sh
new file mode 100755
index 0000000..b4d7409
--- /dev/null
+++ b/tests/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