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
45e1e13a
Commit
45e1e13a
authored
Sep 28, 2002
by
Leigh B. Stoller
Browse files
Change to optimize mode; create -net routes for all link and lans
(instead of just lans with greater than two members).
parent
230fa746
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/staticroutes.in
View file @
45e1e13a
...
...
@@ -378,11 +378,11 @@ foreach my $route (keys(%routes)) {
}
#
# If
the dst is a real lan (>2 members) w
e
w
an
t to create a net route
#
and avoid a per-host entry for each pair. Convert the route, but
#
remember we did it so we can skip similar
routes in the future.
# If
optimzing create a net rout
e an
d avoid a per-host entry for each
#
pair. Convert the route, but remember we did it so we can skip similar
# routes in the future.
#
if
(
$optimize
&&
@dstmembers
>
2
)
{
if
(
$optimize
)
{
my
$newip
=
inet_ntoa
(
inet_aton
(
$dstip
)
&
inet_aton
(
$NETMASK
));
if
(
defined
(
$netroutes
{"
$src
:
$newip
"}))
{
...
...
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