mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Wildcards in dhcp-range constructors
This commit is contained in:
@@ -712,14 +712,19 @@ void log_context(int family, struct dhcp_context *context)
|
||||
#ifdef HAVE_DHCP6
|
||||
if (context->flags & CONTEXT_CONSTRUCTED)
|
||||
{
|
||||
n = p;
|
||||
p += sprintf(p, ", constructed for %s", context->template_interface);
|
||||
char ifrn_name[IFNAMSIZ];
|
||||
if (indextoname(daemon->doing_dhcp6 ? daemon->dhcp6fd : daemon->icmp6fd, context->if_index, ifrn_name))
|
||||
{
|
||||
n = p;
|
||||
p += sprintf(p, ", constructed for %s", ifrn_name);
|
||||
}
|
||||
}
|
||||
|
||||
if (context->flags & CONTEXT_TEMPLATE)
|
||||
{
|
||||
n = p;
|
||||
p += sprintf(p, ", template for %s", context->template_interface);
|
||||
p += sprintf(p, ", template for %s%s", context->template_interface,
|
||||
(context->flags & CONTEXT_WILDCARD) ? "*" : "");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user