ping: install ndnping from ndn-tools

refs #2836

Change-Id: I650680a388801fec6a11ec55a5d6d2d13da2f737
diff --git a/test_linkfail/ping.sh b/test_linkfail/ping.sh
index 6b741eb..99954f3 100755
--- a/test_linkfail/ping.sh
+++ b/test_linkfail/ping.sh
@@ -6,8 +6,8 @@
 
 ndnping -c 25 /B &> logs/${LOGPREFIX}_ping_A.log
 
-LOSS=$(sed -n 's/.*Packet Loss=\([^,]*\).*/\1/p' logs/${LOGPREFIX}_ping_A.log)
-MAXRTT=$(sed -n 's/Round Trip Time.* = (\([^)]*\).*/\1/p' logs/${LOGPREFIX}_ping_A.log | cut -d/ -f2)
+LOSS=$(sed -n 's/.*received, \([^,]*\) packet loss.*/\1/p' logs/${LOGPREFIX}_ping_A.log)
+MAXRTT=$(sed -n 's/rtt.* = .*\/\([^)]*\).*\/.*/\1/p' logs/${LOGPREFIX}_ping_A.log)
 
 [[ $LOSS == '0%' ]] && [[ $(echo $MAXRTT | sed 's/\..*//') -le 100 ]]