Commit ebbb3bd3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Change default update interval to 4 times the hello interval.

parent cce0b377
...@@ -278,8 +278,8 @@ network_up(struct network *net, int up) ...@@ -278,8 +278,8 @@ network_up(struct network *net, int up)
NET_CONF(net, update_interval) > 0 ? NET_CONF(net, update_interval) > 0 ?
NET_CONF(net, update_interval) : NET_CONF(net, update_interval) :
NET_CONF(net, hello_interval) > 0 ? NET_CONF(net, hello_interval) > 0 ?
NET_CONF(net, hello_interval) * 5 : NET_CONF(net, hello_interval) * 4 :
wired_hello_interval * 5; wired_hello_interval * 4;
} else { } else {
net->flags &= ~NET_WIRED; net->flags &= ~NET_WIRED;
net->cost = NET_CONF(net, cost); net->cost = NET_CONF(net, cost);
...@@ -296,8 +296,8 @@ network_up(struct network *net, int up) ...@@ -296,8 +296,8 @@ network_up(struct network *net, int up)
NET_CONF(net, update_interval) > 0 ? NET_CONF(net, update_interval) > 0 ?
NET_CONF(net, update_interval) : NET_CONF(net, update_interval) :
NET_CONF(net, hello_interval) > 0 ? NET_CONF(net, hello_interval) > 0 ?
NET_CONF(net, hello_interval) * 5 : NET_CONF(net, hello_interval) * 4 :
wireless_hello_interval * 5; wireless_hello_interval * 4;
} }
update_hello_interval(net); update_hello_interval(net);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment