summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface-ip.c')
-rw-r--r--interface-ip.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/interface-ip.c b/interface-ip.c
index 1a6c28d..83f1dfa 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -1053,6 +1053,20 @@ void interface_refresh_assignments(bool hint)
refresh = hint;
}
+void interface_update_prefix_delegation(struct interface_ip_settings *ip)
+{
+ struct device_prefix *prefix;
+
+ vlist_for_each_element(&ip->prefix, prefix, node) {
+ interface_update_prefix_assignments(prefix, !ip->no_delegation);
+
+ if (ip->no_delegation) {
+ if (prefix->head.next)
+ list_del(&prefix->head);
+ } else
+ list_add(&prefix->head, &prefixes);
+ }
+}
static void
interface_update_prefix(struct vlist_tree *tree,