BIND 10 trac2491, updated. 1572782282cd6b5835ad20f5d8538511616a7e2b [2491] Minor: fixed typo and updated comments.
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Dec 10 12:43:43 UTC 2012
The branch, trac2491 has been updated
via 1572782282cd6b5835ad20f5d8538511616a7e2b (commit)
from 8afd799648279d29c8fd9f2505383bf6ebbf0730 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1572782282cd6b5835ad20f5d8538511616a7e2b
Author: Marcin Siodelski <marcin at isc.org>
Date: Mon Dec 10 13:43:26 2012 +0100
[2491] Minor: fixed typo and updated comments.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/option_data_types.cc | 3 +--
src/lib/dhcp/std_option_defs.h | 7 ++++---
2 files changed, 5 insertions(+), 5 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/option_data_types.cc b/src/lib/dhcp/option_data_types.cc
index 0027cfe..a0e29aa 100644
--- a/src/lib/dhcp/option_data_types.cc
+++ b/src/lib/dhcp/option_data_types.cc
@@ -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
diff --git a/src/lib/dhcp/std_option_defs.h b/src/lib/dhcp/std_option_defs.h
index 9fdbdac..7af1006 100644
--- a/src/lib/dhcp/std_option_defs.h
+++ b/src/lib/dhcp/std_option_defs.h
@@ -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
More information about the bind10-changes
mailing list