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
1616ee4a
Commit
1616ee4a
authored
Jan 30, 2018
by
Juliusz Chroboczek
Committed by
Juliusz Chroboczek
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a per-interface flag rfc6126-compatible.
parent
b98fb201
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
babeld.man
babeld.man
+5
-0
configuration.c
configuration.c
+7
-0
interface.c
interface.c
+5
-0
interface.h
interface.h
+3
-0
No files found.
babeld.man
View file @
1616ee4a
...
...
@@ -411,6 +411,11 @@ for tunnel interfaces, and
.B false
otherwise.
.TP
.BR rfc6126\-compatible " {" true | false }
Only send TLVs that are defined by RFC 6126, the older version of Babel.
The default is
.BR false .
.TP
.BI rtt\-decay " decay"
This specifies the decay factor for the exponential moving average of
RTT samples, in units of 1/256. Must be between 1 and 256, inclusive.
...
...
configuration.c
View file @
1616ee4a
...
...
@@ -600,6 +600,12 @@ parse_anonymous_ifconf(int c, gnc_t gnc, void *closure,
if
(
c
<
-
1
)
goto
error
;
if_conf
->
enable_timestamps
=
v
;
}
else
if
(
strcmp
(
token
,
"rfc6126-compatible"
)
==
0
)
{
int
v
;
c
=
getbool
(
c
,
&
v
,
gnc
,
closure
);
if
(
c
<
-
1
)
goto
error
;
if_conf
->
rfc6126
=
v
;
}
else
if
(
strcmp
(
token
,
"rtt-decay"
)
==
0
)
{
int
decay
;
c
=
getint
(
c
,
&
decay
,
gnc
,
closure
);
...
...
@@ -707,6 +713,7 @@ merge_ifconf(struct interface_conf *dest,
MERGE
(
faraway
);
MERGE
(
channel
);
MERGE
(
enable_timestamps
);
MERGE
(
rfc6126
);
MERGE
(
rtt_decay
);
MERGE
(
rtt_min
);
MERGE
(
rtt_max
);
...
...
interface.c
View file @
1616ee4a
...
...
@@ -434,6 +434,11 @@ interface_up(struct interface *ifp, int up)
"but timestamps are disabled on interface %s.
\n
"
,
ifp
->
name
);
if
(
IF_CONF
(
ifp
,
rfc6126
)
==
CONFIG_YES
)
ifp
->
flags
|=
IF_RFC6126
;
else
ifp
->
flags
&=
~
IF_RFC6126
;
rc
=
check_link_local_addresses
(
ifp
);
if
(
rc
<
0
)
{
goto
fail
;
...
...
interface.h
View file @
1616ee4a
...
...
@@ -47,6 +47,7 @@ struct interface_conf {
char
faraway
;
int
channel
;
int
enable_timestamps
;
int
rfc6126
;
unsigned
int
rtt_decay
;
unsigned
int
rtt_min
;
unsigned
int
rtt_max
;
...
...
@@ -70,6 +71,8 @@ struct interface_conf {
#define IF_FARAWAY (1 << 4)
/* Send timestamps in Hello and IHU. */
#define IF_TIMESTAMPS (1 << 5)
/* Remain compatible with RFC 6126. */
#define IF_RFC6126 (1 << 6)
/* Only INTERFERING can appear on the wire. */
#define IF_CHANNEL_UNKNOWN 0
...
...
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