2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-06 00:45:23 +00:00

[5016] Update server code and tests to properly use exclude option.

This commit is contained in:
Marcin Siodelski
2016-10-27 20:20:25 +02:00
parent 9145a3c0bc
commit 3e7fa856b7
8 changed files with 36 additions and 37 deletions

View File

@@ -525,11 +525,7 @@ private:
// If the option space is a standard DHCPv4 or DHCPv6 option space,
// this is most likely a standard option, for which we have a
// definition created within libdhcp++.
OptionDefinitionPtr def;
if ((space == DHCP4_OPTION_SPACE) ||
(space == DHCP6_OPTION_SPACE)) {
def = LibDHCP::getOptionDef(universe_, code);
}
OptionDefinitionPtr def = LibDHCP::getOptionDef(space, code);
// Otherwise, we may check if this an option encapsulated within the
// vendor space.