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
95090ae6
Commit
95090ae6
authored
Aug 26, 2003
by
Mike Hibler
Browse files
Change internal src/dst seperator from a '-' to a '%' since the former
is legal (and common!) in node vnames.
parent
7d2c12b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/staticroutes.in
View file @
95090ae6
...
...
@@ -488,7 +488,7 @@ HOSTROUTES:
$netroutes
{"
$src
:
$newipsubnet
"}
eq
$hop
)
{
next
;
}
else
{
$hostroutes
{"
$src
:
$srcip
-
$dst
:
$newip
"}
=
"
$hop
:
$hopip
";
$hostroutes
{"
$src
:
$srcip
%
$dst
:
$newip
"}
=
"
$hop
:
$hopip
";
}
}
...
...
@@ -545,7 +545,7 @@ HOSTROUTES:
# and if subsequent host routes are different from the first
# route we added, only then will the host routes get added.
foreach
my
$hostroute
(
keys
(
%hostroutes
))
{
my
(
$srcinfo
,
$dstinfo
)
=
split
("
-
",
$hostroute
);
my
(
$srcinfo
,
$dstinfo
)
=
split
("
%
",
$hostroute
);
my
(
$src
,
$srcip
)
=
split
("
:
",
$srcinfo
);
my
(
$dst
,
$dstip
)
=
split
("
:
",
$dstinfo
);
my
(
$hop
,
$hopip
)
=
split
("
:
",
$hostroutes
{
$hostroute
});
...
...
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