diff options
Diffstat (limited to 'interface-ip.c')
-rw-r--r-- | interface-ip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/interface-ip.c b/interface-ip.c index eb585f5..26a2865 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -1264,6 +1264,9 @@ void interface_ip_set_enabled(struct interface_ip_settings *ip, bool enabled) vlist_for_each_element(&ip->addr, addr, node) { bool v6 = ((addr->flags & DEVADDR_FAMILY) == DEVADDR_INET6) ? true : false; + if (addr->flags & DEVADDR_EXTERNAL) + continue; + if (addr->enabled == enabled) continue; @@ -1289,6 +1292,9 @@ void interface_ip_set_enabled(struct interface_ip_settings *ip, bool enabled) vlist_for_each_element(&ip->route, route, node) { bool _enabled = enabled; + if (route->flags & DEVADDR_EXTERNAL) + continue; + if (!enable_route(ip, route)) _enabled = false; |