X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=nsh_sfc_tests%2Fsfc_scripts%2Fstart_tcpdump.sh;fp=nsh_sfc_tests%2Fsfc_scripts%2Fstart_tcpdump.sh;h=9d51e667bd2ec6fe143abb304d0250cb06ab22b1;hp=0000000000000000000000000000000000000000;hb=5ce772f3b2d83c31eda5c2abdcd6cc4547ecc6c8;hpb=1e59ee6e39f0604be721ac8ebdb36be14b738bd8 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}