Skip to content
GitLab
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
0623acd0
Commit
0623acd0
authored
Jun 12, 2006
by
Mike Hibler
Browse files
minor nits
parent
b422511d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ns2ir/tb_compat.tcl.in
View file @
0623acd0
...
...
@@ -598,8 +598,10 @@ proc tb-set-node-lan-delay {node lan delay} {
perror
"
\[
tb-set-node-lan-delay]
$node
is not in
$lan.
"
return
}
$lan set delay
([
list $node $port
])
[
parse_delay $delay
]
$lan set rdelay
([
list $node $port
])
[
parse_delay $delay
]
set rdelay
[
parse_delay $delay
]
$lan set delay
([
list $node $port
])
$rdelay
$lan set rdelay
([
list $node $port
])
$rdelay
}
...
...
@@ -640,16 +642,16 @@ proc tb-set-node-lan-est-bandwidth {node lan bw} {
proc tb-set-node-lan-loss
{
node lan loss
}
{
var_import ::TBCOMPAT::FLOAT
if
{[
$node
info class
]
!=
"Node"
}
{
perror
"
\[
tb-set-node-lan-
delay
]
$node
is not a node."
perror
"
\[
tb-set-node-lan-
loss
]
$node
is not a node."
return
}
if
{[
$lan
info class
]
!=
"Lan"
}
{
perror
"
\[
tb-set-node-lan-
delay
]
$lan
is not a lan."
perror
"
\[
tb-set-node-lan-
loss
]
$lan
is not a lan."
return
}
set port
[
$lan
get_port $node
]
if
{
$port
==
{}}
{
perror
"
\[
tb-set-node-lan-
delay
]
$node
is not in
$lan.
"
perror
"
\[
tb-set-node-lan-
loss
]
$node
is not in
$lan.
"
return
}
if
{([
regexp $FLOAT $loss
]
== 0
)
||
...
...
@@ -774,16 +776,16 @@ proc tb-set-link-simplex-params {link src delay bw loss} {
proc tb-set-lan-simplex-params
{
lan node todelay tobw toloss fromdelay frombw fromloss
}
{
var_import ::TBCOMPAT::FLOAT
if
{[
$node
info class
]
!=
"Node"
}
{
perror
"
\[
tb-set-
node-lan-delay
]
$node
is not a node."
perror
"
\[
tb-set-
lan-simplex-params
]
$node
is not a node."
return
}
if
{[
$lan
info class
]
!=
"Lan"
}
{
perror
"
\[
tb-set-
node-lan-delay
]
$lan
is not a lan."
perror
"
\[
tb-set-
lan-simplex-params
]
$lan
is not a lan."
return
}
set port
[
$lan
get_port $node
]
if
{
$port
==
{}}
{
perror
"
\[
tb-set-
node-lan-delay
]
$node
is not in
$lan.
"
perror
"
\[
tb-set-
lan-simplex-params
]
$node
is not in
$lan.
"
return
}
if
{([
regexp $FLOAT $toloss
]
== 0
)
||
(
$toloss
> 1.0
)}
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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