Commit 3875be86 by Juliusz Chroboczek

Set default value of enable-timestamps to false.

1 parent 14efd56f
......@@ -331,15 +331,9 @@ infinity, this can be set to a fairly large value, unless significant
packet loss is expected. The default is four times the hello interval.
.TP
.BR enable\-timestamps " {" true | false }
This specifies whether we should send timestamps with each Hello and
IHU message, in order to compute RTTs. The overhead is about 8 bytes
per message. When set to
.BR false ,
the behaviour on this interface is identical to a non-RTT-aware
babeld. Namely, we are unable to compute RTTs, and our neighbours on
this interface are also unable to compute RTTs to us. The default is
.B true
for all interfaces.
Enable sending timestamps with each Hello and IHU message in order to
compute RTT values. The default is
.BR false .
.TP
.BI rtt\-exponential\-decay " decay"
This specifies the decay factor for the exponential moving average of
......
......@@ -293,6 +293,9 @@ 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->enable_timestamps = 1;
if(IF_CONF(ifp, hello_interval) > 0)
ifp->hello_interval = IF_CONF(ifp, hello_interval);
else if((ifp->flags & IF_WIRED))
......@@ -305,9 +308,6 @@ interface_up(struct interface *ifp, int up)
IF_CONF(ifp, update_interval) :
ifp->hello_interval * 4;
ifp->enable_timestamps =
(IF_CONF(ifp, enable_timestamps) == CONFIG_NO) ? 0 : 1;
ifp->rtt_exponential_decay =
IF_CONF(ifp, rtt_exponential_decay) > 0 ?
IF_CONF(ifp, rtt_exponential_decay) : 42;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!