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
Adam Osuchowski
Kea
Commits
15727822
Commit
15727822
authored
Dec 10, 2012
by
Marcin Siodelski
Browse files
[2491] Minor: fixed typo and updated comments.
parent
8afd7996
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/option_data_types.cc
View file @
15727822
...
...
@@ -215,8 +215,7 @@ OptionDataTypeUtil::readFqdn(const std::vector<uint8_t>& buf) {
isc_throw
(
BadDataTypeCast
,
"unable to read FQDN from a buffer."
<<
" The buffer is empty."
);
}
// Copy the data from a buffer to InputBuffer so as we can use
// isc::dns::Name object to get the FQDN.
// Set up an InputBuffer so as we can use isc::dns::Name object to get the FQDN.
isc
::
util
::
InputBuffer
in_buf
(
static_cast
<
const
void
*>
(
&
buf
[
0
]),
buf
.
size
());
try
{
// Try to create an object from the buffer. If exception is thrown
...
...
src/lib/dhcp/std_option_defs.h
View file @
15727822
...
...
@@ -76,7 +76,7 @@ RECORD_DECL(vendorClassRecords, OPT_UINT32_TYPE, OPT_BINARY_TYPE);
// vendor-opts
RECORD_DECL
(
vendorOptsRecords
,
OPT_UINT32_TYPE
,
OPT_BINARY_TYPE
);
// Stdandard DHCPv6 option definitions.
//
/
Stdandard DHCPv6 option definitions.
static
const
OptionDefParams
OPTION_DEF_PARAMS6
[]
=
{
{
"clientid"
,
D6O_CLIENTID
,
OPT_BINARY_TYPE
,
false
},
{
"serverid"
,
D6O_SERVERID
,
OPT_BINARY_TYPE
,
false
},
...
...
@@ -93,7 +93,7 @@ static const OptionDefParams OPTION_DEF_PARAMS6[] = {
// option class to handle it so we simply return binary
// option type for now.
// @todo implement a class to handle AUTH option.
{
"
AUTH
"
,
D6O_AUTH
,
OPT_BINARY_TYPE
,
false
},
{
"
auth
"
,
D6O_AUTH
,
OPT_BINARY_TYPE
,
false
},
{
"unicast"
,
D6O_UNICAST
,
OPT_IPV6_ADDRESS_TYPE
,
false
},
{
"status-code"
,
D6O_STATUS_CODE
,
OPT_RECORD_TYPE
,
false
,
RECORD_DEF
(
statusCodeRecords
)
},
...
...
@@ -146,9 +146,10 @@ static const OptionDefParams OPTION_DEF_PARAMS6[] = {
// critical right now.
};
/// Number of option definitions defined.
const
int
OPTION_DEF_PARAMS_SIZE6
=
sizeof
(
OPTION_DEF_PARAMS6
)
/
sizeof
(
OPTION_DEF_PARAMS6
[
0
]);
};
};
// anonymous namespace
#endif // STD_OPTION_DEFS_H
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