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
88b42cc0
Commit
88b42cc0
authored
Oct 24, 2001
by
Leigh B. Stoller
Browse files
A "fix" to set the plr on both sides of the link (both pipes).
parent
b27efd96
Changes
1
Show whitespace changes
Inline
Side-by-side
utils/delay_config.in
View file @
88b42cc0
...
...
@@ -77,23 +77,15 @@ applyChanges() && updatedb();
exit
(
0
);
sub
applyChanges
{
my
$cmd1
=
"";
$cmd1
.=
"
delay
${delay}
ms bw
${bw}${unit}
bit/s
";
my
$cmd2
=
$cmd1
;
$cmd1
.=
"
plr
$plr
";
my
$ssh1
=
"
ssh -f -n
$node
'sudo /sbin/ipfw pipe
$pipe1
config
$cmd1
;
"
.
"
sudo /sbin/ipfw pipe
$pipe2
config
$cmd2
'
";
my
$ssh2
=
"
ssh -f -n
$node
'sudo /sbin/ipfw pipe
$pipe1
config
$cmd1
'
";
if
(
$cmd1
ne
"")
{
if
(
$cmd2
ne
"")
{
if
(
$debug
)
{
print
"
$ssh1
\n
";
}
system
(
$ssh1
)
&&
die
("
Command '
$ssh1
' failed: $!
\n
");
}
else
{
if
(
$debug
)
{
print
"
$ssh2
\n
";
}
system
(
$ssh2
)
&&
die
("
Command '
$ssh2
' failed: $!
\n
");
}
}
1
;
my
$config
=
"
config delay
${delay}
ms bw
${bw}${unit}
bit/s plr
$plr
";
my
$cmd
=
"
ssh -f -n
$node
"
.
"
'sudo /sbin/ipfw pipe
$pipe1
$config
;
"
.
"
sudo /sbin/ipfw pipe
$pipe2
$config
'
";
if
(
$debug
)
{
print
"
$cmd
\n
";
}
system
(
$cmd
)
&&
die
("
Command '
$cmd
' failed: $!
\n
");
return
1
;
}
sub
updatedb
{
...
...
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