Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
09d99f10
Commit
09d99f10
authored
Aug 20, 2015
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option "router-id", remove command-line flag "-R".
parent
765c90e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
babeld.c
babeld.c
+1
-7
babeld.h
babeld.h
+1
-0
babeld.man
babeld.man
+5
-5
configuration.c
configuration.c
+8
-0
No files found.
babeld.c
View file @
09d99f10
...
...
@@ -129,7 +129,7 @@ main(int argc, char **argv)
while
(
1
)
{
opt
=
getopt
(
argc
,
argv
,
"m:p:h:H:i:k:A:sr
R:
uS:d:g:lwz:M:t:T:c:C:DL:I:"
);
"m:p:h:H:i:k:A:sruS:d:g:lwz:M:t:T:c:C:DL:I:"
);
if
(
opt
<
0
)
break
;
...
...
@@ -182,12 +182,6 @@ main(int argc, char **argv)
case
'r'
:
random_id
=
1
;
break
;
case
'R'
:
rc
=
parse_eui64
(
optarg
,
myid
);
if
(
rc
<
0
)
goto
usage
;
have_id
=
1
;
break
;
case
'u'
:
keep_unfeasible
=
1
;
break
;
...
...
babeld.h
View file @
09d99f10
...
...
@@ -94,6 +94,7 @@ extern int all_wireless;
extern
int
has_ipv6_subtrees
;
extern
unsigned
char
myid
[
8
];
extern
int
have_id
;
extern
const
unsigned
char
zeroes
[
16
],
ones
[
16
];
...
...
babeld.man
View file @
09d99f10
...
...
@@ -94,11 +94,6 @@ derived from the MAC address of the first interface, which is easier
to debug and more reliably prevents routing loops but may sometimes
cause a node to be unreachable for 120 seconds just after boot.
.TP
.BI \-R " router-id"
Specify the router-id explicitly, as a modified EUI-64 or a MAC-48
address. If two nodes have the same router-id, bad things will happen.
Don't use this option unless you know what you are doing.
.TP
.B \-u
Do not flush unfeasible (useless) routes. This is useful in order to
announce more information to a front-end (see
...
...
@@ -258,6 +253,11 @@ If this flag is set, no kernel (sysctl) setup is performed on startup. This can
be useful when running in environments where system permissions prevent setting
kernel parameters, for instance inside a Linux container.
.TP
.BI router-id " id"
Specify the router-id explicitly, as a modified EUI-64 or a MAC-48
address. If two nodes have the same router-id, bad things will happen.
Don't use this option unless you know what you are doing.
.TP
.BI state-file " filename"
This specifies the name of the file used for preserving long-term
information between invocations of the
...
...
configuration.c
View file @
09d99f10
...
...
@@ -782,6 +782,14 @@ parse_option(int c, gnc_t gnc, void *closure, char *token)
if
(
c
<
-
1
||
n
<=
0
||
n
+
SRC_TABLE_NUM
>=
32765
)
goto
error
;
src_table_prio
=
n
;
}
else
if
(
strcmp
(
token
,
"router-id"
)
==
0
)
{
unsigned
char
*
id
=
NULL
;
c
=
getid
(
c
,
&
id
,
gnc
,
closure
);
if
(
c
<
-
1
||
id
==
NULL
)
goto
error
;
memcpy
(
myid
,
id
,
8
);
free
(
id
);
have_id
=
1
;
}
else
{
goto
error
;
}
...
...
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