Commit 2515a7d7 authored by Joanne Hugé's avatar Joanne Hugé

Add help options on the wrapper scripts

parent 0a572326
...@@ -14,7 +14,7 @@ interval=100000 ...@@ -14,7 +14,7 @@ interval=100000
client_options="-a -p 99 -f eth0" client_options="-a -p 99 -f eth0"
qdisc_options="" qdisc_options=""
while getopts "bd:e:i:pt" opt; do while getopts "bd:e:hi:pt" opt; do
case "${opt}" in case "${opt}" in
b ) b )
client_options+=" -b" client_options+=" -b"
...@@ -27,6 +27,10 @@ while getopts "bd:e:i:pt" opt; do ...@@ -27,6 +27,10 @@ while getopts "bd:e:i:pt" opt; do
client_options+=" -e -q 7" client_options+=" -e -q 7"
qdisc_options+="-e ${OPTARG}" qdisc_options+="-e ${OPTARG}"
;; ;;
h )
usage
exit 1
;;
i ) i )
interval=${OPTARG} interval=${OPTARG}
;; ;;
......
...@@ -10,11 +10,15 @@ usage() { ...@@ -10,11 +10,15 @@ usage() {
server_options="-a -p 99" server_options="-a -p 99"
server_options="-a -p 99" server_options="-a -p 99"
while getopts "bt:" opt; do while getopts "bht:" opt; do
case "${opt}" in case "${opt}" in
b ) b )
server_options+=" -b 192.168.99.26" server_options+=" -b 192.168.99.26"
;; ;;
h )
usage
exit 1
;;
t ) t )
use_tcpdump=1 use_tcpdump=1
nb_packets=${OPTARG} nb_packets=${OPTARG}
......
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