- set vlist keep_old=true, because the iface_update_cb expects it
- update ifindex on reload
Signed-off-by: Felix Fietkau <nbd@nbd.name>
cache_cleanup(if_old);
free(if_old->addrs.v4);
if_old->addrs = if_new->addrs;
+ if_old->ifindex = if_new->ifindex;
free(if_new);
return;
}
return iface;
}
-VLIST_TREE(interfaces, avl_strcmp, iface_update_cb, false, false);
+VLIST_TREE(interfaces, avl_strcmp, iface_update_cb, true, false);