Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
b94bedc4
Commit
b94bedc4
authored
Feb 20, 2008
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force EMULAB_MCADDR to always be a /8. This is the easiest, least painful
way forward for my life.
parent
6b9e02e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
firewall/initfwvars.pl.in
firewall/initfwvars.pl.in
+5
-6
No files found.
firewall/initfwvars.pl.in
View file @
b94bedc4
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2005 University of Utah and the Flux Group.
# Copyright (c) 2005
, 2008
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -75,13 +75,12 @@ DBQueryFatal($str)
# XXX assumptions, assumptions (as of 9/05). We could allow up to a /8 network
# but we assign a unique port as well as address and a port is only 16 bits,
# so use a /16.
# XXX assumptions II (as of 2/08). frisbeelauncher ticks up the MC address
# all the way to /8 (it wraps the port number as needed), so lets make it
# so here.
#
my
@mcaddr
=
split
/\./
,
$FRISBEE_MCASTADDR
,
4
;
if
(
@mcaddr
<
2
)
{
$FRISBEE_MCASTADDR
=
$mcaddr
[
0
]
.
"
.0.0.0/16
";
}
else
{
$FRISBEE_MCASTADDR
=
$mcaddr
[
0
]
.
"
.
"
.
$mcaddr
[
1
]
.
"
.0.0/16
";
}
$FRISBEE_MCASTADDR
=
$mcaddr
[
0
]
.
"
.0.0.0/8
";
$FRISBEE_MCASTPORT
=
$FRISBEE_MCASTPORT
.
"
-65535
";
$str
=
"
replace into default_firewall_vars values ('EMULAB_MCADDR', '
$FRISBEE_MCASTADDR
')
";
...
...
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