From 14b795c4f50a6f0c96ea61f60c6e2e023e00acfa Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Dec 28 2013 21:31:14 +0000 Subject: test no longer relies on -i eth0 (as the IF-name might be different for EL7), but now uses the 'first' IF --- diff --git a/tests/p_tcpdump/tcpdump_eth0.sh b/tests/p_tcpdump/tcpdump_eth0.sh index c9b3f0c..88cc391 100755 --- a/tests/p_tcpdump/tcpdump_eth0.sh +++ b/tests/p_tcpdump/tcpdump_eth0.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Author: Christoph Galuschka +# Author: Christoph Galuschka # Athmane Madjoudj t_Log "Running $0 - TCPdump test to Default-GW with IPv4" @@ -13,7 +13,7 @@ if [[ $IP =~ $regex ]] #Dumping 4 pings via eth0 to file FILE='/var/tmp/eth0_test.pcap' COUNT='4' - tcpdump -q -n -p -i eth0 -w $FILE & + tcpdump -q -n -p -w $FILE & # If we don't wait a short time, the first paket will be missed by tcpdump sleep 1 ping -q -c $COUNT -i 0.25 ${BASH_REMATCH[1]} > /dev/null 2>&1