From 8d3618a07baccc8abd9cfe7cf5b000b5d8c3340b Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 23 Oct 2013 18:37:02 +0200 Subject: [PATCH] rdisc: emit config_change signal for update of address lifetime Signed-off-by: Thomas Haller --- src/rdisc/nm-lndp-rdisc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/rdisc/nm-lndp-rdisc.c b/src/rdisc/nm-lndp-rdisc.c index 3299b32aab..f94d82ac31 100644 --- a/src/rdisc/nm-lndp-rdisc.c +++ b/src/rdisc/nm-lndp-rdisc.c @@ -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; } }