Commit 74f31c0d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Down down old ifindex when ifindex changes.

parent 316dc4db
...@@ -268,6 +268,7 @@ check_networks(void) ...@@ -268,6 +268,7 @@ check_networks(void)
ifindex = if_nametoindex(nets[i].ifname); ifindex = if_nametoindex(nets[i].ifname);
if(ifindex != nets[i].ifindex) { if(ifindex != nets[i].ifindex) {
debugf("Noticed ifindex change for %s.\n", nets[i].ifname); debugf("Noticed ifindex change for %s.\n", nets[i].ifname);
nets[i].ifindex = 0;
network_up(&nets[i], 0); network_up(&nets[i], 0);
nets[i].ifindex = ifindex; nets[i].ifindex = ifindex;
changed = 1; changed = 1;
......
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