Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
48f1bf55
Commit
48f1bf55
authored
Sep 01, 2016
by
Leigh B Stoller
Browse files
Fix to blackhole mode (link down/up) on Linux.
parent
d116e2e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/event/delay-agent/callback.c
View file @
48f1bf55
...
...
@@ -707,7 +707,7 @@ void set_link_params(int l_index, int blackhole, int p_which)
sprintf
(
cmd
,
"tc qdisc change "
"dev %s handle %d netem drop %.2f delay %dms"
,
iface
,
pipeno
+
10
,
p_params
->
plr
*
100
,
p_params
->
delay
);
(
blackhole
?
100
.
0
:
p_params
->
plr
*
100
)
,
p_params
->
delay
);
if
(
debug
)
info
(
"%s
\n
"
,
cmd
);
...
...
@@ -734,7 +734,9 @@ void set_link_params(int l_index, int blackhole, int p_which)
// Now loss and delay. loss is in percent.
sprintf
(
cmd
,
"tc qdisc change "
"dev %s handle 3 netem drop %.2f delay %dms"
,
iface
,
p_params
->
plr
*
100
,
p_params
->
delay
);
iface
,
(
blackhole
?
100
.
0
:
p_params
->
plr
*
100
),
p_params
->
delay
);
if
(
debug
)
info
(
"%s
\n
"
,
cmd
);
...
...
Write
Preview
Supports
Markdown
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