Next: udpfilter
Up: UDP-Transfers
Previous: UDP-Transfers
#! /bin/sh
# udptest - UDP-Transfers messen
[ $# -eq 0 ] && echo "Aufruf: $0 site [wan]" && exit 1
mkdir savedir > /dev/null 2>&1
PATH=$PATH:.
dir=/var/iptest
tmp=/tmp/time.out
maxcount=10
>udp.$1
list="100 200 300 400 500 1024 1536 2048 2560 3072 3584 4096"
[ "$2" = wan ] && list="50 100 150 200"
for i in $list
do
file=$dir/${i}.udp
count=1
while [ $count -le $maxcount ]
do
> udp.$1.$i.$count
echo $file
time (socktest $1 < $file > /dev/null) 2> $tmp
udpfilter $i < $tmp >> udp.$1.$i.$count
count=`expr $count + 1`
done
varianz udp.$1.$i.[0-9]* >> udp.$1
mv udp.$1.$i.[0-9]* savedir/
done
exit 0
Andreas Godzina
1999-04-06