Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
5fda5134
Commit
5fda5134
authored
May 27, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup and improve run_client script
parent
b01a7fef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
scripts/run_client
scripts/run_client
+18
-14
No files found.
scripts/run_client
View file @
5fda5134
...
...
@@ -3,24 +3,34 @@
script_dir
=
$(
dirname
$(
realpath
$0
))
usage
()
{
echo
"Usage:
$0
-e delta|-p [-i INTERVAL]"
1>&2
;
echo
"Usage:
$0
-e delta|-p [-i INTERVAL]
[-t]
"
1>&2
;
exit
1
;
}
# Default interval
interval
=
100000
while
getopts
"e:i:p"
opt
;
do
# Default options
client_options
=
"-a -p 99 -f eth0"
qdisc_options
=
""
while
getopts
"e:i:pt"
opt
;
do
case
"
${
opt
}
"
in
e
)
delta
=
${
OPTARG
}
use_etf
=
1
client_options+
=
" -e -q 7"
qdisc_options+
=
"-e
${
OPTARG
}
"
;;
i
)
interval
=
${
OPTARG
}
;;
p
)
use_pfast
=
1
client_options+
=
" -q 1"
qdisc_options+
=
"-p"
;;
t
)
client_options+
=
" -t"
;;
*
)
usage
...
...
@@ -36,14 +46,8 @@ if [ -n "${use_etf}" ] && [ -n "${use_pfast}" ]; then
usage
fi
if
[
-n
"
${
use_etf
}
"
]
;
then
echo
"
$script_dir
/create_qdisc -e
$delta
"
;
$script_dir
/create_qdisc
-e
$delta
;
echo
"
$script_dir
/../packet-exchange/build/client_arm -ae -p 99 -q 7 -f eth0 -i
$interval
192.168.99.25"
;
$script_dir
/../packet-exchange/build/client_arm
-ae
-p
99
-q
7
-f
eth0
-i
$interval
192.168.99.25
;
elif
[
-n
"
${
use_pfast
}
"
]
;
then
echo
"
$script_dir
/create_qdisc -p"
;
$script_dir
/create_qdisc
-p
;
echo
"
$script_dir
/../packet-exchange/build/client_arm -a -p 99 -q 1 -f eth0 -i
$interval
192.168.99.25"
;
$script_dir
/../packet-exchange/build/client_arm
-a
-p
99
-q
1
-f
eth0
-i
$interval
192.168.99.25
;
fi
echo
"
$script_dir
/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"
;
$script_dir
/../packet-exchange/build/client_arm
$client_options
-i
$interval
192.168.99.25
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment