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
fe538cc4
Commit
fe538cc4
authored
May 18, 2014
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set enable-timestamps by default is max-rtt-penalty is positive.
parent
227e55ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
babeld.man
babeld.man
+6
-1
interface.c
interface.c
+5
-3
No files found.
babeld.man
View file @
fe538cc4
...
...
@@ -333,7 +333,12 @@ packet loss is expected. The default is four times the hello interval.
.BR enable\-timestamps " {" true | false }
Enable sending timestamps with each Hello and IHU message in order to
compute RTT values. The default is
.BR false .
.B true
if
.B max\-rtt\-penalty
is non-zero (see below), and
.B false
otherwise.
.TP
.BI rtt\-exponential\-decay " decay"
This specifies the decay factor for the exponential moving average of
...
...
interface.c
View file @
fe538cc4
...
...
@@ -293,9 +293,6 @@ interface_up(struct interface *ifp, int up)
if
(
IF_CONF
(
ifp
,
faraway
)
==
CONFIG_YES
)
ifp
->
flags
|=
IF_FARAWAY
;
if
(
IF_CONF
(
ifp
,
enable_timestamps
)
==
CONFIG_YES
)
ifp
->
flags
|=
IF_TIMESTAMPS
;
if
(
IF_CONF
(
ifp
,
hello_interval
)
>
0
)
ifp
->
hello_interval
=
IF_CONF
(
ifp
,
hello_interval
);
else
if
((
ifp
->
flags
&
IF_WIRED
))
...
...
@@ -327,6 +324,11 @@ interface_up(struct interface *ifp, int up)
}
ifp
->
max_rtt_penalty
=
IF_CONF
(
ifp
,
max_rtt_penalty
);
if
(
IF_CONF
(
ifp
,
enable_timestamps
)
==
CONFIG_YES
||
(
IF_CONF
(
ifp
,
enable_timestamps
)
==
CONFIG_DEFAULT
&&
ifp
->
max_rtt_penalty
>
0
))
ifp
->
flags
|=
IF_TIMESTAMPS
;
if
(
ifp
->
ll
)
free
(
ifp
->
ll
);
ifp
->
numll
=
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