Commit a810559b authored by Simon Kelley's avatar Simon Kelley

daemon->icmp6fd is always valid when doing DHCPv6 now.

parent 861c8914
...@@ -827,7 +827,7 @@ void log_context(int family, struct dhcp_context *context) ...@@ -827,7 +827,7 @@ void log_context(int family, struct dhcp_context *context)
template = p; template = p;
p += sprintf(p, ", "); p += sprintf(p, ", ");
if (indextoname(daemon->doing_dhcp6 ? daemon->dhcp6fd : daemon->icmp6fd, context->if_index, ifrn_name)) if (indextoname(daemon->icmp6fd, context->if_index, ifrn_name))
sprintf(p, "%s for %s", (context->flags & CONTEXT_OLD) ? "old prefix" : "constructed", ifrn_name); sprintf(p, "%s for %s", (context->flags & CONTEXT_OLD) ? "old prefix" : "constructed", ifrn_name);
} }
else if (context->flags & CONTEXT_TEMPLATE) else if (context->flags & CONTEXT_TEMPLATE)
......
...@@ -608,7 +608,7 @@ static int construct_worker(struct in6_addr *local, int prefix, ...@@ -608,7 +608,7 @@ static int construct_worker(struct in6_addr *local, int prefix,
if (flags & IFACE_DEPRECATED) if (flags & IFACE_DEPRECATED)
return 1; return 1;
if (!indextoname(daemon->doing_dhcp6 ? daemon->dhcp6fd : daemon->icmp6fd, if_index, ifrn_name)) if (!indextoname(daemon->icmp6fd, if_index, ifrn_name))
return 0; return 0;
for (template = daemon->dhcp6; template; template = template->next) for (template = daemon->dhcp6; template; template = template->next)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment