]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit - src/if-options.c
DHCP6: Use sla setting when calculating delegated prefix length
authorRoy Marples <roy@marples.name>
Mon, 15 Jun 2020 14:51:17 +0000 (15:51 +0100)
committerRoy Marples <roy@marples.name>
Mon, 15 Jun 2020 14:51:17 +0000 (15:51 +0100)
commitd1913fa8a17cc495104eaecf3e71c62e21a18cc8
tree37b2300082b9d2ed1ca86409d074736050bfe179
parent1add27e3532e71f17d45236aa943c2253c17b343
DHCP6: Use sla setting when calculating delegated prefix length

This is fine as we have a limited list of interfaces we're
delegating to so we know all the numbers.
This fixes an issue where an interface index could exceed 8 bits.

While here change sla_set to a boolean.
src/dhcp6.c
src/if-options.c
src/if-options.h