From dd9d9ce54c46b0e110f71f8cb19934bd2e8ae656 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Fri, 15 Nov 2013 11:24:00 +0000 Subject: [PATCH] Fix problems when advertising deleted IPv6 prefixes. --- CHANGELOG | 5 +++++ src/radv.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 10b8da9..61689fa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -27,6 +27,11 @@ version 2.68 DHCP ranges, probably with a trailing "/6" like this: --auth-zone=example.com,eth0/6 to limit the addresses to IPv6 addresses of eth0. + + Fix problems when advertising deleted IPv6 prefixes. If + the prefix is deleted (rather than replaced), it doesn't + get advertised with zero preferred time. Thanks to Tsachi + for the bug report. version 2.67 diff --git a/src/radv.c b/src/radv.c index 88395db..22c2d1f 100644 --- a/src/radv.c +++ b/src/radv.c @@ -597,7 +597,7 @@ time_t periodic_ra(time_t now) if ((context->flags & CONTEXT_OLD) && context->if_index != 0 && - indextoname(daemon->icmp6fd, param.iface, param.name)) + indextoname(daemon->icmp6fd, context->if_index, param.name)) { /* A context for an old address. We'll not find the interface by looking for addresses, but we know it anyway, since the context is