aboutsummaryrefslogtreecommitdiffstats
path: root/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nsh_sfc_tests/sfc_scripts/start_tcpdump.sh')
-rwxr-xr-xnsh_sfc_tests/sfc_scripts/start_tcpdump.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh b/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
new file mode 100755
index 0000000000..9d51e667bd
--- /dev/null
+++ b/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+ROOTDIR=/tmp/openvpp-testing
+PWDDIR=$(pwd)
+
+cd ${ROOTDIR}/nsh_sfc_tests/sfc_scripts/
+sudo rm -f temp_packet.pcap
+
+sudo tcpdump -i $1 -c 1 -w temp_packet.pcap dst host $2 >/dev/null 2>&1 &
+
+cd ${PWDDIR}