rdisc: emit config_change signal for update of address lifetime

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2013-10-23 18:37:02 +02:00
parent a032d82e2a
commit 8d3618a07b

View file

@ -105,8 +105,11 @@ add_address (NMRDisc *rdisc, const NMRDiscAddress *new)
NMRDiscAddress *item = &g_array_index (rdisc->addresses, NMRDiscAddress, i);
if (IN6_ARE_ADDR_EQUAL (&item->address, &new->address)) {
memcpy (item, new, sizeof (*new));
return FALSE;
gboolean changed = item->timestamp + item->lifetime != new->timestamp + new->lifetime ||
item->timestamp + item->preferred != new->timestamp + new->preferred;
*item = *new;
return changed;
}
}