mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-27 20:58:36 +00:00
Report correct error if prefix in dhcp-range is less than 64
Update debian/rules to provide no_dhcp6 and use_lua build opts. Log DHCPv6 information request packets.
This commit is contained in:
1 parent
c6cc03ed0c
commit
627797800d
4 files changed
+25
-20
No files matched your search
+4
-5
@@ -2336,7 +2336,7 @@ static char *one_opt(int option, char *arg, char *gen_prob, int command_line)
|
||||
daemon->dhcp6 = new;
|
||||
if (strcmp(a[1], "static") == 0)
|
||||
{
|
||||
new->end = new->start;
|
||||
memcpy(&new->end6, &new->start6, IN6ADDRSZ);
|
||||
new->flags |= CONTEXT_STATIC;
|
||||
}
|
||||
else if (!inet_pton(AF_INET6, a[1], &new->end6))
|
||||
@@ -2357,10 +2357,9 @@ static char *one_opt(int option, char *arg, char *gen_prob, int command_line)
|
||||
problem = _("prefix must be at least 64");
|
||||
}
|
||||
}
|
||||
if (!is_same_net6(&new->start6, &new->end6, new->prefix))
|
||||
problem = _("inconsistent DHCP range");
|
||||
|
||||
if (addr6part(&new->start6) > addr6part(&new->end6))
|
||||
if (!problem && !is_same_net6(&new->start6, &new->end6, new->prefix))
|
||||
problem = _("inconsistent DHCPv6 range");
|
||||
else if (addr6part(&new->start6) > addr6part(&new->end6))
|
||||
{
|
||||
struct in6_addr tmp = new->start6;
|
||||
new->start6 = new->end6;
|
||||
|
||||
Reference in new issue
Block a user