mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
missed DHCP6 conditional compilation.
This commit is contained in:
@@ -69,6 +69,7 @@ void lease_init(time_t now)
|
|||||||
if (leasestream)
|
if (leasestream)
|
||||||
while (fscanf(leasestream, "%255s %255s", daemon->dhcp_buff3, daemon->dhcp_buff2) == 2)
|
while (fscanf(leasestream, "%255s %255s", daemon->dhcp_buff3, daemon->dhcp_buff2) == 2)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_DHCP6
|
||||||
if (strcmp(daemon->dhcp_buff3, "duid") == 0)
|
if (strcmp(daemon->dhcp_buff3, "duid") == 0)
|
||||||
{
|
{
|
||||||
daemon->duid_len = parse_hex(daemon->dhcp_buff2, (unsigned char *)daemon->dhcp_buff2, 130, NULL, NULL);
|
daemon->duid_len = parse_hex(daemon->dhcp_buff2, (unsigned char *)daemon->dhcp_buff2, 130, NULL, NULL);
|
||||||
@@ -76,6 +77,7 @@ void lease_init(time_t now)
|
|||||||
memcpy(daemon->duid, daemon->dhcp_buff2, daemon->duid_len);
|
memcpy(daemon->duid, daemon->dhcp_buff2, daemon->duid_len);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ei = atol(daemon->dhcp_buff3);
|
ei = atol(daemon->dhcp_buff3);
|
||||||
|
|
||||||
@@ -150,7 +152,6 @@ void lease_init(time_t now)
|
|||||||
/* If we're not doing DHCPv6, and there are not v6 leases, don't add the DUID to the database */
|
/* If we're not doing DHCPv6, and there are not v6 leases, don't add the DUID to the database */
|
||||||
if (!daemon->duid && daemon->dhcp6)
|
if (!daemon->duid && daemon->dhcp6)
|
||||||
make_duid(now);
|
make_duid(now);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SCRIPT
|
#ifdef HAVE_SCRIPT
|
||||||
|
|||||||
Reference in New Issue
Block a user