Fix missing RA RDNS option with --dhcp-option=option6:23,[::]

This commit is contained in:
Simon Kelley
2014-01-10 18:15:16 +00:00
parent 4f04476e3b
commit ae76242fdf
2 changed files with 5 additions and 1 deletions

View File

@@ -7,6 +7,10 @@ version 2.69
Fix infinite loop associated with some --bogus-nxdomain Fix infinite loop associated with some --bogus-nxdomain
configs. Thanks fogobogo for the bug report. configs. Thanks fogobogo for the bug report.
Fix missing RA RDNS option with configuration like
--dhcp-option=option6:23,[::] Thanks to Tsachi Kimeldorfer
for spotting the problem.
version 2.68 version 2.68
Use random addresses for DHCPv6 temporary address Use random addresses for DHCPv6 temporary address

View File

@@ -343,7 +343,7 @@ static void send_ra(time_t now, int iface, char *iface_name, struct in6_addr *de
struct in6_addr *a = (struct in6_addr *)opt_cfg->val; struct in6_addr *a = (struct in6_addr *)opt_cfg->val;
done_dns = 1; done_dns = 1;
if (opt_cfg->len == 0 || (IN6_IS_ADDR_UNSPECIFIED(a) && parm.pref_time != 0)) if (opt_cfg->len == 0 || (IN6_IS_ADDR_UNSPECIFIED(a) && parm.pref_time == 0))
continue; continue;
put_opt6_char(ICMP6_OPT_RDNSS); put_opt6_char(ICMP6_OPT_RDNSS);