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
b68577da
Commit
b68577da
authored
Mar 14, 2001
by
Christopher Alfeld
Browse files
Fixed bug for links to lans.
parent
b87870fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ns2ir/link.tcl
View file @
b68577da
...
...
@@ -4,7 +4,7 @@ Class link
# link src srcport dst dstport
link instproc print
{
file
}
{
global nodeid_map prefix
global nodeid_map prefix
lanlist
if
{[
info exists nodeid_map
([
$self
set src
])]}
{
set srcname $nodeid_map
([
$self
set src
])
}
else
{
...
...
@@ -15,6 +15,12 @@ link instproc print {file} {
}
else
{
set dstname
[
$self
set dst
]
}
if
{[
lsearch $lanlist
[
$self
set src
]]
!= -1
}
{
set srcname $prefix-$srcname
}
if
{[
lsearch $lanlist
[
$self
set dst
]]
!= -1
}
{
set dstname $prefix-$dstname
}
if
{[
info exists nodeid_map
(
l
[
$self
set id
])]}
{
set linkname $nodeid_map
(
l
[
$self
set id
])
}
else
{
...
...
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