Commit 67fbbe68 authored by Joanne Hugé's avatar Joanne Hugé

Update wrapper scripts

parent cbc7221e
......@@ -3,7 +3,7 @@
script_dir=$(dirname $(realpath $0))
usage() {
echo "Usage: $0 -e delta|-p [-i INTERVAL] [-t] [-d TX_BUFFER_LEN]" 1>&2;
echo "Usage: $0 -e delta | -p [-b] [-i INTERVAL] [-t] [-d TX_BUFFER_LEN]" 1>&2;
exit 1;
}
......@@ -14,8 +14,11 @@ interval=100000
client_options="-a -p 99 -f eth0"
qdisc_options=""
while getopts "d:e:i:pt" opt; do
while getopts "bd:e:i:pt" opt; do
case "${opt}" in
b )
client_options+=" -b"
;;
d )
client_options+=" -d ${OPTARG}"
;;
......@@ -49,8 +52,8 @@ if [ -n "${use_etf}" ] && [ -n "${use_pfast}" ]; then
usage
fi
echo "$script_dir/create_qdisc $qdisc_options";
echo "create_qdisc $qdisc_options";
$script_dir/create_qdisc $qdisc_options;
echo "$script_dir/../packet-exchange/build/client_arm $client_options -i $interval 192.168.99.25";
echo "client_arm $client_options -i $interval 192.168.99.25";
$script_dir/../packet-exchange/build/client_arm $client_options -i $interval 192.168.99.25;
......@@ -3,12 +3,17 @@
script_dir=$(dirname $(realpath $0))
usage() {
echo "Usage: $0 [-t NB_PACKETS]" 1>&2;
echo "Usage: $0 [[-b] | -t NB_PACKETS]" 1>&2;
exit 1;
}
while getopts "t:" opt; do
server_options="-a -p 99"
while getopts "bt:" opt; do
case "${opt}" in
b )
server_options+=" -b"
;;
t )
use_tcpdump=1
nb_packets=${OPTARG}
......@@ -26,9 +31,9 @@ if [ -n "${use_tcpdump}" ]; then
tcpdump -c $nb_packets -i eth0 -w tmp.pcap -tt --time-stamp-precision=nano udp port 50000;
echo "tshark -r tmp.pcap --disable-protocol dcp-etsi --disable-protocol dcp-pft -t e -E separator=, -T fields -e frame.number -e frame.time_epoch -e data.data > tmp.out";
tshark -r tmp.pcap --disable-protocol dcp-etsi --disable-protocol dcp-pft -t e -E separator=, -T fields -e frame.number -e frame.time_epoch -e data.data > tmp.out;
echo "$script_dir/txtime_stats.py -f tmp.out";
echo "txtime_stats.py -f tmp.out";
$script_dir/txtime_stats.py -f tmp.out;
else
echo "$script_dir/../packet-exchange/build/server_arm -a -p 99";
$script_dir/../packet-exchange/build/server_arm -a -p 99;
echo "server_arm $server_options";
$script_dir/../packet-exchange/build/server_arm $server_options;
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment