modified to use LTP APIS and added function to check if commands used by this testcase exists
diff --git a/testcases/network/tcp_cmds/tcpdump/tcpdump01 b/testcases/network/tcp_cmds/tcpdump/tcpdump01
index dcf58ee..073a5cb 100755
--- a/testcases/network/tcp_cmds/tcpdump/tcpdump01
+++ b/testcases/network/tcp_cmds/tcpdump/tcpdump01
@@ -43,6 +43,27 @@
 LTPROOT=${LTPROOT:-"../../../../"}
 
 
+#-----------------------------------------------------------------------
+#
+# FUNCTION:  exists
+# PURPOSE:   Check if commands used by this testcase exists.
+#
+#-----------------------------------------------------------------------
+
+exists()
+{
+   for cmd in $1
+   do
+       which $cmd 2>&1 1>/dev/null
+	   if [ $? -ne 0 ]
+	   then
+	       tst_resm TBROK "Test broke: command $cmd not found"
+		   exit 1
+       fi
+   done
+}
+
+
 #******************************************************************************
 #
 # FUNCTION:  do_test
@@ -80,10 +101,10 @@
 end_testcase()
 {
    $trace_logic
-   echo "$this_file: doing $0."
+   tst_resm TINFO "$this_file: doing $0."
    rm -rf $TCtmp
-   [ $# -eq 0 ] && { echo "Test Successful"; exit 0; }
-   echo "Test Failed: $@"
+   [ $# -eq 0 ] && { tst_resm TPASS "Test Successful"; exit 0; }
+   tst_resm TFAIL "Test Failed: $@"
    exit 1
 }
 
@@ -96,5 +117,10 @@
 # OUTPUT:    Logged run results written to testcase run log
 #
 #-----------------------------------------------------------------------
+export TCID="tcpdump01"
+export TST_TOTAL=1
+export TST_COUNT=1
+
+exists "ping awk tcpdump"
 do_test
 end_testcase