[LEDE-DEV] [PATCH netifd 1/2] interface-ip: set address indicator flag when IPv6 address lifetime changes
Hans Dedecker
dedeckeh at gmail.com
Thu Mar 9 08:32:59 PST 2017
Trigger interface update event when IPv6 address lifetime changes by setting
the address indicator flag to inform external subsystems about IPv6 address
lifetime change.
Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
interface-ip.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/interface-ip.c b/interface-ip.c
index ddca5d2..366f69a 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -563,8 +563,10 @@ interface_update_proto_addr(struct vlist_tree *tree,
keep = false;
if (a_old->valid_until != a_new->valid_until ||
- a_old->preferred_until != a_new->preferred_until)
+ a_old->preferred_until != a_new->preferred_until) {
+ iface->updated |= IUF_ADDRESS;
replace = true;
+ }
if ((a_new->flags & DEVADDR_FAMILY) == DEVADDR_INET4 &&
a_new->broadcast != a_old->broadcast)
--
1.9.1
More information about the Lede-dev
mailing list