summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/option_definition.cc
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2013-10-18 15:47:44 +0200
committerMarcin Siodelski <marcin@isc.org>2013-10-18 15:47:44 +0200
commitbeac4c1be1f4063d1b8420d0241f5f384564bba3 (patch)
tree09e2bd41d154b01fd2b24efeb1a53f5f5280ef1d /src/lib/dhcp/option_definition.cc
parent[master] Merge branch 'trac3184' (RAI option echoed back in DHCPv4) (diff)
downloadkea-beac4c1be1f4063d1b8420d0241f5f384564bba3.tar.xz
kea-beac4c1be1f4063d1b8420d0241f5f384564bba3.zip
[3200] DHCPv4 PRL option is encapsulated by OptionUint8Array class.
Diffstat (limited to 'src/lib/dhcp/option_definition.cc')
-rw-r--r--src/lib/dhcp/option_definition.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/dhcp/option_definition.cc b/src/lib/dhcp/option_definition.cc
index 9b93a8e07e..8c1cad0b3e 100644
--- a/src/lib/dhcp/option_definition.cc
+++ b/src/lib/dhcp/option_definition.cc
@@ -124,12 +124,14 @@ OptionDefinition::optionFactory(Option::Universe u, uint16_t type,
return (factoryGeneric(u, type, begin, end));
case OPT_UINT8_TYPE:
- return (array_type_ ? factoryGeneric(u, type, begin, end) :
+ return (array_type_ ?
+ factoryIntegerArray<uint8_t>(u, type, begin, end) :
factoryInteger<uint8_t>(u, type, getEncapsulatedSpace(),
begin, end, callback));
case OPT_INT8_TYPE:
- return (array_type_ ? factoryGeneric(u, type, begin, end) :
+ return (array_type_ ?
+ factoryIntegerArray<int8_t>(u, type, begin, end) :
factoryInteger<int8_t>(u, type, getEncapsulatedSpace(),
begin, end, callback));