+ /*
+ * Don't include the subnet from a static config, and check if
+ * we're updating the IPv4 or IPv6 address.
+ * */
+ if ((subnet = strchr(address, '/')))
+ new_addr = talloc_strndup(if_info, address, subnet - address);
+ else
+ new_addr = talloc_strdup(if_info, address);
+ if (addr_scheme(new_addr) == AF_INET)
+ if_addr = &if_info->address;
+ else
+ if_addr = &if_info->address_v6;
+