aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnsh_sfc_tests/sfc_scripts/start_tcpdump.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh b/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
index 9d51e667bd..46f8217e26 100755
--- a/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
+++ b/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
@@ -6,6 +6,11 @@ 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 &
+sudo /usr/sbin/tcpdump -i $1 -c 1 -w temp_packet.pcap dst host $2 &
+
+if [ ! $? -eq 0 ]; then
+ echo "Start the tcpdump failed!!!"
+ exit 1
+fi
cd ${PWDDIR}