testing: Always use immediate mode for tcpdump
We don't use versions that don't support this anymore and sometimes the detection didn't work properly and a run without it would get started.
This commit is contained in:
+1
-8
@@ -135,13 +135,6 @@ done
|
|||||||
[ -f $SHAREDDIR/.strongswan-version ] && SWANVERSION=`cat $SHAREDDIR/.strongswan-version`
|
[ -f $SHAREDDIR/.strongswan-version ] && SWANVERSION=`cat $SHAREDDIR/.strongswan-version`
|
||||||
KERNELVERSION=`ssh $SSHCONF root@\$ipv4_winnetou uname -r 2>/dev/null`
|
KERNELVERSION=`ssh $SSHCONF root@\$ipv4_winnetou uname -r 2>/dev/null`
|
||||||
|
|
||||||
# check if tcpdump supports --immediate-mode
|
|
||||||
ssh $SSHCONF root@$ipv4_winnetou tcpdump --immediate-mode -c 1 >/dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ]
|
|
||||||
then
|
|
||||||
TCPDUMP_IM=--immediate-mode
|
|
||||||
fi
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# create header for the results html file
|
# create header for the results html file
|
||||||
#
|
#
|
||||||
@@ -355,7 +348,7 @@ do
|
|||||||
do
|
do
|
||||||
host=`echo $host_iface | awk -F ":" '{print $1}'`
|
host=`echo $host_iface | awk -F ":" '{print $1}'`
|
||||||
iface=`echo $host_iface | awk -F ":" '{if ($2 != "") { print $2 } else { printf("eth0") }}'`
|
iface=`echo $host_iface | awk -F ":" '{if ($2 != "") { print $2 } else { printf("eth0") }}'`
|
||||||
tcpdump_cmd="tcpdump -l $TCPDUMP_IM -i $iface not port ssh and not port domain >/tmp/tcpdump.log 2>/tmp/tcpdump.err.log &"
|
tcpdump_cmd="tcpdump -l --immediate-mode -i $iface not port ssh and not port domain >/tmp/tcpdump.log 2>/tmp/tcpdump.err.log &"
|
||||||
echo "$(print_time)${host}# $tcpdump_cmd" >> $CONSOLE_LOG
|
echo "$(print_time)${host}# $tcpdump_cmd" >> $CONSOLE_LOG
|
||||||
ssh $SSHCONF root@`eval echo \\\$ipv4_$host '$tcpdump_cmd'`
|
ssh $SSHCONF root@`eval echo \\\$ipv4_$host '$tcpdump_cmd'`
|
||||||
eval TDUP_${host}="true"
|
eval TDUP_${host}="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user