mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 17:40:08 +01:00
rdisc: emit config_change signal for update of address lifetime
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
a032d82e2a
commit
8d3618a07b
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue