From 486479e94308f8579ad5132a5218a74dbc707521 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Mon, 14 Oct 2013 17:18:03 +0100 Subject: [PATCH] Check prefix length when contructing DHCP ranges. --- src/dhcp6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dhcp6.c b/src/dhcp6.c index 1a7aa48..7b0adcf 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -624,7 +624,8 @@ static int construct_worker(struct in6_addr *local, int prefix, } } - else if (wildcard_match(template->template_interface, ifrn_name)) + else if (wildcard_match(template->template_interface, ifrn_name) && + template->prefix == prefix) { start6 = *local; setaddr6part(&start6, addr6part(&template->start6));