Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
beac4c1b
Commit
beac4c1b
authored
Oct 18, 2013
by
Marcin Siodelski
Browse files
[3200] DHCPv4 PRL option is encapsulated by OptionUint8Array class.
parent
5eede0e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/option_definition.cc
View file @
beac4c1b
...
...
@@ -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
));
...
...
src/lib/dhcp/tests/libdhcp++_unittest.cc
View file @
beac4c1b
...
...
@@ -706,7 +706,7 @@ TEST_F(LibDhcpTest, stdOptionDefs4) {
typeid
(
OptionCustom
));
LibDhcpTest
::
testStdOptionDefs4
(
DHO_DHCP_PARAMETER_REQUEST_LIST
,
begin
,
end
,
typeid
(
Option
));
typeid
(
Option
Uint8Array
));
LibDhcpTest
::
testStdOptionDefs4
(
DHO_DHCP_MESSAGE
,
begin
,
end
,
typeid
(
OptionString
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment