Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
b06ae702
Commit
b06ae702
authored
Apr 20, 2001
by
Christopher Alfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed really nasty bug with links between LANs and anything else.
parent
6cbdae61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tbsetup/ns2ir/link.tcl
tbsetup/ns2ir/link.tcl
+3
-3
No files found.
tbsetup/ns2ir/link.tcl
View file @
b06ae702
...
...
@@ -4,7 +4,7 @@ Class link
# link src srcport dst dstport
link instproc print
{
file
}
{
global nodeid_map prefix lanlist
global nodeid_map prefix lanlist
rid_map
if
{[
info exists nodeid_map
([
$self
set src
])]}
{
real_set srcname $nodeid_map
([
$self
set src
])
}
else
{
...
...
@@ -15,10 +15,10 @@ link instproc print {file} {
}
else
{
real_set dstname
[
$self
set dst
]
}
if
{[
lsearch $lanlist
[
$self
set src
]]
!= -1
}
{
if
{[
lsearch $lanlist
$rid_map
(
[
$self
set src
]
)
]
!= -1
}
{
real_set srcname $prefix-$srcname
}
if
{[
lsearch $lanlist
[
$self
set dst
]]
!= -1
}
{
if
{[
lsearch $lanlist
$rid_map
(
[
$self
set dst
]
)
]
!= -1
}
{
real_set dstname $prefix-$dstname
}
if
{[
info exists nodeid_map
(
l
[
$self
set id
])]}
{
...
...
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