Commit ff4cc024 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Reset split-horizon flag when a wired interface becomes wireless.

parent 18df22fc
...@@ -267,6 +267,7 @@ network_up(struct network *net, int up) ...@@ -267,6 +267,7 @@ network_up(struct network *net, int up)
net->flags &= ~NET_WIRED; net->flags &= ~NET_WIRED;
net->cost = NET_CONF(net, cost, 0); net->cost = NET_CONF(net, cost, 0);
if(net->cost <= 0) net->cost = 256; if(net->cost <= 0) net->cost = 256;
net->flags &= ~NET_SPLIT_HORIZON;
} }
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