In address_can_update(), only prefix length is checked for IPv6
addresses. So, this should not change any behavior.
}
}
-static bool address_can_update(const Address *existing, const Address *requesting) {
+bool address_can_update(const Address *existing, const Address *requesting) {
assert(existing);
assert(requesting);
extern const struct hash_ops address_hash_ops;
+bool address_can_update(const Address *existing, const Address *requesting);
+
Address* address_ref(Address *address);
Address* address_unref(Address *address);
} else
log_level = LOG_DEBUG;
- if (address->prefixlen == existing->prefixlen)
- /* Currently, only conflict in prefix length is reported. */
+ if (address_can_update(existing, address))
goto simple_log;
if (existing->source == NETWORK_CONFIG_SOURCE_NDISC)