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
bc182b29
Commit
bc182b29
authored
Feb 04, 2017
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable passing of multicast port range to subbosses.
parent
044c33bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
clientside/os/frisbee.redux/config_null.c
clientside/os/frisbee.redux/config_null.c
+6
-0
rc.d/3.mfrisbeed-subboss.sh.in
rc.d/3.mfrisbeed-subboss.sh.in
+29
-0
No files found.
clientside/os/frisbee.redux/config_null.c
View file @
bc182b29
...
...
@@ -830,6 +830,8 @@ null_init(char *opts)
/*
* Options:
* mcaddr=A.B.C.D MC base address
* mcportbase=N MC base portnum (0 for any ephem)
* mcportnum=N Number of MC ports (0 for all above base)
* bandwidth=NNNNNNNN Max bandwidth of a server
* dynamicbw=(1|0) Use dynamic bandwidth control
* maxlinger=N Server lingers for N seconds after last req
...
...
@@ -861,6 +863,10 @@ null_init(char *opts)
*
cp
=
0
;
if
(
strcmp
(
opt
,
"mcaddr"
)
==
0
)
DEFAULT_MCADDR
=
mystrdup
(
cp
+
1
);
else
if
(
strcmp
(
opt
,
"mcportbase"
)
==
0
)
DEFAULT_MCPORT
=
mystrdup
(
cp
+
1
);
else
if
(
strcmp
(
opt
,
"mcportnum"
)
==
0
)
DEFAULT_MCNUMPORT
=
mystrdup
(
cp
+
1
);
else
if
(
strcmp
(
opt
,
"bandwidth"
)
==
0
)
maxrate
=
(
uint32_t
)
strtol
(
cp
+
1
,
NULL
,
10
);
...
...
rc.d/3.mfrisbeed-subboss.sh.in
View file @
bc182b29
...
...
@@ -22,6 +22,13 @@
# Subbosses in the same broadcast domain should use different values to
# avoid confusion; e.g., 239.193.1, 239.194.1, etc.
# Unset to use mfrisbeed default.
# MCBASEPORT: base multicast port number.
# Zero means any ephemeral port.
# Unset to use mfrisbeed default.
# MCNUMPORT: number of ports to allow.
# Range will be MCBASEPORT to MCBASEPORT+MCNUMPORT.
# Zero means any ephemeral port above the base.
# Unset to use mfrisbeed default.
# BANDWIDTH: maximum bandwidth any instance of frisbeed should use (Mb/sec).
# Unset to use mfrisbeed default.
# DYNAMICBW: use *experimental* dynamic bandwidth control. If non-zero,
...
...
@@ -42,6 +49,8 @@
# DEBUG: set to run with debugging enabled.
#
MCBASEADDR
=
239.192.1
MCBASEPORT
=
MCNUMPORT
=
BANDWIDTH
=
100000000
DYNAMICBW
=
MAXLINGER
=
180
...
...
@@ -122,6 +131,12 @@ if [ $? -eq 0 ]; then
MCBASEADDR)
MCBASEADDR=
$v
;;
MCBASEPORT)
MCBASEPORT=
$v
;;
MCNUMPORT)
MCNUMPORT=
$v
;;
BANDWIDTH)
BANDWIDTH=
$v
;;
...
...
@@ -172,6 +187,20 @@ opts=""
if [ -n
"
$MCBASEADDR
"
]; then
opts=
"-O mcaddr=
$MCBASEADDR
"
fi
if [ -n
"
$MCBASEPORT
"
]; then
if [ -z
"
$opts
"
]; then
opts=
"-O mcportbase=
$MCBASEPORT
"
else
opts=
"
$opts
,mcportbase=
$MCBASEPORT
"
fi
fi
if [ -n
"
$MCNUMPORT
"
]; then
if [ -z
"
$opts
"
]; then
opts=
"-O mcportnum=
$MCNUMPORT
"
else
opts=
"
$opts
,mcportnum=
$MCNUMPORT
"
fi
fi
if [ -n
"
$BANDWIDTH
"
]; then
if [ -z
"
$opts
"
]; then
opts=
"-O bandwidth=
$BANDWIDTH
"
...
...
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