Browse Source

[2491] Minor: fixed typo and updated comments.

Marcin Siodelski 12 years ago
parent
commit
1572782282
2 changed files with 5 additions and 5 deletions
  1. 1 2
      src/lib/dhcp/option_data_types.cc
  2. 4 3
      src/lib/dhcp/std_option_defs.h

+ 1 - 2
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

+ 4 - 3
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