Skip to content
GitLab
Projects
Groups
Snippets
/
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
732d98ac
Commit
732d98ac
authored
Oct 18, 2013
by
Marcin Siodelski
Browse files
[3199] Fixed option definition of DHCPv4 Time Offset.
parent
5eede0e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/std_option_defs.h
View file @
732d98ac
// Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012
-2013
Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
...
...
@@ -68,7 +68,7 @@ RECORD_DECL(FQDN_RECORDS, OPT_UINT8_TYPE, OPT_UINT8_TYPE, OPT_UINT8_TYPE,
/// @brief Definitions of standard DHCPv4 options.
const
OptionDefParams
OPTION_DEF_PARAMS4
[]
=
{
{
"subnet-mask"
,
DHO_SUBNET_MASK
,
OPT_IPV4_ADDRESS_TYPE
,
false
,
NO_RECORD_DEF
,
""
},
{
"time-offset"
,
DHO_TIME_OFFSET
,
OPT_
U
INT32_TYPE
,
false
,
NO_RECORD_DEF
,
""
},
{
"time-offset"
,
DHO_TIME_OFFSET
,
OPT_INT32_TYPE
,
false
,
NO_RECORD_DEF
,
""
},
{
"routers"
,
DHO_ROUTERS
,
OPT_IPV4_ADDRESS_TYPE
,
true
,
NO_RECORD_DEF
,
""
},
{
"time-servers"
,
DHO_TIME_SERVERS
,
OPT_IPV4_ADDRESS_TYPE
,
true
,
NO_RECORD_DEF
,
""
},
{
"name-servers"
,
DHO_NAME_SERVERS
,
OPT_IPV4_ADDRESS_TYPE
,
...
...
src/lib/dhcp/tests/libdhcp++_unittest.cc
View file @
732d98ac
...
...
@@ -546,7 +546,7 @@ TEST_F(LibDhcpTest, stdOptionDefs4) {
typeid
(
OptionCustom
));
LibDhcpTest
::
testStdOptionDefs4
(
DHO_TIME_OFFSET
,
begin
,
begin
+
4
,
typeid
(
OptionInt
<
u
int32_t
>
));
typeid
(
OptionInt
<
int32_t
>
));
LibDhcpTest
::
testStdOptionDefs4
(
DHO_ROUTERS
,
begin
,
end
,
typeid
(
Option4AddrLst
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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