Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
45e1e13a
Commit
45e1e13a
authored
Sep 28, 2002
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tbsetup/staticroutes.in
tbsetup/staticroutes.in
+4
-4
No files found.
tbsetup/staticroutes.in
View file @
45e1e13a
...
...
@@ -378,11 +378,11 @@ foreach my $route (keys(%routes)) {
}
#
# If
the dst is a real lan (>2 members) we want to create a net route
#
and avoid a per-host entry for each pair. Convert the route, but
# r
emember we did it so we can skip similar r
outes in the future.
# If
optimzing 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
(
$optimize
&&
@dstmembers
>
2
)
{
if
(
$optimize
)
{
my
$newip
=
inet_ntoa
(
inet_aton
(
$dstip
)
&
inet_aton
(
$NETMASK
));
if
(
defined
(
$netroutes
{"
$src
:
$newip
"}))
{
...
...
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