Parcourir la source

[master] Merge branch github47 (typos)

# Conflicts:
#	src/bin/dhcp4/json_config_parser.cc
#	src/bin/dhcp4/tests/fqdn_unittest.cc
#	src/bin/dhcp6/dhcp6_srv.h
#	src/bin/dhcp6/tests/fqdn_unittest.cc
#	src/lib/config/command_mgr.h
#	src/lib/dhcpsrv/alloc_engine.h
#	src/lib/dhcpsrv/parsers/client_class_def_parser.h
#	src/lib/dhcpsrv/parsers/dbaccess_parser.cc
#	src/lib/dhcpsrv/parsers/dhcp_parsers.cc
#	src/lib/dhcpsrv/parsers/dhcp_parsers.h
#	src/lib/dhcpsrv/srv_config.h
#	src/lib/dhcpsrv/tests/client_class_def_parser_unittest.cc
#	src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
#	src/lib/eval/eval_context.h
#	src/lib/hooks/callout_manager.cc
#	src/lib/testutils/dhcp_test_lib.sh.in
Tomek Mrugalski il y a 8 ans
Parent
commit
27956d95a3
100 fichiers modifiés avec 249 ajouts et 248 suppressions
  1. 1 1
      doc/guide/ctrl-channel.xml
  2. 1 1
      doc/guide/dhcp4-srv.xml
  3. 1 1
      doc/guide/dhcp6-srv.xml
  4. 1 1
      ext/coroutine/coroutine.h
  5. 1 1
      src/bin/admin/tests/cql_tests.sh.in
  6. 4 4
      src/bin/admin/tests/mysql_tests.sh.in
  7. 3 3
      src/bin/admin/tests/pgsql_tests.sh.in
  8. 4 4
      src/bin/d2/tests/d2_cfg_mgr_unittests.cc
  9. 3 3
      src/bin/d2/tests/d2_controller_unittests.cc
  10. 2 2
      src/bin/d2/tests/d2_queue_mgr_unittests.cc
  11. 7 7
      src/bin/d2/tests/d2_update_message_unittests.cc
  12. 2 2
      src/bin/d2/tests/dns_client_unittests.cc
  13. 2 2
      src/bin/d2/tests/nc_add_unittests.cc
  14. 3 3
      src/bin/d2/tests/nc_remove_unittests.cc
  15. 1 1
      src/bin/d2/tests/nc_test_utils.cc
  16. 1 1
      src/bin/d2/tests/nc_test_utils.h
  17. 6 6
      src/bin/d2/tests/nc_trans_unittests.cc
  18. 1 1
      src/bin/dhcp4/dhcp4_srv.cc
  19. 1 1
      src/bin/dhcp4/tests/classify_unittest.cc
  20. 4 4
      src/bin/dhcp4/tests/config_parser_unittest.cc
  21. 1 1
      src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
  22. 2 2
      src/bin/dhcp4/tests/decline_unittest.cc
  23. 1 1
      src/bin/dhcp4/tests/dhcp4_client.cc
  24. 3 3
      src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
  25. 1 1
      src/bin/dhcp4/tests/dhcp4_test_utils.cc
  26. 1 1
      src/bin/dhcp4/tests/dhcp4_test_utils.h
  27. 5 5
      src/bin/dhcp4/tests/dora_unittest.cc
  28. 6 6
      src/bin/dhcp4/tests/host_options_unittest.cc
  29. 1 1
      src/bin/dhcp4/tests/inform_unittest.cc
  30. 3 3
      src/bin/dhcp4/tests/kea_controller_unittest.cc
  31. 1 1
      src/bin/dhcp4/tests/marker_file.h.in
  32. 12 12
      src/bin/dhcp4/tests/out_of_range_unittest.cc
  33. 1 1
      src/bin/dhcp4/tests/release_unittest.cc
  34. 3 2
      src/bin/dhcp6/main.cc
  35. 3 3
      src/bin/dhcp6/tests/config_parser_unittest.cc
  36. 1 1
      src/bin/dhcp6/tests/confirm_unittest.cc
  37. 1 1
      src/bin/dhcp6/tests/decline_unittest.cc
  38. 1 1
      src/bin/dhcp6/tests/dhcp6_test_utils.cc
  39. 1 1
      src/bin/dhcp6/tests/dhcp6_test_utils.h
  40. 5 5
      src/bin/dhcp6/tests/host_unittest.cc
  41. 1 1
      src/bin/dhcp6/tests/infrequest_unittest.cc
  42. 4 4
      src/bin/dhcp6/tests/kea_controller_unittest.cc
  43. 1 1
      src/bin/dhcp6/tests/marker_file.h.in
  44. 1 1
      src/bin/dhcp6/tests/sarr_unittest.cc
  45. 2 2
      src/bin/lfc/tests/lfc_controller_unittests.cc
  46. 2 2
      src/bin/perfdhcp/tests/command_options_helper.h
  47. 2 2
      src/bin/perfdhcp/tests/perf_pkt4_unittest.cc
  48. 1 1
      src/bin/perfdhcp/tests/perf_pkt6_unittest.cc
  49. 3 3
      src/bin/perfdhcp/tests/rate_control_unittest.cc
  50. 1 1
      src/bin/perfdhcp/tests/test_control_unittest.cc
  51. 3 3
      src/bin/sockcreator/tests/sockcreator_tests.cc
  52. 4 4
      src/hooks/dhcp/user_chk/tests/user_file_unittests.cc
  53. 1 1
      src/hooks/dhcp/user_chk/tests/user_registry_unittests.cc
  54. 6 6
      src/hooks/dhcp/user_chk/tests/userid_unittests.cc
  55. 3 3
      src/lib/asiodns/README
  56. 2 2
      src/lib/asiolink/asio_wrapper.h
  57. 3 3
      src/lib/asiolink/io_address.h
  58. 3 3
      src/lib/asiolink/tests/tcp_socket_unittest.cc
  59. 1 1
      src/lib/cc/tests/data_file_unittests.cc
  60. 1 1
      src/lib/dhcp/docsis3_option_defs.h
  61. 4 4
      src/lib/dhcp/iface_mgr.cc
  62. 8 8
      src/lib/dhcp/iface_mgr.h
  63. 1 1
      src/lib/dhcp/iface_mgr_error_handler.h
  64. 2 2
      src/lib/dhcp/libdhcp++.h
  65. 2 2
      src/lib/dhcp/opaque_data_tuple.h
  66. 8 8
      src/lib/dhcp/option4_client_fqdn.cc
  67. 4 4
      src/lib/dhcp/option6_client_fqdn.cc
  68. 1 1
      src/lib/dhcp/option6_iaprefix.h
  69. 2 2
      src/lib/dhcp/option_custom.cc
  70. 1 1
      src/lib/dhcp/option_data_types.h
  71. 1 1
      src/lib/dhcp/option_definition.cc
  72. 1 1
      src/lib/dhcp/option_definition.h
  73. 1 1
      src/lib/dhcp/option_space_container.h
  74. 1 1
      src/lib/dhcp/option_string.h
  75. 1 1
      src/lib/dhcp/option_vendor_class.cc
  76. 1 1
      src/lib/dhcp/option_vendor_class.h
  77. 1 1
      src/lib/dhcp/pkt6.cc
  78. 7 7
      src/lib/dhcp/pkt_filter_bpf.cc
  79. 2 2
      src/lib/dhcp/pkt_filter_bpf.h
  80. 4 4
      src/lib/dhcp/pkt_filter_inet.h
  81. 3 3
      src/lib/dhcp/pkt_filter_inet6.h
  82. 4 4
      src/lib/dhcp/pkt_filter_lpf.cc
  83. 1 1
      src/lib/dhcp/pkt_filter_lpf.h
  84. 1 1
      src/lib/dhcp/protocol_util.h
  85. 3 3
      src/lib/dhcp/std_option_defs.h
  86. 1 1
      src/lib/dhcp/tests/duid_factory_unittest.cc
  87. 1 1
      src/lib/dhcp/tests/iface_mgr_test_config.h
  88. 14 14
      src/lib/dhcp/tests/iface_mgr_unittest.cc
  89. 3 3
      src/lib/dhcp/tests/libdhcp++_unittest.cc
  90. 1 1
      src/lib/dhcp/tests/opaque_data_tuple_unittest.cc
  91. 1 1
      src/lib/dhcp/tests/option6_ia_unittest.cc
  92. 2 2
      src/lib/dhcp/tests/option_definition_unittest.cc
  93. 1 1
      src/lib/dhcp/tests/option_int_unittest.cc
  94. 1 1
      src/lib/dhcp/tests/option_space_unittest.cc
  95. 1 1
      src/lib/dhcp/tests/option_unittest.cc
  96. 5 5
      src/lib/dhcp/tests/pkt4_unittest.cc
  97. 3 3
      src/lib/dhcp/tests/pkt6_unittest.cc
  98. 1 1
      src/lib/dhcp/tests/pkt_captures4.cc
  99. 2 2
      src/lib/dhcp/tests/pkt_captures6.cc
  100. 0 0
      src/lib/dhcp/tests/pkt_filter_test_stub.h

+ 1 - 1
doc/guide/ctrl-channel.xml

@@ -104,7 +104,7 @@ where <command>/path/to/the/kea/socket</command> is the path specified in the
 configuration file. Text passed to <command>socat</command>
 configuration file. Text passed to <command>socat</command>
 will be sent to Kea and the responses received from Kea printed to standard output.</para>
 will be sent to Kea and the responses received from Kea printed to standard output.</para>
 
 
-    <para>It is also easy to open UNIX socket programmatically. An example of
+    <para>It is also easy to open UNIX socket programatically. An example of
     such a simplistic client written in C is available in the Kea Developer's
     such a simplistic client written in C is available in the Kea Developer's
     Guide, chapter Control Channel Overview, section Using Control Channel.</para>
     Guide, chapter Control Channel Overview, section Using Control Channel.</para>
 
 

+ 1 - 1
doc/guide/dhcp4-srv.xml

@@ -2960,7 +2960,7 @@ It is merely echoed by the server
 
 
 </screen>
 </screen>
 
 
-    <para>Static class assignments, as shown above, can be used in conjuction
+    <para>Static class assignments, as shown above, can be used in conjunction
     with classification using expressions.</para>
     with classification using expressions.</para>
     </section>
     </section>
 
 

+ 1 - 1
doc/guide/dhcp6-srv.xml

@@ -2895,7 +2895,7 @@ should include options from the isc option space:
  }
  }
 
 
 </screen>
 </screen>
-    <para>Static class assignments, as shown above, can be used in conjuction
+    <para>Static class assignments, as shown above, can be used in conjunction
     with classification using expressions.</para>
     with classification using expressions.</para>
     </section>
     </section>
 
 

+ 1 - 1
ext/coroutine/coroutine.h

@@ -24,7 +24,7 @@
 // routine, the function is provided as the handler object.  (The simplest
 // routine, the function is provided as the handler object.  (The simplest
 // way to do this is to have the reentrant function be the operator()
 // way to do this is to have the reentrant function be the operator()
 // member for the coroutine object itself.)   For example:
 // member for the coroutine object itself.)   For example:
-// 
+//
 //     CORO_YIELD socket->async_read_some(buffer, *this);
 //     CORO_YIELD socket->async_read_some(buffer, *this);
 //
 //
 // The CORO_YIELD keyword updates the current status of the coroutine to
 // The CORO_YIELD keyword updates the current status of the coroutine to

+ 1 - 1
src/bin/admin/tests/cql_tests.sh.in

@@ -81,7 +81,7 @@ cql_lease_version_test() {
     $keaadmin lease-init cql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     $keaadmin lease-init cql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     assert_eq 0 $? "kea-admin lease-init cql failed, expected exit code: %d, actual: %d"
     assert_eq 0 $? "kea-admin lease-init cql failed, expected exit code: %d, actual: %d"
 
 
-    # Verfiy that kea-admin lease-version returns the correct version.
+    # Verify that kea-admin lease-version returns the correct version.
     version=$($keaadmin lease-version cql -u $db_user -p $db_password -n $db_name)
     version=$($keaadmin lease-version cql -u $db_user -p $db_password -n $db_name)
     assert_str_eq "1.0" $version "Expected kea-admin to return %s, returned value was %s"
     assert_str_eq "1.0" $version "Expected kea-admin to return %s, returned value was %s"
 
 

+ 4 - 4
src/bin/admin/tests/mysql_tests.sh.in

@@ -38,7 +38,7 @@ mysql_lease_init_test() {
     # Let's wipe the whole database
     # Let's wipe the whole database
     mysql_wipe
     mysql_wipe
 
 
-    # Ok, now let's initalize the database
+    # Ok, now let's initialize the database
     ${keaadmin} lease-init mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ${keaadmin} lease-init mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ERRCODE=$?
     ERRCODE=$?
 
 
@@ -117,7 +117,7 @@ mysql_host_reservation_init_test() {
     # Let's wipe the whole database
     # Let's wipe the whole database
     mysql_wipe
     mysql_wipe
 
 
-    # Ok, now let's initalize the database
+    # Ok, now let's initialize the database
     ${keaadmin} lease-init mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ${keaadmin} lease-init mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ERRCODE=$?
     ERRCODE=$?
 
 
@@ -387,7 +387,7 @@ mysql_lease4_dump_test() {
     # Let's wipe the whole database
     # Let's wipe the whole database
     mysql_wipe
     mysql_wipe
 
 
-    # Ok, now let's initalize the database
+    # Ok, now let's initialize the database
     ${keaadmin} lease-init mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ${keaadmin} lease-init mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ERRCODE=$?
     ERRCODE=$?
     assert_eq 0 $ERRCODE "could not create database, expected exit code %d, actual %d"
     assert_eq 0 $ERRCODE "could not create database, expected exit code %d, actual %d"
@@ -447,7 +447,7 @@ mysql_lease6_dump_test() {
     # Let's wipe the whole database
     # Let's wipe the whole database
     mysql_wipe
     mysql_wipe
 
 
-    # Ok, now let's initalize the database
+    # Ok, now let's initialize the database
     ${keaadmin} lease-init mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ${keaadmin} lease-init mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ERRCODE=$?
     ERRCODE=$?
     assert_eq 0 $ERRCODE "could not create database, expected exit code %d, actual %d"
     assert_eq 0 $ERRCODE "could not create database, expected exit code %d, actual %d"

+ 3 - 3
src/bin/admin/tests/pgsql_tests.sh.in

@@ -86,7 +86,7 @@ pgsql_lease_version_test() {
     ${keaadmin} lease-init pgsql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ${keaadmin} lease-init pgsql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     assert_eq 0 $? "cannot initialize the database, expected exit code: %d, actual: %d"
     assert_eq 0 $? "cannot initialize the database, expected exit code: %d, actual: %d"
 
 
-    # Verfiy that kea-admin lease-version returns the correct version
+    # Verify that kea-admin lease-version returns the correct version
     version=$(${keaadmin} lease-version pgsql -u $db_user -p $db_password -n $db_name)
     version=$(${keaadmin} lease-version pgsql -u $db_user -p $db_password -n $db_name)
     assert_str_eq "3.0" ${version} "Expected kea-admin to return %s, returned value was %s"
     assert_str_eq "3.0" ${version} "Expected kea-admin to return %s, returned value was %s"
 
 
@@ -280,7 +280,7 @@ pgsql_lease4_dump_test() {
     # Let's wipe the whole database
     # Let's wipe the whole database
     pgsql_wipe
     pgsql_wipe
 
 
-    # Ok, now let's initalize the database
+    # Ok, now let's initialize the database
     ${keaadmin} lease-init pgsql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ${keaadmin} lease-init pgsql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ERRCODE=$?
     ERRCODE=$?
     assert_eq 0 $ERRCODE "could not create database, expected exit code %d, actual %d"
     assert_eq 0 $ERRCODE "could not create database, expected exit code %d, actual %d"
@@ -375,7 +375,7 @@ pgsql_lease6_dump_test() {
     # Let's wipe the whole database
     # Let's wipe the whole database
     pgsql_wipe
     pgsql_wipe
 
 
-    # Ok, now let's initalize the database
+    # Ok, now let's initialize the database
     ${keaadmin} lease-init pgsql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ${keaadmin} lease-init pgsql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
     ERRCODE=$?
     ERRCODE=$?
     assert_eq 0 $ERRCODE "could not create database,  status code %d"
     assert_eq 0 $ERRCODE "could not create database,  status code %d"

+ 4 - 4
src/bin/d2/tests/d2_cfg_mgr_unittests.cc

@@ -65,7 +65,7 @@ public:
 
 
     /// @brief Build JSON configuration string for a D2Params element
     /// @brief Build JSON configuration string for a D2Params element
     ///
     ///
-    /// Constructs a JSON string for "params" element using replacable
+    /// Constructs a JSON string for "params" element using replaceable
     /// parameters.
     /// parameters.
     ///
     ///
     /// @param ip_address string to insert as ip_address value
     /// @param ip_address string to insert as ip_address value
@@ -509,7 +509,7 @@ TEST_F(D2CfgMgrTest, unsupportedTopLevelItems) {
 /// -# ip_address cannot be "0.0.0.0"
 /// -# ip_address cannot be "0.0.0.0"
 /// -# ip_address cannot be "::"
 /// -# ip_address cannot be "::"
 /// -# port cannot be 0
 /// -# port cannot be 0
-/// -# dns_server_timeout cannat be 0
+/// -# dns_server_timeout cannot be 0
 /// -# ncr_protocol must be valid
 /// -# ncr_protocol must be valid
 /// -# ncr_format must be valid
 /// -# ncr_format must be valid
 TEST_F(D2CfgMgrTest, invalidEntry) {
 TEST_F(D2CfgMgrTest, invalidEntry) {
@@ -940,7 +940,7 @@ TEST_F(ConfigParseTest, validServerList) {
     isc::dhcp::ParserPtr parser;
     isc::dhcp::ParserPtr parser;
     ASSERT_NO_THROW(parser.reset(new DnsServerInfoListParser("test", servers)));
     ASSERT_NO_THROW(parser.reset(new DnsServerInfoListParser("test", servers)));
 
 
-    // Verfiy that the list builds and commits without error.
+    // Verify that the list builds and commits without error.
     ASSERT_NO_THROW(parser->build(config_set_));
     ASSERT_NO_THROW(parser->build(config_set_));
     ASSERT_NO_THROW(parser->commit());
     ASSERT_NO_THROW(parser->commit());
 
 
@@ -1443,7 +1443,7 @@ TEST_F(D2CfgMgrTest, forwardMatch) {
     EXPECT_TRUE(cfg_mgr_->matchForward("tmark.org", match));
     EXPECT_TRUE(cfg_mgr_->matchForward("tmark.org", match));
     EXPECT_EQ("tmark.org", match->getName());
     EXPECT_EQ("tmark.org", match->getName());
 
 
-    // Verify that search is case insensisitive.
+    // Verify that search is case-insensitive.
     EXPECT_TRUE(cfg_mgr_->matchForward("TMARK.ORG", match));
     EXPECT_TRUE(cfg_mgr_->matchForward("TMARK.ORG", match));
     EXPECT_EQ("tmark.org", match->getName());
     EXPECT_EQ("tmark.org", match->getName());
 
 

+ 3 - 3
src/bin/d2/tests/d2_controller_unittests.cc

@@ -149,7 +149,7 @@ TEST_F(D2ControllerTest, launchNormalShutdown) {
     time_duration elapsed_time;
     time_duration elapsed_time;
     runWithConfig(valid_d2_config, 1000, elapsed_time);
     runWithConfig(valid_d2_config, 1000, elapsed_time);
 
 
-    // Give a generous margin to accomodate slower test environs.
+    // Give a generous margin to accommodate slower test environs.
     EXPECT_TRUE(elapsed_time.total_milliseconds() >= 800 &&
     EXPECT_TRUE(elapsed_time.total_milliseconds() >= 800 &&
                 elapsed_time.total_milliseconds() <= 1300);
                 elapsed_time.total_milliseconds() <= 1300);
 }
 }
@@ -294,7 +294,7 @@ TEST_F(D2ControllerTest, sigintShutdown) {
     runWithConfig(valid_d2_config, 1000, elapsed_time);
     runWithConfig(valid_d2_config, 1000, elapsed_time);
 
 
     // Signaled shutdown should make our elapsed time much smaller than
     // Signaled shutdown should make our elapsed time much smaller than
-    // the maximum run time.  Give generous margin to accomodate slow
+    // the maximum run time.  Give generous margin to accommodate slow
     // test environs.
     // test environs.
     EXPECT_TRUE(elapsed_time.total_milliseconds() < 300);
     EXPECT_TRUE(elapsed_time.total_milliseconds() < 300);
 
 
@@ -311,7 +311,7 @@ TEST_F(D2ControllerTest, sigtermShutdown) {
     runWithConfig(valid_d2_config, 1000, elapsed_time);
     runWithConfig(valid_d2_config, 1000, elapsed_time);
 
 
     // Signaled shutdown should make our elapsed time much smaller than
     // Signaled shutdown should make our elapsed time much smaller than
-    // the maximum run time.  Give generous margin to accomodate slow
+    // the maximum run time.  Give generous margin to accommodate slow
     // test environs.
     // test environs.
     EXPECT_TRUE(elapsed_time.total_milliseconds() < 300);
     EXPECT_TRUE(elapsed_time.total_milliseconds() < 300);
 
 

+ 2 - 2
src/bin/d2/tests/d2_queue_mgr_unittests.cc

@@ -176,11 +176,11 @@ TEST(D2QueueMgrBasicTest, basicQueue) {
     // Verify queue count is correct.
     // Verify queue count is correct.
     EXPECT_EQ(VALID_MSG_CNT, queue_mgr->getQueueSize());
     EXPECT_EQ(VALID_MSG_CNT, queue_mgr->getQueueSize());
 
 
-    // Verfiy that peekAt returns the correct entry.
+    // Verify that peekAt returns the correct entry.
     EXPECT_NO_THROW(ncr = queue_mgr->peekAt(1));
     EXPECT_NO_THROW(ncr = queue_mgr->peekAt(1));
     EXPECT_TRUE (*(ref_msgs[1]) == *ncr);
     EXPECT_TRUE (*(ref_msgs[1]) == *ncr);
 
 
-    // Verfiy that dequeueAt removes the correct entry.
+    // Verify that dequeueAt removes the correct entry.
     // Removing it, this should shift the queued entries forward by one.
     // Removing it, this should shift the queued entries forward by one.
     EXPECT_NO_THROW(queue_mgr->dequeueAt(1));
     EXPECT_NO_THROW(queue_mgr->dequeueAt(1));
     EXPECT_NO_THROW(ncr = queue_mgr->peekAt(1));
     EXPECT_NO_THROW(ncr = queue_mgr->peekAt(1));

+ 7 - 7
src/bin/d2/tests/d2_update_message_unittests.cc

@@ -282,7 +282,7 @@ TEST_F(D2UpdateMessageTest, fromWireInvalidOpcode) {
     };
     };
     // The 'true' argument passed to the constructor turns the
     // The 'true' argument passed to the constructor turns the
     // message into the parse mode in which the fromWire function
     // message into the parse mode in which the fromWire function
-    // can be used to decode the binary mesasage data.
+    // can be used to decode the binary message data.
     D2UpdateMessage msg(D2UpdateMessage::INBOUND);
     D2UpdateMessage msg(D2UpdateMessage::INBOUND);
     // When using invalid Opcode, the fromWire function should
     // When using invalid Opcode, the fromWire function should
     // throw NotUpdateMessage exception.
     // throw NotUpdateMessage exception.
@@ -306,7 +306,7 @@ TEST_F(D2UpdateMessageTest, fromWireInvalidQRFlag) {
     };
     };
     // The 'true' argument passed to the constructor turns the
     // The 'true' argument passed to the constructor turns the
     // message into the parse mode in which the fromWire function
     // message into the parse mode in which the fromWire function
-    // can be used to decode the binary mesasage data.
+    // can be used to decode the binary message data.
     D2UpdateMessage msg(D2UpdateMessage::INBOUND);
     D2UpdateMessage msg(D2UpdateMessage::INBOUND);
     // When using invalid QR flag, the fromWire function should
     // When using invalid QR flag, the fromWire function should
     // throw InvalidQRFlag exception.
     // throw InvalidQRFlag exception.
@@ -345,7 +345,7 @@ TEST_F(D2UpdateMessageTest, fromWireTooManyZones) {
 
 
     // The 'true' argument passed to the constructor turns the
     // The 'true' argument passed to the constructor turns the
     // message into the parse mode in which the fromWire function
     // message into the parse mode in which the fromWire function
-    // can be used to decode the binary mesasage data.
+    // can be used to decode the binary message data.
     D2UpdateMessage msg(D2UpdateMessage::INBOUND);
     D2UpdateMessage msg(D2UpdateMessage::INBOUND);
     // When parsing a message with more than one Zone record,
     // When parsing a message with more than one Zone record,
     // exception should be thrown.
     // exception should be thrown.
@@ -366,7 +366,7 @@ TEST_F(D2UpdateMessageTest, toWire) {
     // one Zone. toWire function would fail if Zone is not set.
     // one Zone. toWire function would fail if Zone is not set.
     msg.setZone(Name("example.com"), RRClass::IN());
     msg.setZone(Name("example.com"), RRClass::IN());
 
 
-    // Set prerequisities.
+    // Set prerequisites.
 
 
     // 'Name Is Not In Use' prerequisite (RFC 2136, section 2.4.5)
     // 'Name Is Not In Use' prerequisite (RFC 2136, section 2.4.5)
     RRsetPtr prereq1(new RRset(Name("foo.example.com"), RRClass::NONE(),
     RRsetPtr prereq1(new RRset(Name("foo.example.com"), RRClass::NONE(),
@@ -433,7 +433,7 @@ TEST_F(D2UpdateMessageTest, toWire) {
     EXPECT_EQ(1, buf.readUint16());
     EXPECT_EQ(1, buf.readUint16());
 
 
     // PRCOUNT - holds the number of prerequisites. Earlier we have added
     // PRCOUNT - holds the number of prerequisites. Earlier we have added
-    // two prerequisites. Thus, expect that this conter is 2.
+    // two prerequisites. Thus, expect that this counter is 2.
     EXPECT_EQ(2, buf.readUint16());
     EXPECT_EQ(2, buf.readUint16());
 
 
     // UPCOUNT - holds the number of RRs in the Update Section. We have
     // UPCOUNT - holds the number of RRs in the Update Section. We have
@@ -484,7 +484,7 @@ TEST_F(D2UpdateMessageTest, toWire) {
 
 
     // Check the name first. Message renderer is using compression for domain
     // Check the name first. Message renderer is using compression for domain
     // names as described in RFC 1035, section 4.1.4. The name in this RR is
     // names as described in RFC 1035, section 4.1.4. The name in this RR is
-    // foo.example.com. The name of the zone is example.com and it has occured
+    // foo.example.com. The name of the zone is example.com and it has occurred
     // in this message already at offset 12 (the size of the header is 12).
     // in this message already at offset 12 (the size of the header is 12).
     // Therefore, name of this RR is encoded as 'foo', followed by a pointer
     // Therefore, name of this RR is encoded as 'foo', followed by a pointer
     // to offset in this message where the remainder of this name was used.
     // to offset in this message where the remainder of this name was used.
@@ -566,7 +566,7 @@ TEST_F(D2UpdateMessageTest, toWireInvalidQRFlag) {
 
 
     // The 'true' argument passed to the constructor turns the
     // The 'true' argument passed to the constructor turns the
     // message into the parse mode in which the fromWire function
     // message into the parse mode in which the fromWire function
-    // can be used to decode the binary mesasage data.
+    // can be used to decode the binary message data.
     D2UpdateMessage msg(D2UpdateMessage::INBOUND);
     D2UpdateMessage msg(D2UpdateMessage::INBOUND);
     ASSERT_NO_THROW(msg.fromWire(bin_msg, sizeof(bin_msg)));
     ASSERT_NO_THROW(msg.fromWire(bin_msg, sizeof(bin_msg)));
 
 

+ 2 - 2
src/bin/d2/tests/dns_client_unittests.cc

@@ -219,7 +219,7 @@ public:
         dns::Message request(Message::PARSE);
         dns::Message request(Message::PARSE);
         request.fromWire(received_data_buffer);
         request.fromWire(received_data_buffer);
 
 
-        // If contex is not NULL, then we need to verify the message.
+        // If context is not NULL, then we need to verify the message.
         if (context) {
         if (context) {
             TSIGError error = context->verify(request.getTSIGRecord(),
             TSIGError error = context->verify(request.getTSIGRecord(),
                                               receive_buffer_, receive_length);
                                               receive_buffer_, receive_length);
@@ -502,7 +502,7 @@ TEST_F(DNSClientTest, runTSIGTest) {
     // Neither client nor server will attempt to sign or verify.
     // Neither client nor server will attempt to sign or verify.
     runTSIGTest(nokey, nokey);
     runTSIGTest(nokey, nokey);
 
 
-    // Client signs the request, server verfies but doesn't sign.
+    // Client signs the request, server verifies but doesn't sign.
     runTSIGTest(key_one, nokey, false);
     runTSIGTest(key_one, nokey, false);
 
 
     // Client and server use the same key to sign and verify.
     // Client and server use the same key to sign and verify.

+ 2 - 2
src/bin/d2/tests/nc_add_unittests.cc

@@ -24,7 +24,7 @@ using namespace isc::util;
 
 
 namespace {
 namespace {
 
 
-/// @brief Test class derived from NameAddTransaction to provide visiblity
+/// @brief Test class derived from NameAddTransaction to provide visibility
 // to protected methods.
 // to protected methods.
 class NameAddStub : public NameAddTransaction {
 class NameAddStub : public NameAddTransaction {
 public:
 public:
@@ -1030,7 +1030,7 @@ TEST_F(NameAddTransactionTest, replacingFwdAddrsHandler_OtherRcode) {
     EXPECT_FALSE(name_add->getForwardChangeCompleted());
     EXPECT_FALSE(name_add->getForwardChangeCompleted());
     EXPECT_FALSE(name_add->getReverseChangeCompleted());
     EXPECT_FALSE(name_add->getReverseChangeCompleted());
 
 
-    // We should have failed the transaction. Verifiy that we transitioned
+    // We should have failed the transaction. Verify that we transitioned
     // correctly.
     // correctly.
     EXPECT_EQ(NameChangeTransaction::PROCESS_TRANS_FAILED_ST,
     EXPECT_EQ(NameChangeTransaction::PROCESS_TRANS_FAILED_ST,
               name_add->getCurrState());
               name_add->getCurrState());

+ 3 - 3
src/bin/d2/tests/nc_remove_unittests.cc

@@ -25,7 +25,7 @@ using namespace isc::util;
 
 
 namespace {
 namespace {
 
 
-/// @brief Test class derived from NameRemoveTransaction to provide visiblity
+/// @brief Test class derived from NameRemoveTransaction to provide visibility
 // to protected methods.
 // to protected methods.
 class NameRemoveStub : public NameRemoveTransaction {
 class NameRemoveStub : public NameRemoveTransaction {
 public:
 public:
@@ -969,7 +969,7 @@ TEST_F(NameRemoveTransactionTest, removingFwdRRsHandler_FqdnNotInUse) {
     // Run removingFwdRRsHandler again to process the response.
     // Run removingFwdRRsHandler again to process the response.
     EXPECT_NO_THROW(name_remove->removingFwdRRsHandler());
     EXPECT_NO_THROW(name_remove->removingFwdRRsHandler());
 
 
-    // Forwad completion flag should be true, reverse should still be false.
+    // Forward completion flag should be true, reverse should still be false.
     EXPECT_TRUE(name_remove->getForwardChangeCompleted());
     EXPECT_TRUE(name_remove->getForwardChangeCompleted());
     EXPECT_FALSE(name_remove->getReverseChangeCompleted());
     EXPECT_FALSE(name_remove->getReverseChangeCompleted());
 
 
@@ -1016,7 +1016,7 @@ TEST_F(NameRemoveTransactionTest, removingFwdRRsHandler_OtherRcode) {
     EXPECT_FALSE(name_remove->getForwardChangeCompleted());
     EXPECT_FALSE(name_remove->getForwardChangeCompleted());
     EXPECT_FALSE(name_remove->getReverseChangeCompleted());
     EXPECT_FALSE(name_remove->getReverseChangeCompleted());
 
 
-    // We should have failed the transaction. Verifiy that we transitioned
+    // We should have failed the transaction. Verify that we transitioned
     // correctly.
     // correctly.
     EXPECT_EQ(NameChangeTransaction::PROCESS_TRANS_FAILED_ST,
     EXPECT_EQ(NameChangeTransaction::PROCESS_TRANS_FAILED_ST,
               name_remove->getCurrState());
               name_remove->getCurrState());

+ 1 - 1
src/bin/d2/tests/nc_test_utils.cc

@@ -107,7 +107,7 @@ FauxServer::requestHandler(const boost::system::error_code& error,
     try {
     try {
         request.fromWire(request_buf);
         request.fromWire(request_buf);
 
 
-        // If contex is not NULL, then we need to verify the message.
+        // If context is not NULL, then we need to verify the message.
         if (context) {
         if (context) {
             dns::TSIGError error = context->verify(request.getTSIGRecord(),
             dns::TSIGError error = context->verify(request.getTSIGRecord(),
                                                    receive_buffer_,
                                                    receive_buffer_,

+ 1 - 1
src/bin/d2/tests/nc_test_utils.h

@@ -36,7 +36,7 @@ public:
     enum  ResponseMode {
     enum  ResponseMode {
         USE_RCODE,    // Generate a response with a given RCODE
         USE_RCODE,    // Generate a response with a given RCODE
         CORRUPT_RESP, // Generate a corrupt response
         CORRUPT_RESP, // Generate a corrupt response
-        INVALID_TSIG  // Generate a repsonse with the wrong TSIG key
+        INVALID_TSIG  // Generate a response with the wrong TSIG key
     };
     };
 
 
     // Reference to IOService to use for IO processing.
     // Reference to IOService to use for IO processing.

+ 6 - 6
src/bin/d2/tests/nc_trans_unittests.cc

@@ -66,7 +66,7 @@ public:
 
 
     /// @brief DNSClient callback
     /// @brief DNSClient callback
     /// Overrides the callback in NameChangeTranscation to allow testing
     /// Overrides the callback in NameChangeTranscation to allow testing
-    /// sendUpdate without incorporating exectution of the state model
+    /// sendUpdate without incorporating execution of the state model
     /// into the test.
     /// into the test.
     /// It sets the DNS status update and posts IO_COMPLETED_EVT as does
     /// It sets the DNS status update and posts IO_COMPLETED_EVT as does
     /// the normal callback.
     /// the normal callback.
@@ -313,7 +313,7 @@ public:
     /// @brief Builds and then sends an update request
     /// @brief Builds and then sends an update request
     ///
     ///
     /// This method is used to build and send and update request. It is used
     /// This method is used to build and send and update request. It is used
-    /// in conjuction with FauxServer to test various message response
+    /// in conjunction with FauxServer to test various message response
     /// scenarios.
     /// scenarios.
     /// @param name_change Transaction under test
     /// @param name_change Transaction under test
     /// @param run_time Maximum time to permit IO processing to run before
     /// @param run_time Maximum time to permit IO processing to run before
@@ -824,7 +824,7 @@ TEST_F(NameChangeTransactionTest, successfulUpdateTest) {
     EXPECT_TRUE(name_change->getForwardChangeCompleted());
     EXPECT_TRUE(name_change->getForwardChangeCompleted());
 }
 }
 
 
-/// @brief Tests the ability to use startTransaction to initate the state
+/// @brief Tests the ability to use startTransaction to initiate the state
 /// model execution, and DNSClient callback, operator(), to resume the
 /// model execution, and DNSClient callback, operator(), to resume the
 /// model with a update failure outcome.
 /// model with a update failure outcome.
 TEST_F(NameChangeTransactionTest, failedUpdateTest) {
 TEST_F(NameChangeTransactionTest, failedUpdateTest) {
@@ -1043,7 +1043,7 @@ TEST_F(NameChangeTransactionTest, tsigUnsignedResponse) {
     FauxServer server(*io_service_, *(name_change->getCurrentServer()));
     FauxServer server(*io_service_, *(name_change->getCurrentServer()));
     server.receive (FauxServer::USE_RCODE, dns::Rcode::NOERROR());
     server.receive (FauxServer::USE_RCODE, dns::Rcode::NOERROR());
 
 
-    // Do the udpate.
+    // Do the update.
     ASSERT_NO_FATAL_FAILURE(doOneExchange(name_change));
     ASSERT_NO_FATAL_FAILURE(doOneExchange(name_change));
 
 
     // Verify that next event is IO_COMPLETED_EVT and DNS status is
     // Verify that next event is IO_COMPLETED_EVT and DNS status is
@@ -1074,7 +1074,7 @@ TEST_F(NameChangeTransactionTest, tsigInvalidResponse) {
     FauxServer server(*io_service_, *(name_change->getCurrentServer()));
     FauxServer server(*io_service_, *(name_change->getCurrentServer()));
     server.receive (FauxServer::INVALID_TSIG, dns::Rcode::NOERROR());
     server.receive (FauxServer::INVALID_TSIG, dns::Rcode::NOERROR());
 
 
-    // Do the udpate.
+    // Do the update.
     ASSERT_NO_FATAL_FAILURE(doOneExchange(name_change));
     ASSERT_NO_FATAL_FAILURE(doOneExchange(name_change));
 
 
     // Verify that next event is IO_COMPLETED_EVT and DNS status is
     // Verify that next event is IO_COMPLETED_EVT and DNS status is
@@ -1124,7 +1124,7 @@ TEST_F(NameChangeTransactionTest, tsigUnexpectedSignedResponse) {
     EXPECT_EQ("response.example.com.", zone->getName().toText());
     EXPECT_EQ("response.example.com.", zone->getName().toText());
 }
 }
 
 
-/// @brief Tests that a TSIG udpate succeeds when client and server both use
+/// @brief Tests that a TSIG update succeeds when client and server both use
 /// the right key.  Runs the test for all supported algorithms.
 /// the right key.  Runs the test for all supported algorithms.
 TEST_F(NameChangeTransactionTest, tsigAllValid) {
 TEST_F(NameChangeTransactionTest, tsigAllValid) {
     std::vector<std::string>algorithms;
     std::vector<std::string>algorithms;

+ 1 - 1
src/bin/dhcp4/dhcp4_srv.cc

@@ -2072,7 +2072,7 @@ Dhcpv4Srv::setFixedFields(Dhcpv4Exchange& ex) {
                 response->setSname(reinterpret_cast<const uint8_t*>(sname.c_str()),
                 response->setSname(reinterpret_cast<const uint8_t*>(sname.c_str()),
                                    sname.size());
                                    sname.size());
             }
             }
-            
+
             const string& filename = cl->second->getFilename();
             const string& filename = cl->second->getFilename();
             if (!filename.empty()) {
             if (!filename.empty()) {
                 // Converting string to (const uint8_t*, size_t len) format is
                 // Converting string to (const uint8_t*, size_t len) format is

+ 1 - 1
src/bin/dhcp4/tests/classify_unittest.cc

@@ -137,7 +137,7 @@ public:
         IfaceMgr::instance().openSockets4();
         IfaceMgr::instance().openSockets4();
     }
     }
 
 
-    /// @brief Desctructor.
+    /// @brief Destructor.
     ///
     ///
     ~ClassifyTest() {
     ~ClassifyTest() {
     }
     }

+ 4 - 4
src/bin/dhcp4/tests/config_parser_unittest.cc

@@ -2592,7 +2592,7 @@ TEST_F(Dhcp4ParserTest, optionDataBoolean) {
                       sizeof(expected_option_data));
                       sizeof(expected_option_data));
 
 
     // Bogus values should not be accepted.
     // Bogus values should not be accepted.
-    params["data"] = "bugus";
+    params["data"] = "bogus";
     testInvalidOptionParam(params);
     testInvalidOptionParam(params);
 
 
     params["data"] = "2";
     params["data"] = "2";
@@ -3391,7 +3391,7 @@ TEST_F(Dhcp4ParserTest, selectedInterfacesAndAddresses) {
 TEST_F(Dhcp4ParserTest, d2ClientConfig) {
 TEST_F(Dhcp4ParserTest, d2ClientConfig) {
     ConstElementPtr status;
     ConstElementPtr status;
 
 
-    // Verify that the D2 configuraiton can be fetched and is set to disabled.
+    // Verify that the D2 configuration can be fetched and is set to disabled.
     D2ClientConfigPtr d2_client_config = CfgMgr::instance().getD2ClientConfig();
     D2ClientConfigPtr d2_client_config = CfgMgr::instance().getD2ClientConfig();
     EXPECT_FALSE(d2_client_config->getEnableUpdates());
     EXPECT_FALSE(d2_client_config->getEnableUpdates());
 
 
@@ -3495,7 +3495,7 @@ TEST_F(Dhcp4ParserTest, invalidD2ClientConfig) {
     checkResult(status, 1);
     checkResult(status, 1);
     EXPECT_TRUE(errorContainsPosition(status, "<string>"));
     EXPECT_TRUE(errorContainsPosition(status, "<string>"));
 
 
-    // Verify that the D2 configuraiton can be fetched and is set to disabled.
+    // Verify that the D2 configuration can be fetched and is set to disabled.
     D2ClientConfigPtr d2_client_config = CfgMgr::instance().getD2ClientConfig();
     D2ClientConfigPtr d2_client_config = CfgMgr::instance().getD2ClientConfig();
     EXPECT_FALSE(d2_client_config->getEnableUpdates());
     EXPECT_FALSE(d2_client_config->getEnableUpdates());
 
 
@@ -4345,7 +4345,7 @@ TEST_F(Dhcp4ParserTest, 4o6subnetBogus) {
         "    \"4o6-subnet\": \"2001:db8:bogus/45\" } ],"
         "    \"4o6-subnet\": \"2001:db8:bogus/45\" } ],"
         "\"valid-lifetime\": 4000 }",
         "\"valid-lifetime\": 4000 }",
 
 
-        // Bogus configuration 3: incorrect prefix lenght
+        // Bogus configuration 3: incorrect prefix length
         "{ " + genIfaceConfig() + "," +
         "{ " + genIfaceConfig() + "," +
         "\"rebind-timer\": 2000, "
         "\"rebind-timer\": 2000, "
         "\"renew-timer\": 1000, "
         "\"renew-timer\": 1000, "

+ 1 - 1
src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc

@@ -396,7 +396,7 @@ TEST_F(CtrlChannelDhcpv4SrvTest, controlLeasesReclaim) {
     EXPECT_TRUE(lease1->stateExpiredReclaimed());
     EXPECT_TRUE(lease1->stateExpiredReclaimed());
 }
 }
 
 
-// Thist test verifies that the DHCP server immediately removed expired
+// This test verifies that the DHCP server immediately removed expired
 // leases on leases-reclaim command with remove = true
 // leases on leases-reclaim command with remove = true
 TEST_F(CtrlChannelDhcpv4SrvTest, controlLeasesReclaimRemove) {
 TEST_F(CtrlChannelDhcpv4SrvTest, controlLeasesReclaimRemove) {
     createUnixChannelServer();
     createUnixChannelServer();

+ 2 - 2
src/bin/dhcp4/tests/decline_unittest.cc

@@ -89,7 +89,7 @@ Dhcpv4SrvTest::acquireAndDecline(Dhcp4Client& client,
     isc::stats::StatsMgr::instance().setValue("declined-addresses",
     isc::stats::StatsMgr::instance().setValue("declined-addresses",
                                               static_cast<int64_t>(0));
                                               static_cast<int64_t>(0));
 
 
-    // Ok, do the normal lease aquisition.
+    // Ok, do the normal lease acquisition.
     CfgMgr::instance().clear();
     CfgMgr::instance().clear();
 
 
     // Configure DHCP server.
     // Configure DHCP server.
@@ -149,7 +149,7 @@ Dhcpv4SrvTest::acquireAndDecline(Dhcp4Client& client,
     if (expected_result == SHOULD_PASS) {
     if (expected_result == SHOULD_PASS) {
         EXPECT_EQ(Lease::STATE_DECLINED, lease->state_);
         EXPECT_EQ(Lease::STATE_DECLINED, lease->state_);
 
 
-        // The decline succeded, so the declined-addresses statistic should
+        // The decline succeeded, so the declined-addresses statistic should
         // be increased by one
         // be increased by one
         EXPECT_EQ(after, before + 1);
         EXPECT_EQ(after, before + 1);
 
 

+ 1 - 1
src/bin/dhcp4/tests/dhcp4_client.cc

@@ -186,7 +186,7 @@ Dhcp4Client::applyConfiguration() {
     // sname
     // sname
     OptionBuffer buf = resp->getSname();
     OptionBuffer buf = resp->getSname();
     // sname is a fixed length field holding null terminated string. Use
     // sname is a fixed length field holding null terminated string. Use
-    // of c_str() guarantess that only a useful portion (ending with null
+    // of c_str() guarantees that only a useful portion (ending with null
     // character) is assigned.
     // character) is assigned.
     config_.sname_.assign(std::string(buf.begin(), buf.end()).c_str());
     config_.sname_.assign(std::string(buf.begin(), buf.end()).c_str());
     // (boot)file
     // (boot)file

+ 3 - 3
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc

@@ -2443,7 +2443,7 @@ TEST_F(Dhcpv4SrvTest, statisticsDecline) {
 }
 }
 
 
 // Test checks whether statistic is bumped up appropriately when Offer
 // Test checks whether statistic is bumped up appropriately when Offer
-// message is received (this should never happen in a sane metwork).
+// message is received (this should never happen in a sane network).
 TEST_F(Dhcpv4SrvTest, statisticsOfferRcvd) {
 TEST_F(Dhcpv4SrvTest, statisticsOfferRcvd) {
     NakedDhcpv4Srv srv(0);
     NakedDhcpv4Srv srv(0);
 
 
@@ -2451,7 +2451,7 @@ TEST_F(Dhcpv4SrvTest, statisticsOfferRcvd) {
 }
 }
 
 
 // Test checks whether statistic is bumped up appropriately when Ack
 // Test checks whether statistic is bumped up appropriately when Ack
-// message is received (this should never happen in a sane metwork).
+// message is received (this should never happen in a sane network).
 TEST_F(Dhcpv4SrvTest, statisticsAckRcvd) {
 TEST_F(Dhcpv4SrvTest, statisticsAckRcvd) {
     NakedDhcpv4Srv srv(0);
     NakedDhcpv4Srv srv(0);
 
 
@@ -2459,7 +2459,7 @@ TEST_F(Dhcpv4SrvTest, statisticsAckRcvd) {
 }
 }
 
 
 // Test checks whether statistic is bumped up appropriately when Nak
 // Test checks whether statistic is bumped up appropriately when Nak
-// message is received (this should never happen in a sane metwork).
+// message is received (this should never happen in a sane network).
 TEST_F(Dhcpv4SrvTest, statisticsNakRcvd) {
 TEST_F(Dhcpv4SrvTest, statisticsNakRcvd) {
     NakedDhcpv4Srv srv(0);
     NakedDhcpv4Srv srv(0);
 
 

+ 1 - 1
src/bin/dhcp4/tests/dhcp4_test_utils.cc

@@ -667,7 +667,7 @@ Dhcpv4SrvTest::pretendReceivingPkt(NakedDhcpv4Srv& srv, const std::string& confi
     ObservationPtr pkt4_rcvd = mgr.getObservation("pkt4-received");
     ObservationPtr pkt4_rcvd = mgr.getObservation("pkt4-received");
     ObservationPtr tested_stat = mgr.getObservation(stat_name);
     ObservationPtr tested_stat = mgr.getObservation(stat_name);
 
 
-    // All expected statstics must be present.
+    // All expected statistics must be present.
     ASSERT_TRUE(pkt4_rcvd);
     ASSERT_TRUE(pkt4_rcvd);
     ASSERT_TRUE(tested_stat);
     ASSERT_TRUE(tested_stat);
 
 

+ 1 - 1
src/bin/dhcp4/tests/dhcp4_test_utils.h

@@ -422,7 +422,7 @@ public:
     ///
     ///
     /// Instantiates fake network interfaces, configures passed Dhcpv4Srv,
     /// Instantiates fake network interfaces, configures passed Dhcpv4Srv,
     /// then creates a message of specified type and sends it to the
     /// then creates a message of specified type and sends it to the
-    /// server and then checks whether expected statstics were set
+    /// server and then checks whether expected statistics were set
     /// appropriately.
     /// appropriately.
     ///
     ///
     /// @param srv the DHCPv4 server to be used
     /// @param srv the DHCPv4 server to be used

+ 5 - 5
src/bin/dhcp4/tests/dora_unittest.cc

@@ -355,7 +355,7 @@ public:
         isc::stats::StatsMgr::instance().removeAll();
         isc::stats::StatsMgr::instance().removeAll();
     }
     }
 
 
-    /// @brief Desctructor.
+    /// @brief Destructor.
     ///
     ///
     /// Cleans up statistics after the test.
     /// Cleans up statistics after the test.
     ~DORATest() {
     ~DORATest() {
@@ -609,7 +609,7 @@ TEST_F(DORATest, initRebootRequest) {
     EXPECT_EQ(DHCPNAK, static_cast<int>(resp->getType()));
     EXPECT_EQ(DHCPNAK, static_cast<int>(resp->getType()));
 
 
     // Change client identifier. The server should treat the request
     // Change client identifier. The server should treat the request
-    // as a resquest from unknown client and ignore it.
+    // as a request from unknown client and ignore it.
     client.includeClientId("12:34");
     client.includeClientId("12:34");
     ASSERT_NO_THROW(client.doRequest());
     ASSERT_NO_THROW(client.doRequest());
     ASSERT_FALSE(client.getContext().response_);
     ASSERT_FALSE(client.getContext().response_);
@@ -1315,7 +1315,7 @@ TEST_F(DORATest, reservationsWithConflicts) {
 
 
     // Client A performs 4-way exchange.
     // Client A performs 4-way exchange.
     client.setState(Dhcp4Client::SELECTING);
     client.setState(Dhcp4Client::SELECTING);
-    // Revert to the broadcast address for the selcting client.
+    // Revert to the broadcast address for the selecting client.
     client.setDestAddress(IOAddress::IPV4_BCAST_ADDRESS());
     client.setDestAddress(IOAddress::IPV4_BCAST_ADDRESS());
     // Obtain a lease from the server using the 4-way exchange.
     // Obtain a lease from the server using the 4-way exchange.
     ASSERT_NO_THROW(client.doDORA(boost::shared_ptr<
     ASSERT_NO_THROW(client.doDORA(boost::shared_ptr<
@@ -1379,7 +1379,7 @@ TEST_F(DORATest, statisticsDORA) {
     ObservationPtr pkt4_ack_sent = mgr.getObservation("pkt4-ack-sent");
     ObservationPtr pkt4_ack_sent = mgr.getObservation("pkt4-ack-sent");
     ObservationPtr pkt4_sent = mgr.getObservation("pkt4-sent");
     ObservationPtr pkt4_sent = mgr.getObservation("pkt4-sent");
 
 
-    // All expected statstics must be present.
+    // All expected statistics must be present.
     ASSERT_TRUE(pkt4_received);
     ASSERT_TRUE(pkt4_received);
     ASSERT_TRUE(pkt4_discover_received);
     ASSERT_TRUE(pkt4_discover_received);
     ASSERT_TRUE(pkt4_offer_sent);
     ASSERT_TRUE(pkt4_offer_sent);
@@ -1441,7 +1441,7 @@ TEST_F(DORATest, statisticsNAK) {
     ObservationPtr pkt4_nak_sent = mgr.getObservation("pkt4-nak-sent");
     ObservationPtr pkt4_nak_sent = mgr.getObservation("pkt4-nak-sent");
     ObservationPtr pkt4_sent = mgr.getObservation("pkt4-sent");
     ObservationPtr pkt4_sent = mgr.getObservation("pkt4-sent");
 
 
-    // All expected statstics must be present.
+    // All expected statistics must be present.
     ASSERT_TRUE(pkt4_received);
     ASSERT_TRUE(pkt4_received);
     ASSERT_TRUE(pkt4_request_received);
     ASSERT_TRUE(pkt4_request_received);
     ASSERT_FALSE(pkt4_ack_sent); // No acks were sent, no such statistic expected.
     ASSERT_FALSE(pkt4_ack_sent); // No acks were sent, no such statistic expected.

+ 6 - 6
src/bin/dhcp4/tests/host_options_unittest.cc

@@ -81,9 +81,9 @@ const bool STATEFUL = false;
 ///   - Single subnet 10.0.0.0/24 with a pool of 10.0.0.10-10.0.0.100
 ///   - Single subnet 10.0.0.0/24 with a pool of 10.0.0.10-10.0.0.100
 ///   - Single reservation within the subnet:
 ///   - Single reservation within the subnet:
 ///     - HW address: aa:bb:cc:dd:ee:ff
 ///     - HW address: aa:bb:cc:dd:ee:ff
-///     - ip-adress 10.0.0.7
+///     - ip-address 10.0.0.7
 ///     - Vendor option for Cable Labs vendor id specified for the reservation:
 ///     - Vendor option for Cable Labs vendor id specified for the reservation:
-///       - TFTP servers suboption overriding globally spececified suboption:
+///       - TFTP servers suboption overriding globally specified suboption:
 ///         10.1.1.202,10.1.1.203
 ///         10.1.1.202,10.1.1.203
 ///
 ///
 const char* HOST_CONFIGS[] = {
 const char* HOST_CONFIGS[] = {
@@ -252,7 +252,7 @@ public:
     /// Overridden options are requested with Parameter Request List
     /// Overridden options are requested with Parameter Request List
     /// option.
     /// option.
     ///
     ///
-    /// @param stateless Boolean value indicating if statless or stateful
+    /// @param stateless Boolean value indicating if stateless or stateful
     /// configuration should be performed.
     /// configuration should be performed.
     void testOverrideRequestedOptions(const bool stateless);
     void testOverrideRequestedOptions(const bool stateless);
 
 
@@ -262,21 +262,21 @@ public:
     /// Overridden options are the options which server sends regardless
     /// Overridden options are the options which server sends regardless
     /// if they are requested with Parameter Request List option or not.
     /// if they are requested with Parameter Request List option or not.
     ///
     ///
-    /// @param stateless Boolean value indicating if statless or stateful
+    /// @param stateless Boolean value indicating if stateless or stateful
     /// configuration should be performed.
     /// configuration should be performed.
     void testOverrideDefaultOptions(const bool stateless);
     void testOverrideDefaultOptions(const bool stateless);
 
 
     /// @brief Verifies that client receives options when they are solely
     /// @brief Verifies that client receives options when they are solely
     /// defined in the host scope (and not in the global or subnet scope).
     /// defined in the host scope (and not in the global or subnet scope).
     ///
     ///
-    /// @param stateless Boolean value indicating if statless or stateful
+    /// @param stateless Boolean value indicating if stateless or stateful
     /// configuration should be performed.
     /// configuration should be performed.
     void testHostOnlyOptions(const bool stateless);
     void testHostOnlyOptions(const bool stateless);
 
 
     /// @brief Verifies that host specific vendor options override vendor
     /// @brief Verifies that host specific vendor options override vendor
     /// options defined in the global scope.
     /// options defined in the global scope.
     ///
     ///
-    /// @param stateless Boolean value indicating if statless or stateful
+    /// @param stateless Boolean value indicating if stateless or stateful
     /// configuration should be performed.
     /// configuration should be performed.
     void testOverrideVendorOptions(const bool stateless);
     void testOverrideVendorOptions(const bool stateless);
 
 

+ 1 - 1
src/bin/dhcp4/tests/inform_unittest.cc

@@ -139,7 +139,7 @@ public:
         isc::stats::StatsMgr::instance().removeAll();
         isc::stats::StatsMgr::instance().removeAll();
     }
     }
 
 
-    /// @brief Desctructor.
+    /// @brief Destructor.
     ///
     ///
     /// Cleans up statistics after the test.
     /// Cleans up statistics after the test.
     ~InformTest() {
     ~InformTest() {

+ 3 - 3
src/bin/dhcp4/tests/kea_controller_unittest.cc

@@ -536,7 +536,7 @@ TEST_F(JSONFileBackendTest, timers) {
         "}";
         "}";
     writeFile(TEST_FILE, config);
     writeFile(TEST_FILE, config);
 
 
-    // Create an instance of the server and intialize it.
+    // Create an instance of the server and initialize it.
     boost::scoped_ptr<ControlledDhcpv4Srv> srv;
     boost::scoped_ptr<ControlledDhcpv4Srv> srv;
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv4Srv(0)));
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv4Srv(0)));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
@@ -605,7 +605,7 @@ TEST_F(JSONFileBackendTest, defaultLeaseDbBackend) {
         "}";
         "}";
     writeFile(TEST_FILE, config);
     writeFile(TEST_FILE, config);
 
 
-    // Create an instance of the server and intialize it.
+    // Create an instance of the server and initialize it.
     boost::scoped_ptr<ControlledDhcpv4Srv> srv;
     boost::scoped_ptr<ControlledDhcpv4Srv> srv;
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv4Srv(0)));
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv4Srv(0)));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
@@ -707,7 +707,7 @@ testBackendReconfiguration(const std::string& backend_first,
                            const std::string& backend_second) {
                            const std::string& backend_second) {
     writeFile(TEST_FILE, createConfiguration(backend_first));
     writeFile(TEST_FILE, createConfiguration(backend_first));
 
 
-    // Create an instance of the server and intialize it.
+    // Create an instance of the server and initialize it.
     boost::scoped_ptr<NakedControlledDhcpv4Srv> srv;
     boost::scoped_ptr<NakedControlledDhcpv4Srv> srv;
     ASSERT_NO_THROW(srv.reset(new NakedControlledDhcpv4Srv()));
     ASSERT_NO_THROW(srv.reset(new NakedControlledDhcpv4Srv()));
     srv->setConfigFile(TEST_FILE);
     srv->setConfigFile(TEST_FILE);

+ 1 - 1
src/bin/dhcp4/tests/marker_file.h.in

@@ -45,7 +45,7 @@ checkMarkerFile(const char* name, const char* expected);
 ///
 ///
 /// This function is used in some of the DHCP server tests.
 /// This function is used in some of the DHCP server tests.
 ///
 ///
-/// Checkes that the specified file does NOT exist.
+/// Checks that the specified file does NOT exist.
 ///
 ///
 /// @param name Name of the marker file.
 /// @param name Name of the marker file.
 ///
 ///

+ 12 - 12
src/bin/dhcp4/tests/out_of_range_unittest.cc

@@ -203,7 +203,7 @@ public:
         IfaceMgr::instance().openSockets4();
         IfaceMgr::instance().openSockets4();
     }
     }
 
 
-    /// @brief Desctructor.
+    /// @brief Destructor.
     ///
     ///
     /// Cleans up statistics after the test.
     /// Cleans up statistics after the test.
     ~OutOfRangeTest() {
     ~OutOfRangeTest() {
@@ -224,7 +224,7 @@ public:
     /// off the queue.  Note the function expects there to be 1 and only
     /// off the queue.  Note the function expects there to be 1 and only
     /// 1 NCR queued.
     /// 1 NCR queued.
     ///
     ///
-    /// @param type - NCR type exepcted, either CHG_ADD or CHG_REMOVE
+    /// @param type - NCR type expected, either CHG_ADD or CHG_REMOVE
     /// @param addr - string containing the ip address expected in the NCR
     /// @param addr - string containing the ip address expected in the NCR
     void verifyNameChangeRequest(const isc::dhcp_ddns::NameChangeType type,
     void verifyNameChangeRequest(const isc::dhcp_ddns::NameChangeType type,
                                  const std::string& addr) {
                                  const std::string& addr) {
@@ -245,7 +245,7 @@ public:
     ///
     ///
     /// Each test cycles consists of a the following two stages, the first is
     /// Each test cycles consists of a the following two stages, the first is
     /// a set-up stage during which the server is configured with an initial,
     /// a set-up stage during which the server is configured with an initial,
-    /// reference, configuration and a client then verifies that it can aquire
+    /// reference, configuration and a client then verifies that it can acquire
     /// and renew a lease.  The second stage verifies that the server, having
     /// and renew a lease.  The second stage verifies that the server, having
     /// been reconfigured such that the original lease is now "out-of-range",
     /// been reconfigured such that the original lease is now "out-of-range",
     /// responds correctly to the same client first attempting to renew the
     /// responds correctly to the same client first attempting to renew the
@@ -301,7 +301,7 @@ OutOfRangeTest::oorRenewReleaseTest(enum CfgIndex cfg_idx,
         client.setHWAddress(hwaddress);
         client.setHWAddress(hwaddress);
     }
     }
 
 
-    // Aquire the lease via DORA
+    // Acquire the lease via DORA
     ASSERT_NO_THROW(client.doDORA());
     ASSERT_NO_THROW(client.doDORA());
 
 
     // Make sure that the server responded.
     // Make sure that the server responded.
@@ -406,7 +406,7 @@ TEST_F(OutOfRangeTest, dynamicOutOfSubnet) {
                         DOES_NOT_RENEW);
                         DOES_NOT_RENEW);
 }
 }
 
 
-// Test verifies that once-valid dynamic address host reserveration,
+// Test verifies that once-valid dynamic address host reservation,
 // whose address is no longer within the subnet's pool:
 // whose address is no longer within the subnet's pool:
 //
 //
 // a: Is NAKed upon a renewal attempt
 // a: Is NAKed upon a renewal attempt
@@ -419,7 +419,7 @@ TEST_F(OutOfRangeTest, dynamicHostOutOfPool) {
     oorRenewReleaseTest(DIFF_POOL, hwaddress, expected_address, DOES_NOT_RENEW);
     oorRenewReleaseTest(DIFF_POOL, hwaddress, expected_address, DOES_NOT_RENEW);
 }
 }
 
 
-// Test verifies that once-valid dynamic address host reserveration,
+// Test verifies that once-valid dynamic address host reservation,
 // whose address is no longer within any configured subnet:
 // whose address is no longer within any configured subnet:
 //
 //
 // a: Is NAKed upon a renewal attempt
 // a: Is NAKed upon a renewal attempt
@@ -433,7 +433,7 @@ TEST_F(OutOfRangeTest, dynamicHostOutOfSubnet) {
                         DOES_NOT_RENEW);
                         DOES_NOT_RENEW);
 }
 }
 
 
-// Test verifies that once-valid dynamic address host reserveration,
+// Test verifies that once-valid dynamic address host reservation,
 // whose address is within the configured subnet and pool, but whose
 // whose address is within the configured subnet and pool, but whose
 // reservation has been removed:
 // reservation has been removed:
 //
 //
@@ -449,7 +449,7 @@ TEST_F(OutOfRangeTest, dynamicHostReservationRemoved) {
     oorRenewReleaseTest(NO_HR, hwaddress, expected_address, DOES_RENEW);
     oorRenewReleaseTest(NO_HR, hwaddress, expected_address, DOES_RENEW);
 }
 }
 
 
-// Test verifies that once-valid dynamic address host reserveration,
+// Test verifies that once-valid dynamic address host reservation,
 // whose address is no longer within any configured subnet, and which
 // whose address is no longer within any configured subnet, and which
 // no longer has reservation defined:
 // no longer has reservation defined:
 //
 //
@@ -466,7 +466,7 @@ TEST_F(OutOfRangeTest, dynamicHostOutOfSubnetReservationRemoved) {
                         DOES_NOT_RENEW);
                         DOES_NOT_RENEW);
 }
 }
 
 
-// Test verifies that once-valid in-subnet fixed-address host reserveration,
+// Test verifies that once-valid in-subnet fixed-address host reservation,
 // after the subnet pool changes:
 // after the subnet pool changes:
 //
 //
 // a: Is NAK'd upon a renewal attempt
 // a: Is NAK'd upon a renewal attempt
@@ -481,7 +481,7 @@ TEST_F(OutOfRangeTest, fixedHostOutOfSubnet) {
 }
 }
 
 
 
 
-// Test verifies that once-valid in-subnet fixed-address host reserveration,
+// Test verifies that once-valid in-subnet fixed-address host reservation,
 // after the subnet pool is changed:
 // after the subnet pool is changed:
 //
 //
 // a: Is ACK'd upon a renewal attempt
 // a: Is ACK'd upon a renewal attempt
@@ -494,7 +494,7 @@ TEST_F(OutOfRangeTest, fixedHostDifferentPool) {
     oorRenewReleaseTest(DIFF_POOL, hwaddress, expected_address, DOES_RENEW);
     oorRenewReleaseTest(DIFF_POOL, hwaddress, expected_address, DOES_RENEW);
 }
 }
 
 
-// Test verifies that once-valid in-subnet fixed-address host reserveration,
+// Test verifies that once-valid in-subnet fixed-address host reservation,
 // whose reservation has been removed from the configuration
 // whose reservation has been removed from the configuration
 //
 //
 // a: Is NAK'd upon a renewal attempt
 // a: Is NAK'd upon a renewal attempt
@@ -507,7 +507,7 @@ TEST_F(OutOfRangeTest, fixedHostReservationRemoved) {
     oorRenewReleaseTest(NO_HR, hwaddress, expected_address, DOES_NOT_RENEW);
     oorRenewReleaseTest(NO_HR, hwaddress, expected_address, DOES_NOT_RENEW);
 }
 }
 
 
-// Test verifies that once-valid fixed address host reserveration,
+// Test verifies that once-valid fixed address host reservation,
 // whose address is no longer within any configured subnet
 // whose address is no longer within any configured subnet
 //
 //
 // a: Is NAKed upon a renewal attempt
 // a: Is NAKed upon a renewal attempt

+ 1 - 1
src/bin/dhcp4/tests/release_unittest.cc

@@ -171,7 +171,7 @@ ReleaseTest::acquireAndRelease(const std::string& hw_address_1,
     if (expected_result == SHOULD_PASS) {
     if (expected_result == SHOULD_PASS) {
         EXPECT_FALSE(lease);
         EXPECT_FALSE(lease);
 
 
-        // The removal succeded, so the assigned-addresses statistic should
+        // The removal succeeded, so the assigned-addresses statistic should
         // be decreased by one
         // be decreased by one
         EXPECT_EQ(before, after + 1);
         EXPECT_EQ(before, after + 1);
     } else {
     } else {

+ 3 - 2
src/bin/dhcp6/main.cc

@@ -158,8 +158,9 @@ main(int argc, char* argv[]) {
                 log_manager.process();
                 log_manager.process();
                 LOG_ERROR(dhcp6_logger, DHCP6_INIT_FAIL).arg(ex.what());
                 LOG_ERROR(dhcp6_logger, DHCP6_INIT_FAIL).arg(ex.what());
             } catch (...) {
             } catch (...) {
-                // The exeption thrown during the initialization could originate
-                // from logger subsystem. Therefore LOG_ERROR() may fail as well.
+                // The exception thrown during the initialization could
+                // originate from logger subsystem. Therefore LOG_ERROR() may
+                // fail as well.
                 cerr << "Failed to initialize server: " << ex.what() << endl;
                 cerr << "Failed to initialize server: " << ex.what() << endl;
             }
             }
 
 

+ 3 - 3
src/bin/dhcp6/tests/config_parser_unittest.cc

@@ -586,7 +586,7 @@ public:
         CfgMgr::instance().clear();
         CfgMgr::instance().clear();
     }
     }
 
 
-    /// @brief Test invalid option paramater value.
+    /// @brief Test invalid option parameter value.
     ///
     ///
     /// This test function constructs the simple configuration
     /// This test function constructs the simple configuration
     /// string and injects invalid option configuration into it.
     /// string and injects invalid option configuration into it.
@@ -3929,7 +3929,7 @@ TEST_F(Dhcp6ParserTest, classifySubnets) {
 // This test checks the ability of the server to parse a configuration
 // This test checks the ability of the server to parse a configuration
 // containing a full, valid dhcp-ddns (D2ClientConfig) entry.
 // containing a full, valid dhcp-ddns (D2ClientConfig) entry.
 TEST_F(Dhcp6ParserTest, d2ClientConfig) {
 TEST_F(Dhcp6ParserTest, d2ClientConfig) {
-    // Verify that the D2 configuraiton can be fetched and is set to disabled.
+    // Verify that the D2 configuration can be fetched and is set to disabled.
     D2ClientConfigPtr d2_client_config = CfgMgr::instance().getD2ClientConfig();
     D2ClientConfigPtr d2_client_config = CfgMgr::instance().getD2ClientConfig();
     EXPECT_FALSE(d2_client_config->getEnableUpdates());
     EXPECT_FALSE(d2_client_config->getEnableUpdates());
 
 
@@ -4035,7 +4035,7 @@ TEST_F(Dhcp6ParserTest, invalidD2ClientConfig) {
     checkResult(status, 1);
     checkResult(status, 1);
     EXPECT_TRUE(errorContainsPosition(status, "<string>"));
     EXPECT_TRUE(errorContainsPosition(status, "<string>"));
 
 
-    // Verify that the D2 configuraiton can be fetched and is set to disabled.
+    // Verify that the D2 configuration can be fetched and is set to disabled.
     D2ClientConfigPtr d2_client_config = CfgMgr::instance().getD2ClientConfig();
     D2ClientConfigPtr d2_client_config = CfgMgr::instance().getD2ClientConfig();
     EXPECT_FALSE(d2_client_config->getEnableUpdates());
     EXPECT_FALSE(d2_client_config->getEnableUpdates());
 
 

+ 1 - 1
src/bin/dhcp6/tests/confirm_unittest.cc

@@ -274,7 +274,7 @@ TEST_F(ConfirmTest, relayedClientNoSubnet) {
     // Send Confirm message to the server.
     // Send Confirm message to the server.
     ASSERT_NO_THROW(client.doConfirm());
     ASSERT_NO_THROW(client.doConfirm());
     // Client should have received a status code option and this option should
     // Client should have received a status code option and this option should
-    // indicate that the client is NotOnLink becuase subnet could not be
+    // indicate that the client is NotOnLink because subnet could not be
     // selected.
     // selected.
     ASSERT_TRUE(client.receivedStatusCode());
     ASSERT_TRUE(client.receivedStatusCode());
     ASSERT_EQ(STATUS_NotOnLink, client.getStatusCode());
     ASSERT_EQ(STATUS_NotOnLink, client.getStatusCode());

+ 1 - 1
src/bin/dhcp6/tests/decline_unittest.cc

@@ -166,7 +166,7 @@ Dhcpv6SrvTest::acquireAndDecline(Dhcp6Client& client,
     if (expected_result == SHOULD_PASS) {
     if (expected_result == SHOULD_PASS) {
         EXPECT_EQ(Lease::STATE_DECLINED, lease->state_);
         EXPECT_EQ(Lease::STATE_DECLINED, lease->state_);
 
 
-        // The decline succeded, so the declined-addresses statistic should
+        // The decline succeeded, so the declined-addresses statistic should
         // be increased by one
         // be increased by one
         EXPECT_EQ(after, before + 1);
         EXPECT_EQ(after, before + 1);
         EXPECT_EQ(after_global, before_global + 1);
         EXPECT_EQ(after_global, before_global + 1);

+ 1 - 1
src/bin/dhcp6/tests/dhcp6_test_utils.cc

@@ -679,7 +679,7 @@ Dhcpv6SrvTest::testReceiveStats(uint8_t pkt_type, const std::string& stat_name)
     // fakeReceive()
     // fakeReceive()
     srv.run();
     srv.run();
 
 
-    // All expected statstics must be present.
+    // All expected statistics must be present.
     pkt6_rcvd = mgr.getObservation("pkt6-received");
     pkt6_rcvd = mgr.getObservation("pkt6-received");
     tested_stat = mgr.getObservation(stat_name);
     tested_stat = mgr.getObservation(stat_name);
     ASSERT_TRUE(pkt6_rcvd);
     ASSERT_TRUE(pkt6_rcvd);

+ 1 - 1
src/bin/dhcp6/tests/dhcp6_test_utils.h

@@ -376,7 +376,7 @@ public:
 // dependencies, we use forward declaration here.
 // dependencies, we use forward declaration here.
 class Dhcp6Client;
 class Dhcp6Client;
 
 
-// Provides suport for tests against a preconfigured subnet6
+// Provides support for tests against a preconfigured subnet6
 // extends upon NakedDhcp6SrvTest
 // extends upon NakedDhcp6SrvTest
 class Dhcpv6SrvTest : public NakedDhcpv6SrvTest {
 class Dhcpv6SrvTest : public NakedDhcpv6SrvTest {
 public:
 public:

+ 5 - 5
src/bin/dhcp6/tests/host_unittest.cc

@@ -532,7 +532,7 @@ public:
     void testLeaseForIA(const Reservation& r, size_t& address_count,
     void testLeaseForIA(const Reservation& r, size_t& address_count,
                         size_t& prefix_count);
                         size_t& prefix_count);
 
 
-    /// @brief Checks if the client obtined lease for specified hint.
+    /// @brief Checks if the client obtained lease for specified hint.
     ///
     ///
     /// The hint belongs to a specific IA (identified by IAID) and is expected
     /// The hint belongs to a specific IA (identified by IAID) and is expected
     /// to be returned in this IA by the server.
     /// to be returned in this IA by the server.
@@ -1559,7 +1559,7 @@ TEST_F(HostTest, appendReservationDuringRenew) {
     EXPECT_TRUE(client_.hasLeaseForPrefix(IOAddress("3000:1:2::"), 64));
     EXPECT_TRUE(client_.hasLeaseForPrefix(IOAddress("3000:1:2::"), 64));
     EXPECT_TRUE(client_.hasLeaseForPrefix(IOAddress("3000:1:3::"), 64));
     EXPECT_TRUE(client_.hasLeaseForPrefix(IOAddress("3000:1:3::"), 64));
 
 
-    // Make sure that the replaced leases have been returned with zero liftimes.
+    // Make sure that the replaced leases have been returned with zero lifetimes.
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(dynamic_address_lease));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(dynamic_address_lease));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForPrefix(dynamic_prefix_lease, 64));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForPrefix(dynamic_prefix_lease, 64));
 
 
@@ -1578,7 +1578,7 @@ TEST_F(HostTest, appendReservationDuringRenew) {
     // allocated once, i.e. 6 + 6 = 12.
     // allocated once, i.e. 6 + 6 = 12.
     ASSERT_EQ(12, client_.getLeaseNum());
     ASSERT_EQ(12, client_.getLeaseNum());
 
 
-    // All removed leases should be returned with zero liftimes.
+    // All removed leases should be returned with zero lifetimes.
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(IOAddress("2001:db8:1:1::1")));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(IOAddress("2001:db8:1:1::1")));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(IOAddress("2001:db8:1:1::2")));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(IOAddress("2001:db8:1:1::2")));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(IOAddress("2001:db8:1:1::3")));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(IOAddress("2001:db8:1:1::3")));
@@ -1670,7 +1670,7 @@ TEST_F(HostTest, insertReservationDuringRenew) {
     EXPECT_TRUE(client_.hasLeaseForPrefix(IOAddress("3000:1:3::"), 64,
     EXPECT_TRUE(client_.hasLeaseForPrefix(IOAddress("3000:1:3::"), 64,
                                           IAID(6)));
                                           IAID(6)));
 
 
-    // Make sure that the replaced leases have been returned with zero liftimes.
+    // Make sure that the replaced leases have been returned with zero lifetimes.
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(dynamic_address_lease));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForAddress(dynamic_address_lease));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForPrefix(dynamic_prefix_lease, 64));
     EXPECT_TRUE(client_.hasLeaseWithZeroLifetimeForPrefix(dynamic_prefix_lease, 64));
 }
 }
@@ -1737,7 +1737,7 @@ TEST_F(HostTest, multipleIAsConflict) {
     ASSERT_TRUE(client_.hasLeaseForAddress(IOAddress("2001:db8:1::2"),
     ASSERT_TRUE(client_.hasLeaseForAddress(IOAddress("2001:db8:1::2"),
                                            IAID(1)));
                                            IAID(1)));
     // The address "2001:db8:1::1" was hijacked by another client so it
     // The address "2001:db8:1::1" was hijacked by another client so it
-    // must not be assigned to thsi client.
+    // must not be assigned to this client.
     ASSERT_FALSE(client_.hasLeaseForAddress(IOAddress("2001:db8:1::1")));
     ASSERT_FALSE(client_.hasLeaseForAddress(IOAddress("2001:db8:1::1")));
     // This client should have got an address from the dynamic pool excluding
     // This client should have got an address from the dynamic pool excluding
     // two addresses already assigned, i.e. excluding "2001:db8:1::1" and
     // two addresses already assigned, i.e. excluding "2001:db8:1::1" and

+ 1 - 1
src/bin/dhcp6/tests/infrequest_unittest.cc

@@ -24,7 +24,7 @@ namespace {
 ///   - one subnet used on eth0 interface
 ///   - one subnet used on eth0 interface
 ///     - with address and prefix pools
 ///     - with address and prefix pools
 ///     - dns-servers option
 ///     - dns-servers option
-/// - Configuation 1:
+/// - Configuration 1:
 ///   - one subnet used on eth0 interface
 ///   - one subnet used on eth0 interface
 ///     - no addresses or prefixes
 ///     - no addresses or prefixes
 ///     - domain-search option
 ///     - domain-search option

+ 4 - 4
src/bin/dhcp6/tests/kea_controller_unittest.cc

@@ -485,7 +485,7 @@ TEST_F(JSONFileBackendTest, timers) {
         "}";
         "}";
     writeFile(TEST_FILE, config);
     writeFile(TEST_FILE, config);
 
 
-    // Create an instance of the server and intialize it.
+    // Create an instance of the server and initialize it.
     boost::scoped_ptr<ControlledDhcpv6Srv> srv;
     boost::scoped_ptr<ControlledDhcpv6Srv> srv;
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv6Srv(0)));
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv6Srv(0)));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
@@ -562,7 +562,7 @@ TEST_F(JSONFileBackendTest, serverId) {
         "}";
         "}";
     writeFile(TEST_FILE, config);
     writeFile(TEST_FILE, config);
 
 
-    // Create an instance of the server and intialize it.
+    // Create an instance of the server and initialize it.
     boost::scoped_ptr<ControlledDhcpv6Srv> srv;
     boost::scoped_ptr<ControlledDhcpv6Srv> srv;
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv6Srv(0)));
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv6Srv(0)));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
@@ -593,7 +593,7 @@ TEST_F(JSONFileBackendTest, defaultLeaseDbBackend) {
         "}";
         "}";
     writeFile(TEST_FILE, config);
     writeFile(TEST_FILE, config);
 
 
-    // Create an instance of the server and intialize it.
+    // Create an instance of the server and initialize it.
     boost::scoped_ptr<ControlledDhcpv6Srv> srv;
     boost::scoped_ptr<ControlledDhcpv6Srv> srv;
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv6Srv(0)));
     ASSERT_NO_THROW(srv.reset(new ControlledDhcpv6Srv(0)));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
     ASSERT_NO_THROW(srv->init(TEST_FILE));
@@ -696,7 +696,7 @@ testBackendReconfiguration(const std::string& backend_first,
                            const std::string& backend_second) {
                            const std::string& backend_second) {
     writeFile(TEST_FILE, createConfiguration(backend_first));
     writeFile(TEST_FILE, createConfiguration(backend_first));
 
 
-    // Create an instance of the server and intialize it.
+    // Create an instance of the server and initialize it.
     boost::scoped_ptr<NakedControlledDhcpv6Srv> srv;
     boost::scoped_ptr<NakedControlledDhcpv6Srv> srv;
     ASSERT_NO_THROW(srv.reset(new NakedControlledDhcpv6Srv()));
     ASSERT_NO_THROW(srv.reset(new NakedControlledDhcpv6Srv()));
     srv->setConfigFile(TEST_FILE);
     srv->setConfigFile(TEST_FILE);

+ 1 - 1
src/bin/dhcp6/tests/marker_file.h.in

@@ -45,7 +45,7 @@ checkMarkerFile(const char* name, const char* expected);
 ///
 ///
 /// This function is used in some of the DHCP server tests.
 /// This function is used in some of the DHCP server tests.
 ///
 ///
-/// Checkes that the specified file does NOT exist.
+/// Checks that the specified file does NOT exist.
 ///
 ///
 /// @param name Name of the marker file.
 /// @param name Name of the marker file.
 ///
 ///

+ 1 - 1
src/bin/dhcp6/tests/sarr_unittest.cc

@@ -513,7 +513,7 @@ TEST_F(SARRTest, sarrStats) {
     // Server should have assigned a prefix.
     // Server should have assigned a prefix.
     ASSERT_EQ(1, client.getLeaseNum());
     ASSERT_EQ(1, client.getLeaseNum());
 
 
-    // All expected statstics must be present now.
+    // All expected statistics must be present now.
     pkt6_rcvd = mgr.getObservation("pkt6-received");
     pkt6_rcvd = mgr.getObservation("pkt6-received");
     pkt6_solicit_rcvd = mgr.getObservation("pkt6-solicit-received");
     pkt6_solicit_rcvd = mgr.getObservation("pkt6-solicit-received");
     pkt6_adv_sent = mgr.getObservation("pkt6-advertise-sent");
     pkt6_adv_sent = mgr.getObservation("pkt6-advertise-sent");

+ 2 - 2
src/bin/lfc/tests/lfc_controller_unittests.cc

@@ -219,7 +219,7 @@ TEST_F(LFCControllerTest, notEnoughData) {
 /// @brief Verify that extra arguments cause the parse to fail.
 /// @brief Verify that extra arguments cause the parse to fail.
 /// Parse a full command line plus some extra arguments on the end
 /// Parse a full command line plus some extra arguments on the end
 /// to verify that we don't stop parsing when we find all of the
 /// to verify that we don't stop parsing when we find all of the
-/// required arguments.  We exepct the parse to fail with an
+/// required arguments.  We expect the parse to fail with an
 /// InvalidUsage exception.
 /// InvalidUsage exception.
 TEST_F(LFCControllerTest, tooMuchData) {
 TEST_F(LFCControllerTest, tooMuchData) {
     LFCController lfc_controller;
     LFCController lfc_controller;
@@ -297,7 +297,7 @@ TEST_F(LFCControllerTest, fileRotate) {
     int argc = 14;
     int argc = 14;
     lfc_controller.parseArgs(argc, argv);
     lfc_controller.parseArgs(argc, argv);
 
 
-    // Test 1: Start with no files - we expect an execption as there
+    // Test 1: Start with no files - we expect an exception as there
     // is no file to copy.
     // is no file to copy.
     EXPECT_THROW(lfc_controller.fileRotate(), RunTimeFail);
     EXPECT_THROW(lfc_controller.fileRotate(), RunTimeFail);
     removeTestFile();
     removeTestFile();

+ 2 - 2
src/bin/perfdhcp/tests/command_options_helper.h

@@ -97,7 +97,7 @@ private:
 
 
     /// \brief Split string to the array of C-strings.
     /// \brief Split string to the array of C-strings.
     ///
     ///
-    /// \param text_to_split string to be splited.
+    /// \param text_to_split string to be split.
     /// \param [out] num number of substrings returned.
     /// \param [out] num number of substrings returned.
     /// \param std::bad_alloc if allocation of C-strings failed.
     /// \param std::bad_alloc if allocation of C-strings failed.
     /// \return array of C-strings created from split.
     /// \return array of C-strings created from split.
@@ -108,7 +108,7 @@ private:
         // Iterators to be used for tokenization
         // Iterators to be used for tokenization
         std::istream_iterator<std::string> text_iterator(text_stream);
         std::istream_iterator<std::string> text_iterator(text_stream);
         std::istream_iterator<std::string> text_end;
         std::istream_iterator<std::string> text_end;
-        // Tokenize string (space is a separator) using begin and end iteratos
+        // Tokenize string (space is a separator) using begin and end iterators
         std::vector<std::string> tokens(text_iterator, text_end);
         std::vector<std::string> tokens(text_iterator, text_end);
 
 
         if (!tokens.empty()) {
         if (!tokens.empty()) {

+ 2 - 2
src/bin/perfdhcp/tests/perf_pkt4_unittest.cc

@@ -344,7 +344,7 @@ TEST_F(PerfPkt4Test, PackTransactionId) {
 }
 }
 
 
 TEST_F(PerfPkt4Test, UnpackTransactionId) {
 TEST_F(PerfPkt4Test, UnpackTransactionId) {
-    // Initialize packet data, lebgth 268, zeros only.
+    // Initialize packet data, length 268, zeros only.
     std::vector<uint8_t> in_data(268, 0);
     std::vector<uint8_t> in_data(268, 0);
 
 
     // Assume that transaction id is at offset 100.
     // Assume that transaction id is at offset 100.
@@ -377,7 +377,7 @@ TEST_F(PerfPkt4Test, UnpackTransactionId) {
 }
 }
 
 
 TEST_F(PerfPkt4Test, Writes) {
 TEST_F(PerfPkt4Test, Writes) {
-    // Initialize intput buffer with 260 elements set to value 1.
+    // Initialize input buffer with 260 elements set to value 1.
     dhcp::OptionBuffer in_data(260, 1);
     dhcp::OptionBuffer in_data(260, 1);
     // Initialize buffer to be used for write: 1,2,3,4,...,9
     // Initialize buffer to be used for write: 1,2,3,4,...,9
     dhcp::OptionBuffer write_buf(10);
     dhcp::OptionBuffer write_buf(10);

+ 1 - 1
src/bin/perfdhcp/tests/perf_pkt6_unittest.cc

@@ -217,7 +217,7 @@ TEST_F(PerfPkt6Test, InvalidOptions) {
 
 
     // Create packet.
     // Create packet.
     boost::scoped_ptr<PerfPkt6> pkt2(capture());
     boost::scoped_ptr<PerfPkt6> pkt2(capture());
-    // Testing offset of the option (lower than pakcet size but
+    // Testing offset of the option (lower than packet size but
     // tail of the option out of bounds).
     // tail of the option out of bounds).
     LocalizedOptionPtr pkt2_serverid(new LocalizedOption(Option::V6,
     LocalizedOptionPtr pkt2_serverid(new LocalizedOption(Option::V6,
                                                          D6O_SERVERID,
                                                          D6O_SERVERID,

+ 3 - 3
src/bin/perfdhcp/tests/rate_control_unittest.cc

@@ -122,7 +122,7 @@ TEST(RateControl, isLateSent) {
 // depends on time.
 // depends on time.
 TEST(RateControl, getOutboundMessageCount) {
 TEST(RateControl, getOutboundMessageCount) {
     // Test that the number of outbound messages is correctly defined by the
     // Test that the number of outbound messages is correctly defined by the
-    // rate.  The agressivity is set high enough so that it will not restrict
+    // rate.  The aggressivity is set high enough so that it will not restrict
     // the calculated count.
     // the calculated count.
     NakedRateControl rc1(1000, 1000000);
     NakedRateControl rc1(1000, 1000000);
     // Set the timestamp of the last sent message well to the past. The
     // Set the timestamp of the last sent message well to the past. The
@@ -135,7 +135,7 @@ TEST(RateControl, getOutboundMessageCount) {
     // The number of messages to be sent must be roughly equal to the time
     // The number of messages to be sent must be roughly equal to the time
     // between the last sent message and the current time multiplied by the
     // between the last sent message and the current time multiplied by the
     // rate.  ("Roughly", as current time is advancing, so the actual interval
     // rate.  ("Roughly", as current time is advancing, so the actual interval
-    // when the calcuation is made may be different from the interval set.)  The
+    // when the measurement is made may be different from the interval set.) The
     // margin in this test is reasonably generous, allowing for a timing error
     // margin in this test is reasonably generous, allowing for a timing error
     // of around 10ms.
     // of around 10ms.
     uint64_t count = 0;
     uint64_t count = 0;
@@ -143,7 +143,7 @@ TEST(RateControl, getOutboundMessageCount) {
     EXPECT_TRUE((count >= 5240) && (count <= 5260)) <<
     EXPECT_TRUE((count >= 5240) && (count <= 5260)) <<
         "count is " << count << ", expected range 5240-5260";
         "count is " << count << ", expected range 5240-5260";
 
 
-    // Check that the agressivity limits the count of messages.
+    // Check that the aggressivity limits the count of messages.
     NakedRateControl rc2(1000, 3500);
     NakedRateControl rc2(1000, 3500);
     rc2.last_sent_ =
     rc2.last_sent_ =
         NakedRateControl::currentTime() - boost::posix_time::seconds(5) -
         NakedRateControl::currentTime() - boost::posix_time::seconds(5) -

+ 1 - 1
src/bin/perfdhcp/tests/test_control_unittest.cc

@@ -32,7 +32,7 @@ using namespace isc::perfdhcp;
 
 
 /// \brief Test Control class with protected members made public.
 /// \brief Test Control class with protected members made public.
 ///
 ///
-/// This class makes protected TestControl class'es member public
+/// This class makes protected TestControl class's members public
 /// to allow unit testing.
 /// to allow unit testing.
 class NakedTestControl: public TestControl {
 class NakedTestControl: public TestControl {
 public:
 public:

+ 3 - 3
src/bin/sockcreator/tests/sockcreator_tests.cc

@@ -54,7 +54,7 @@ setAddressFamilyFields(sockaddr_in6* address) {
     address->sin6_addr = in6addr_loopback;
     address->sin6_addr = in6addr_loopback;
 }
 }
 
 
-// Socket has been opened, peform a check on it.  The sole argument is the
+// Socket has been opened, perform a check on it.  The sole argument is the
 // socket descriptor.  The TCP check is the same regardless of the address
 // socket descriptor.  The TCP check is the same regardless of the address
 // family.  The UDP check requires that the socket address be obtained so
 // family.  The UDP check requires that the socket address be obtained so
 // is parameterised on the type of structure required to hold the address.
 // is parameterised on the type of structure required to hold the address.
@@ -94,7 +94,7 @@ udpCheck(const int socknum) {
 // code, so provide a convenient typedef.
 // code, so provide a convenient typedef.
 typedef void (*socket_check_t)(const int);
 typedef void (*socket_check_t)(const int);
 
 
-// Address-family-specific scoket checks.
+// Address-family-specific socket checks.
 //
 //
 // The first argument is used to select the overloaded check function.
 // The first argument is used to select the overloaded check function.
 // The other argument is the socket descriptor number.
 // The other argument is the socket descriptor number.
@@ -306,7 +306,7 @@ getSockDummy(const int type, struct sockaddr* addr, const socklen_t,
 int
 int
 send_FdDummy(const int destination, const int what) {
 send_FdDummy(const int destination, const int what) {
     // Make sure it is 1 byte so we know the length. We do not use more during
     // Make sure it is 1 byte so we know the length. We do not use more during
-    // the test anyway.  And even with the LS bute, we can distinguish between
+    // the test anyway.  And even with the LS byte, we can distinguish between
     // the different results.
     // the different results.
     const char fd_data = what & 0xff;
     const char fd_data = what & 0xff;
     const bool status = write_data(destination, &fd_data, sizeof(fd_data));
     const bool status = write_data(destination, &fd_data, sizeof(fd_data));

+ 4 - 4
src/hooks/dhcp/user_chk/tests/user_file_unittests.cc

@@ -41,11 +41,11 @@ TEST(UserFile, construction) {
 TEST(UserFile, openFile) {
 TEST(UserFile, openFile) {
     UserFilePtr user_file;
     UserFilePtr user_file;
 
 
-    // Construct a user file that refers to a non existant file.
+    // Construct a user file that refers to a non existing file.
     ASSERT_NO_THROW(user_file.reset(new UserFile("NoSuchFile")));
     ASSERT_NO_THROW(user_file.reset(new UserFile("NoSuchFile")));
     EXPECT_FALSE(user_file->isOpen());
     EXPECT_FALSE(user_file->isOpen());
 
 
-    // Verify a non-existant file fails to open
+    // Verify a non-existing file fails to open
     ASSERT_THROW(user_file->open(), UserFileError);
     ASSERT_THROW(user_file->open(), UserFileError);
     EXPECT_FALSE(user_file->isOpen());
     EXPECT_FALSE(user_file->isOpen());
 
 
@@ -62,7 +62,7 @@ TEST(UserFile, openFile) {
     // Verify that we cannot open an already open file.
     // Verify that we cannot open an already open file.
     ASSERT_THROW(user_file->open(), UserFileError);
     ASSERT_THROW(user_file->open(), UserFileError);
 
 
-    // Verifyt we can close it.
+    // Verify we can close it.
     ASSERT_NO_THROW(user_file->close());
     ASSERT_NO_THROW(user_file->close());
     EXPECT_FALSE(user_file->isOpen());
     EXPECT_FALSE(user_file->isOpen());
 
 
@@ -75,7 +75,7 @@ TEST(UserFile, openFile) {
 /// @brief Tests makeUser with invalid user strings
 /// @brief Tests makeUser with invalid user strings
 TEST(UserFile, makeUser) {
 TEST(UserFile, makeUser) {
     const char* invalid_strs[]= {
     const char* invalid_strs[]= {
-        // Missinge type element.
+        // Missing type element.
         "{ \"id\" : \"01AC00F03344\" }",
         "{ \"id\" : \"01AC00F03344\" }",
         // Invalid id type string value.
         // Invalid id type string value.
         "{ \"type\" : \"BOGUS\", \"id\" : \"01AC00F03344\"}",
         "{ \"type\" : \"BOGUS\", \"id\" : \"01AC00F03344\"}",

+ 1 - 1
src/hooks/dhcp/user_chk/tests/user_registry_unittests.cc

@@ -61,7 +61,7 @@ TEST(UserRegistry, userBasics) {
     EXPECT_TRUE(found_user);
     EXPECT_TRUE(found_user);
     EXPECT_EQ(found_user->getUserId(), *id);
     EXPECT_EQ(found_user->getUserId(), *id);
 
 
-    // Verify that searching for a non-existant user returns empty user pointer.
+    // Verify that searching for a non-existing user returns empty user pointer.
     UserIdPtr id2;
     UserIdPtr id2;
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::HW_ADDRESS, "02020202")));
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::HW_ADDRESS, "02020202")));
     ASSERT_NO_THROW(found_user = reg->findUser(*id2));
     ASSERT_NO_THROW(found_user = reg->findUser(*id2));

+ 6 - 6
src/hooks/dhcp/user_chk/tests/userid_unittests.cc

@@ -50,21 +50,21 @@ TEST(UserIdTest, hwAddress_type) {
     EXPECT_EQ(id->getType(), UserId::HW_ADDRESS);
     EXPECT_EQ(id->getType(), UserId::HW_ADDRESS);
     EXPECT_TRUE(bytes == id->getId());
     EXPECT_TRUE(bytes == id->getId());
 
 
-    // Check relational oeprators when a == b.
+    // Check relational operators when a == b.
     UserIdPtr id2;
     UserIdPtr id2;
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::HW_ADDRESS, id->toText())));
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::HW_ADDRESS, id->toText())));
     EXPECT_TRUE(*id == *id2);
     EXPECT_TRUE(*id == *id2);
     EXPECT_FALSE(*id != *id2);
     EXPECT_FALSE(*id != *id2);
     EXPECT_FALSE(*id < *id2);
     EXPECT_FALSE(*id < *id2);
 
 
-    // Check relational oeprators when a < b.
+    // Check relational operators when a < b.
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::HW_ADDRESS,
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::HW_ADDRESS,
                                          "01FF02AC030B0709")));
                                          "01FF02AC030B0709")));
     EXPECT_FALSE(*id == *id2);
     EXPECT_FALSE(*id == *id2);
     EXPECT_TRUE(*id != *id2);
     EXPECT_TRUE(*id != *id2);
     EXPECT_TRUE(*id < *id2);
     EXPECT_TRUE(*id < *id2);
 
 
-    // Check relational oeprators when a > b.
+    // Check relational operators when a > b.
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::HW_ADDRESS,
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::HW_ADDRESS,
                                          "01FF02AC030B0707")));
                                          "01FF02AC030B0707")));
     EXPECT_FALSE(*id == *id2);
     EXPECT_FALSE(*id == *id2);
@@ -98,20 +98,20 @@ TEST(UserIdTest, duid_type) {
     EXPECT_EQ(id->getType(), UserId::DUID);
     EXPECT_EQ(id->getType(), UserId::DUID);
     EXPECT_TRUE(bytes == id->getId());
     EXPECT_TRUE(bytes == id->getId());
 
 
-    // Check relational oeprators when a == b.
+    // Check relational operators when a == b.
     UserIdPtr id2;
     UserIdPtr id2;
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::DUID, id->toText())));
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::DUID, id->toText())));
     EXPECT_TRUE(*id == *id2);
     EXPECT_TRUE(*id == *id2);
     EXPECT_FALSE(*id != *id2);
     EXPECT_FALSE(*id != *id2);
     EXPECT_FALSE(*id < *id2);
     EXPECT_FALSE(*id < *id2);
 
 
-    // Check relational oeprators when a < b.
+    // Check relational operators when a < b.
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::DUID, "01FF02AC030B0709")));
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::DUID, "01FF02AC030B0709")));
     EXPECT_FALSE(*id == *id2);
     EXPECT_FALSE(*id == *id2);
     EXPECT_TRUE(*id != *id2);
     EXPECT_TRUE(*id != *id2);
     EXPECT_TRUE(*id < *id2);
     EXPECT_TRUE(*id < *id2);
 
 
-    // Check relational oeprators when a > b.
+    // Check relational operators when a > b.
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::DUID, "01FF02AC030B0707")));
     ASSERT_NO_THROW(id2.reset(new UserId(UserId::DUID, "01FF02AC030B0707")));
     EXPECT_FALSE(*id == *id2);
     EXPECT_FALSE(*id == *id2);
     EXPECT_TRUE(*id != *id2);
     EXPECT_TRUE(*id != *id2);

+ 3 - 3
src/lib/asiodns/README

@@ -9,7 +9,7 @@ routines to be written in a straightfowrard step-step-step fashion rather
 than as a complex chain of separate handler functions.
 than as a complex chain of separate handler functions.
 
 
 Coroutine objects (i.e., UDPServer, TCPServer and IOFetch) are objects
 Coroutine objects (i.e., UDPServer, TCPServer and IOFetch) are objects
-with reenterable operator() members.  When an instance of one of these
+with reentrant operator() members.  When an instance of one of these
 classes is called as a function, it resumes at the position where it left
 classes is called as a function, it resumes at the position where it left
 off.  Thus, a UDPServer can issue an asynchronous I/O call and specify
 off.  Thus, a UDPServer can issue an asynchronous I/O call and specify
 itself as the handler object; when the call completes, the UDPServer
 itself as the handler object; when the call completes, the UDPServer
@@ -89,7 +89,7 @@ fetch logic:
            |
            |
       IOAsioSocket
       IOAsioSocket
            |
            |
-     +-----+-----+                
+     +-----+-----+
      |           |
      |           |
 UDPSocket    TCPSocket
 UDPSocket    TCPSocket
 
 
@@ -122,7 +122,7 @@ protocol to use.  The sequence is:
     if (! synchronous) {
     if (! synchronous) {
         YIELD;
         YIELD;
     }
     }
-    YIELD asyncSend(query)           // Send query 
+    YIELD asyncSend(query)           // Send query
     do {
     do {
         YIELD asyncReceive(response) // Read response
         YIELD asyncReceive(response) // Read response
     } while (! complete(response))
     } while (! complete(response))

+ 2 - 2
src/lib/asiolink/asio_wrapper.h

@@ -34,8 +34,8 @@
 // causes two instances of error_code which should have been equal to
 // causes two instances of error_code which should have been equal to
 // to not be equal.
 // to not be equal.
 //
 //
-// The problem disappers if either error handling code is not built header
-// only as this results in a single definiton of system_category() supplied
+// The problem disappears if either error handling code is not built header
+// only as this results in a single definition of system_category() supplied
 // by libboost_system; or the error handling code is not optimized.
 // by libboost_system; or the error handling code is not optimized.
 //
 //
 // We're doing the test here, rather than in configure to guard against the
 // We're doing the test here, rather than in configure to guard against the

+ 3 - 3
src/lib/asiolink/io_address.h

@@ -67,11 +67,11 @@ public:
 
 
     /// @brief Constructor for ip::address_v4 object.
     /// @brief Constructor for ip::address_v4 object.
     ///
     ///
-    /// This constructor is intented to be used when constructing
+    /// This constructor is intended to be used when constructing
     /// IPv4 address out of uint32_t type. Passed value must be in
     /// IPv4 address out of uint32_t type. Passed value must be in
     /// network byte order
     /// network byte order
     ///
     ///
-    /// @param v4address IPv4 address represnted by uint32_t
+    /// @param v4address IPv4 address represented by uint32_t
     IOAddress(uint32_t v4address);
     IOAddress(uint32_t v4address);
 
 
     /// \brief Convert the address to a string.
     /// \brief Convert the address to a string.
@@ -183,7 +183,7 @@ public:
     ///
     ///
     /// It is useful for comparing which address is bigger.
     /// It is useful for comparing which address is bigger.
     /// Operations within one protocol family are obvious.
     /// Operations within one protocol family are obvious.
-    /// Comparisons between v4 and v6 will allways return v4
+    /// Comparisons between v4 and v6 will always return v4
     /// being smaller. This follows boost::boost::asio::ip implementation
     /// being smaller. This follows boost::boost::asio::ip implementation
     bool lessThan(const IOAddress& other) const {
     bool lessThan(const IOAddress& other) const {
         if (this->getFamily() == other.getFamily()) {
         if (this->getFamily() == other.getFamily()) {

+ 3 - 3
src/lib/asiolink/tests/tcp_socket_unittest.cc

@@ -62,7 +62,7 @@ public:
         NONE = 4        ///< "Not set" state
         NONE = 4        ///< "Not set" state
     };
     };
 
 
-    /// \brief Minimim size of buffers
+    /// \brief Minimum size of buffers
     enum {
     enum {
         MIN_SIZE = (64 * 1024 + 2)          ///< 64kB + two bytes for a count
         MIN_SIZE = (64 * 1024 + 2)          ///< 64kB + two bytes for a count
     };
     };
@@ -149,7 +149,7 @@ public:
         return (ptr_->expected_);
         return (ptr_->expected_);
     }
     }
 
 
-    /// \brief Get offset intodData
+    /// \brief Get offset into data
     size_t& offset() {
     size_t& offset() {
         return (ptr_->offset_);
         return (ptr_->offset_);
     }
     }
@@ -418,7 +418,7 @@ TEST(TCPSocket, sequenceTest) {
     // Run the callbacks. Several options are possible depending on how ASIO
     // Run the callbacks. Several options are possible depending on how ASIO
     // is implemented and whether the message gets fragmented:
     // is implemented and whether the message gets fragmented:
     //
     //
-    // 1) The send handler may complete immediately, regardess of whether the
+    // 1) The send handler may complete immediately, regardless of whether the
     // data has been read by the client.  (This is the most likely.)
     // data has been read by the client.  (This is the most likely.)
     // 2) The send handler may only run after all the data has been read by
     // 2) The send handler may only run after all the data has been read by
     // the client. (This could happen if the client's TCP buffers were too
     // the client. (This could happen if the client's TCP buffers were too

+ 1 - 1
src/lib/cc/tests/data_file_unittests.cc

@@ -22,7 +22,7 @@ public:
 
 
     /// @brief writes specified text to a file
     /// @brief writes specified text to a file
     ///
     ///
-    /// That is an auxilliary funtion used in fileRead() tests.
+    /// That is an auxilliary function used in fileRead() tests.
     ///
     ///
     /// @param content text to be written to disk
     /// @param content text to be written to disk
     void writeFile(const std::string& content) {
     void writeFile(const std::string& content) {

+ 1 - 1
src/lib/dhcp/docsis3_option_defs.h

@@ -54,7 +54,7 @@ const OptionDefParams DOCSIS3_V6_DEFS[] = {
     { "device-id",      DOCSIS3_V6_DEVICE_ID, OPT_BINARY_TYPE, false, NO_RECORD_DEF, "" },
     { "device-id",      DOCSIS3_V6_DEVICE_ID, OPT_BINARY_TYPE, false, NO_RECORD_DEF, "" },
     { "time-offset",    DOCSIS3_V6_TIME_OFFSET, OPT_INT32_TYPE, false, NO_RECORD_DEF, "" },
     { "time-offset",    DOCSIS3_V6_TIME_OFFSET, OPT_INT32_TYPE, false, NO_RECORD_DEF, "" },
     { "cmts-cm-mac",    DOCSIS3_V6_CMTS_CM_MAC, OPT_BINARY_TYPE, false, NO_RECORD_DEF, "" }
     { "cmts-cm-mac",    DOCSIS3_V6_CMTS_CM_MAC, OPT_BINARY_TYPE, false, NO_RECORD_DEF, "" }
-    // @todo add definitions for all remaning options.
+    // @todo add definitions for all remaining options.
 };
 };
 
 
 /// Number of option definitions defined.
 /// Number of option definitions defined.

+ 4 - 4
src/lib/dhcp/iface_mgr.cc

@@ -68,7 +68,7 @@ Iface::closeSockets() {
 
 
 void
 void
 Iface::closeSockets(const uint16_t family) {
 Iface::closeSockets(const uint16_t family) {
-    // Check that the correect 'family' value has been specified.
+    // Check that the correct 'family' value has been specified.
     // The possible values are AF_INET or AF_INET6. Note that, in
     // The possible values are AF_INET or AF_INET6. Note that, in
     // the current code they are used to differentiate that the
     // the current code they are used to differentiate that the
     // socket is used to transmit IPv4 or IPv6 traffic. However,
     // socket is used to transmit IPv4 or IPv6 traffic. However,
@@ -937,7 +937,7 @@ Pkt4Ptr IfaceMgr::receive4(uint32_t timeout_sec, uint32_t timeout_usec /* = 0 */
     } else if (result < 0) {
     } else if (result < 0) {
         // In most cases we would like to know whether select() returned
         // In most cases we would like to know whether select() returned
         // an error because of a signal being received  or for some other
         // an error because of a signal being received  or for some other
-        // reasaon. This is because DHCP servers use signals to trigger
+        // reason. This is because DHCP servers use signals to trigger
         // certain actions, like reconfiguration or graceful shutdown.
         // certain actions, like reconfiguration or graceful shutdown.
         // By catching a dedicated exception the caller will know if the
         // By catching a dedicated exception the caller will know if the
         // error returned by the function is due to the reception of the
         // error returned by the function is due to the reception of the
@@ -1047,7 +1047,7 @@ Pkt6Ptr IfaceMgr::receive6(uint32_t timeout_sec, uint32_t timeout_usec /* = 0 */
     } else if (result < 0) {
     } else if (result < 0) {
         // In most cases we would like to know whether select() returned
         // In most cases we would like to know whether select() returned
         // an error because of a signal being received  or for some other
         // an error because of a signal being received  or for some other
-        // reasaon. This is because DHCP servers use signals to trigger
+        // reason. This is because DHCP servers use signals to trigger
         // certain actions, like reconfiguration or graceful shutdown.
         // certain actions, like reconfiguration or graceful shutdown.
         // By catching a dedicated exception the caller will know if the
         // By catching a dedicated exception the caller will know if the
         // error returned by the function is due to the reception of the
         // error returned by the function is due to the reception of the
@@ -1161,7 +1161,7 @@ IfaceMgr::getSocket(isc::dhcp::Pkt4 const& pkt) {
     }
     }
 
 
     const Iface::SocketCollection& socket_collection = iface->getSockets();
     const Iface::SocketCollection& socket_collection = iface->getSockets();
-    // A candidate being an end of the iterator marks that it is a begining of
+    // A candidate being an end of the iterator marks that it is a beginning of
     // the socket search and that the candidate needs to be set to the first
     // the socket search and that the candidate needs to be set to the first
     // socket found.
     // socket found.
     Iface::SocketCollection::const_iterator candidate = socket_collection.end();
     Iface::SocketCollection::const_iterator candidate = socket_collection.end();

+ 8 - 8
src/lib/dhcp/iface_mgr.h

@@ -58,7 +58,7 @@ public:
         isc::Exception(file, line, what) { };
         isc::Exception(file, line, what) { };
 };
 };
 
 
-/// @brief IfaceMgr exception thrown thrown when error occured during
+/// @brief IfaceMgr exception thrown thrown when error occurred during
 /// reading data from socket.
 /// reading data from socket.
 class SocketReadError : public Exception {
 class SocketReadError : public Exception {
 public:
 public:
@@ -66,7 +66,7 @@ public:
         isc::Exception(file, line, what) { };
         isc::Exception(file, line, what) { };
 };
 };
 
 
-/// @brief IfaceMgr exception thrown thrown when error occured during
+/// @brief IfaceMgr exception thrown thrown when error occurred during
 /// sedning data through socket.
 /// sedning data through socket.
 class SocketWriteError : public Exception {
 class SocketWriteError : public Exception {
 public:
 public:
@@ -303,7 +303,7 @@ public:
     /// @brief Check if the interface has the specified address assigned.
     /// @brief Check if the interface has the specified address assigned.
     ///
     ///
     /// @param address Address to be checked.
     /// @param address Address to be checked.
-    /// @return true if address is assigned to the intefrace, false otherwise.
+    /// @return true if address is assigned to the interface, false otherwise.
     bool hasAddress(const isc::asiolink::IOAddress& address) const;
     bool hasAddress(const isc::asiolink::IOAddress& address) const;
 
 
     /// @brief Adds an address to an interface.
     /// @brief Adds an address to an interface.
@@ -438,7 +438,7 @@ protected:
     /// Network interface name.
     /// Network interface name.
     std::string name_;
     std::string name_;
 
 
-    /// Interface index (a value that uniquely indentifies an interface).
+    /// Interface index (a value that uniquely identifies an interface).
     int ifindex_;
     int ifindex_;
 
 
     /// List of assigned addresses.
     /// List of assigned addresses.
@@ -724,7 +724,7 @@ public:
     /// (in microseconds)
     /// (in microseconds)
     ///
     ///
     /// @throw isc::BadValue if timeout_usec is greater than one million
     /// @throw isc::BadValue if timeout_usec is greater than one million
-    /// @throw isc::dhcp::SocketReadError if error occured when receiving a
+    /// @throw isc::dhcp::SocketReadError if error occurred when receiving a
     /// packet.
     /// packet.
     /// @throw isc::dhcp::SignalInterruptOnSelect when a call to select() is
     /// @throw isc::dhcp::SignalInterruptOnSelect when a call to select() is
     /// interrupted by a signal.
     /// interrupted by a signal.
@@ -746,7 +746,7 @@ public:
     /// (in microseconds)
     /// (in microseconds)
     ///
     ///
     /// @throw isc::BadValue if timeout_usec is greater than one million
     /// @throw isc::BadValue if timeout_usec is greater than one million
-    /// @throw isc::dhcp::SocketReadError if error occured when receiving a
+    /// @throw isc::dhcp::SocketReadError if error occurred when receiving a
     /// packet.
     /// packet.
     /// @throw isc::dhcp::SignalInterruptOnSelect when a call to select() is
     /// @throw isc::dhcp::SignalInterruptOnSelect when a call to select() is
     /// interrupted by a signal.
     /// interrupted by a signal.
@@ -1010,7 +1010,7 @@ public:
     /// @throw PacketFilterChangeDenied if there are open IPv4 sockets.
     /// @throw PacketFilterChangeDenied if there are open IPv4 sockets.
     void setPacketFilter(const PktFilterPtr& packet_filter);
     void setPacketFilter(const PktFilterPtr& packet_filter);
 
 
-    /// @brief Set packet filter object to handle sending and receving DHCPv6
+    /// @brief Set packet filter object to handle sending and receiving DHCPv6
     /// messages.
     /// messages.
     ///
     ///
     /// Packet filter objects provide means for the @c IfaceMgr to open sockets
     /// Packet filter objects provide means for the @c IfaceMgr to open sockets
@@ -1043,7 +1043,7 @@ public:
     /// implementation that supports this feature on a particular OS.
     /// implementation that supports this feature on a particular OS.
     /// If there isn't, the PktFilterInet object will be set. If the
     /// If there isn't, the PktFilterInet object will be set. If the
     /// argument is set to 'false', PktFilterInet object instance will
     /// argument is set to 'false', PktFilterInet object instance will
-    /// be set as the Packet Filter regrdaless of the OS type.
+    /// be set as the Packet Filter regardless of the OS type.
     ///
     ///
     /// @param direct_response_desired specifies whether the Packet Filter
     /// @param direct_response_desired specifies whether the Packet Filter
     /// object being set should support direct traffic to the host
     /// object being set should support direct traffic to the host

+ 1 - 1
src/lib/dhcp/iface_mgr_error_handler.h

@@ -23,7 +23,7 @@
 /// cases it is expected that the exception is thrown instead. A possible
 /// cases it is expected that the exception is thrown instead. A possible
 /// solution would be to enclose this conditional behavior in a function.
 /// solution would be to enclose this conditional behavior in a function.
 /// However, despite the hate for macros, the macro seems to be a bit
 /// However, despite the hate for macros, the macro seems to be a bit
-/// better solution in this case as it allows to convenietly pass an
+/// better solution in this case as it allows to conveniently pass an
 /// error string in a stream (not as a string).
 /// error string in a stream (not as a string).
 ///
 ///
 /// @param ex_type Exception to be thrown if error_handler is NULL.
 /// @param ex_type Exception to be thrown if error_handler is NULL.

+ 2 - 2
src/lib/dhcp/libdhcp++.h

@@ -298,7 +298,7 @@ public:
     /// @brief Removes runtime option definitions.
     /// @brief Removes runtime option definitions.
     static void clearRuntimeOptionDefs();
     static void clearRuntimeOptionDefs();
 
 
-    /// @brief Reverts uncommited changes to runtime option definitions.
+    /// @brief Reverts uncommitted changes to runtime option definitions.
     static void revertRuntimeOptionDefs();
     static void revertRuntimeOptionDefs();
 
 
     /// @brief Commits runtime option definitions.
     /// @brief Commits runtime option definitions.
@@ -368,7 +368,7 @@ private:
     /// Container for v6 vendor option definitions
     /// Container for v6 vendor option definitions
     static VendorOptionDefContainers vendor6_defs_;
     static VendorOptionDefContainers vendor6_defs_;
 
 
-    /// Container for additional option defnitions created in runtime.
+    /// Container for additional option definitions created in runtime.
     static util::StagedValue<OptionDefSpaceContainer> runtime_option_defs_;
     static util::StagedValue<OptionDefSpaceContainer> runtime_option_defs_;
 };
 };
 
 

+ 2 - 2
src/lib/dhcp/opaque_data_tuple.h

@@ -114,7 +114,7 @@ public:
     /// @brief Assigns data to the tuple.
     /// @brief Assigns data to the tuple.
     ///
     ///
     /// This function replaces existing data in the tuple with the new data.
     /// This function replaces existing data in the tuple with the new data.
-    /// If the speficified buffer length is greater than the size of the buffer,
+    /// If the specified buffer length is greater than the size of the buffer,
     /// the behavior of this function is undefined.
     /// the behavior of this function is undefined.
     /// @param data Iterator pointing to the beginning of the buffer being
     /// @param data Iterator pointing to the beginning of the buffer being
     /// assigned. The source buffer may be an STL object or an array of
     /// assigned. The source buffer may be an STL object or an array of
@@ -179,7 +179,7 @@ public:
     /// and writes it to the specified buffer. The new are appended to the
     /// and writes it to the specified buffer. The new are appended to the
     /// buffer, so as data existing in the buffer is preserved.
     /// buffer, so as data existing in the buffer is preserved.
     ///
     ///
-    /// The tuple is considered malformed if one of the follwing occurs:
+    /// The tuple is considered malformed if one of the following occurs:
     /// - the size of the data is 0 (tuple is empty),
     /// - the size of the data is 0 (tuple is empty),
     /// - the size of the data is greater than 255 and the size of the length
     /// - the size of the data is greater than 255 and the size of the length
     /// field is 1 byte (see @c LengthFieldType).
     /// field is 1 byte (see @c LengthFieldType).

+ 8 - 8
src/lib/dhcp/option4_client_fqdn.cc

@@ -52,9 +52,9 @@ public:
 
 
     /// @brief Constructor, from wire data.
     /// @brief Constructor, from wire data.
     ///
     ///
-    /// @param first An iterator pointing to the begining of the option data
+    /// @param first An iterator pointing to the beginning of the option data
     /// in the wire format.
     /// in the wire format.
-    /// @param last An iterator poiting to the end of the option data in the
+    /// @param last An iterator pointing to the end of the option data in the
     /// wire format.
     /// wire format.
     Option4ClientFqdnImpl(OptionBufferConstIter first,
     Option4ClientFqdnImpl(OptionBufferConstIter first,
                           OptionBufferConstIter last);
                           OptionBufferConstIter last);
@@ -92,9 +92,9 @@ public:
 
 
     /// @brief Parse the Option provided in the wire format.
     /// @brief Parse the Option provided in the wire format.
     ///
     ///
-    /// @param first An iterator pointing to the begining of the option data
+    /// @param first An iterator pointing to the beginning of the option data
     /// in the wire format.
     /// in the wire format.
-    /// @param last An iterator poiting to the end of the option data in the
+    /// @param last An iterator pointing to the end of the option data in the
     /// wire format.
     /// wire format.
     void parseWireData(OptionBufferConstIter first,
     void parseWireData(OptionBufferConstIter first,
                        OptionBufferConstIter last);
                        OptionBufferConstIter last);
@@ -106,9 +106,9 @@ public:
 
 
     /// @brief Parse domain-name emcoded in the deprecated ASCII format.
     /// @brief Parse domain-name emcoded in the deprecated ASCII format.
     ///
     ///
-    /// @param first An iterator pointing to the begining of the option data
+    /// @param first An iterator pointing to the beginning of the option data
     /// where domain-name is stored.
     /// where domain-name is stored.
-    /// @param last An iterator poiting to the end of the option data where
+    /// @param last An iterator pointing to the end of the option data where
     /// domain-name is stored.
     /// domain-name is stored.
     void parseASCIIDomainName(OptionBufferConstIter first,
     void parseASCIIDomainName(OptionBufferConstIter first,
                               OptionBufferConstIter last);
                               OptionBufferConstIter last);
@@ -121,7 +121,7 @@ Option4ClientFqdnImpl(const uint8_t flags,
                       const std::string& domain_name,
                       const std::string& domain_name,
                       // cppcheck 1.57 complains that const enum value is not passed
                       // cppcheck 1.57 complains that const enum value is not passed
                       // by reference. Note that, it accepts the non-const enum value
                       // by reference. Note that, it accepts the non-const enum value
-                      // to be passed by value. In both cases it is unneccessary to
+                      // to be passed by value. In both cases it is unnecessary to
                       // pass the enum by reference.
                       // pass the enum by reference.
                       // cppcheck-suppress passedByValue
                       // cppcheck-suppress passedByValue
                       const Option4ClientFqdn::DomainNameType name_type)
                       const Option4ClientFqdn::DomainNameType name_type)
@@ -188,7 +188,7 @@ Option4ClientFqdnImpl::
 setDomainName(const std::string& domain_name,
 setDomainName(const std::string& domain_name,
               // cppcheck 1.57 complains that const enum value is not passed
               // cppcheck 1.57 complains that const enum value is not passed
               // by reference. Note that, it accepts the non-const enum
               // by reference. Note that, it accepts the non-const enum
-              // to be passed by value. In both cases it is unneccessary to
+              // to be passed by value. In both cases it is unnecessary to
               // pass the enum by reference.
               // pass the enum by reference.
               // cppcheck-suppress passedByValue
               // cppcheck-suppress passedByValue
               const Option4ClientFqdn::DomainNameType name_type) {
               const Option4ClientFqdn::DomainNameType name_type) {

+ 4 - 4
src/lib/dhcp/option6_client_fqdn.cc

@@ -47,9 +47,9 @@ public:
 
 
     /// @brief Constructor, from wire data.
     /// @brief Constructor, from wire data.
     ///
     ///
-    /// @param first An iterator pointing to the begining of the option data
+    /// @param first An iterator pointing to the beginning of the option data
     /// in the wire format.
     /// in the wire format.
-    /// @param last An iterator poiting to the end of the option data in the
+    /// @param last An iterator pointing to the end of the option data in the
     /// wire format.
     /// wire format.
     Option6ClientFqdnImpl(OptionBufferConstIter first,
     Option6ClientFqdnImpl(OptionBufferConstIter first,
                           OptionBufferConstIter last);
                           OptionBufferConstIter last);
@@ -87,9 +87,9 @@ public:
 
 
     /// @brief Parse the Option provided in the wire format.
     /// @brief Parse the Option provided in the wire format.
     ///
     ///
-    /// @param first An iterator pointing to the begining of the option data
+    /// @param first An iterator pointing to the beginning of the option data
     /// in the wire format.
     /// in the wire format.
-    /// @param last An iterator poiting to the end of the option data in the
+    /// @param last An iterator pointing to the end of the option data in the
     /// wire format.
     /// wire format.
     void parseWireData(OptionBufferConstIter first,
     void parseWireData(OptionBufferConstIter first,
                        OptionBufferConstIter last);
                        OptionBufferConstIter last);

+ 1 - 1
src/lib/dhcp/option6_iaprefix.h

@@ -44,7 +44,7 @@ namespace dhcp {
 /// that the prefixes from the string are created locally (not received over the
 /// that the prefixes from the string are created locally (not received over the
 /// wire) and should be validated before the option is created. If we wanted
 /// wire) and should be validated before the option is created. If we wanted
 /// to set non-significant bits to 0 when the prefix is created from the textual
 /// to set non-significant bits to 0 when the prefix is created from the textual
-/// format it would have some peformance implications, because the option would
+/// format it would have some performance implications, because the option would
 /// need to be turned into wire format, appropriate bits set to 0 and then
 /// need to be turned into wire format, appropriate bits set to 0 and then
 /// option would need to be created again from the wire format. We may consider
 /// option would need to be created again from the wire format. We may consider
 /// doing it if we find a use case where it is required.
 /// doing it if we find a use case where it is required.

+ 2 - 2
src/lib/dhcp/option_custom.cc

@@ -523,7 +523,7 @@ void
 OptionCustom::writeFqdn(const std::string& fqdn, const uint32_t index) {
 OptionCustom::writeFqdn(const std::string& fqdn, const uint32_t index) {
     checkIndex(index);
     checkIndex(index);
 
 
-    // Create a temporay buffer where the FQDN will be written.
+    // Create a temporary buffer where the FQDN will be written.
     OptionBuffer buf;
     OptionBuffer buf;
     // Try to write to the temporary buffer rather than to the
     // Try to write to the temporary buffer rather than to the
     // buffers_ member directly guarantees that we don't modify
     // buffers_ member directly guarantees that we don't modify
@@ -531,7 +531,7 @@ OptionCustom::writeFqdn(const std::string& fqdn, const uint32_t index) {
     // is valid.
     // is valid.
     OptionDataTypeUtil::writeFqdn(fqdn, buf);
     OptionDataTypeUtil::writeFqdn(fqdn, buf);
     // If we got to this point it means that the FQDN is valid.
     // If we got to this point it means that the FQDN is valid.
-    // We can move the contents of the teporary buffer to the
+    // We can move the contents of the temporary buffer to the
     // target buffer.
     // target buffer.
     std::swap(buffers_[index], buf);
     std::swap(buffers_[index], buf);
 }
 }

+ 1 - 1
src/lib/dhcp/option_data_types.h

@@ -341,7 +341,7 @@ public:
     /// @brief Get data type buffer length.
     /// @brief Get data type buffer length.
     ///
     ///
     /// This function returns the size of a particular data type.
     /// This function returns the size of a particular data type.
-    /// Values retured by this function correspond to the data type
+    /// Values returned by this function correspond to the data type
     /// sizes defined in OptionDataTypeTraits (IPV4_ADDRESS_TYPE and
     /// sizes defined in OptionDataTypeTraits (IPV4_ADDRESS_TYPE and
     /// IPV6_ADDRESS_TYPE are exceptions here) so they rather indicate
     /// IPV6_ADDRESS_TYPE are exceptions here) so they rather indicate
     /// the fixed length of the data being written into the buffer,
     /// the fixed length of the data being written into the buffer,

+ 1 - 1
src/lib/dhcp/option_definition.cc

@@ -438,7 +438,7 @@ OptionDefinition::haveOpaqueDataTuplesFormat() const {
 
 
 bool
 bool
 OptionDefinition::convertToBool(const std::string& value_str) const {
 OptionDefinition::convertToBool(const std::string& value_str) const {
-    // Case insensitve check that the input is one of: "true" or "false".
+    // Case-insensitive check that the input is one of: "true" or "false".
     if (boost::iequals(value_str, "true")) {
     if (boost::iequals(value_str, "true")) {
         return (true);
         return (true);
 
 

+ 1 - 1
src/lib/dhcp/option_definition.h

@@ -102,7 +102,7 @@ class OptionIntArray;
 /// option type is used. In such cases the data field types within the record
 /// option type is used. In such cases the data field types within the record
 /// are specified using \ref OptionDefinition::addRecordField.
 /// are specified using \ref OptionDefinition::addRecordField.
 ///
 ///
-/// When the OptionDefinition object has been sucessfully created, it can be
+/// When the OptionDefinition object has been successfully created, it can be
 /// queried to return the appropriate option factory function for the specified
 /// queried to return the appropriate option factory function for the specified
 /// specified option format. There are a number of "standard" factory functions
 /// specified option format. There are a number of "standard" factory functions
 /// that cover well known (common) formats.  If the particular format does not
 /// that cover well known (common) formats.  If the particular format does not

+ 1 - 1
src/lib/dhcp/option_space_container.h

@@ -71,7 +71,7 @@ public:
     /// @return a list of option spaces.
     /// @return a list of option spaces.
     ///
     ///
     /// @todo This function is likely to be removed once
     /// @todo This function is likely to be removed once
-    /// we create a structore of OptionSpaces defined
+    /// we create a structure of OptionSpaces defined
     /// through the configuration manager.
     /// through the configuration manager.
     std::list<Selector> getOptionSpaceNames() const {
     std::list<Selector> getOptionSpaceNames() const {
         std::list<Selector> names;
         std::list<Selector> names;

+ 1 - 1
src/lib/dhcp/option_string.h

@@ -89,7 +89,7 @@ public:
     ///
     ///
     /// This function decodes option data from the provided buffer. Note that
     /// This function decodes option data from the provided buffer. Note that
     /// it does not decode the option code and length, so the iterators must
     /// it does not decode the option code and length, so the iterators must
-    /// point to the begining and end of the option payload respectively.
+    /// point to the beginning and end of the option payload respectively.
     /// The size of the decoded payload must be at least 1 byte.
     /// The size of the decoded payload must be at least 1 byte.
     ///
     ///
     /// @param begin the iterator pointing to the option payload.
     /// @param begin the iterator pointing to the option payload.

+ 1 - 1
src/lib/dhcp/option_vendor_class.cc

@@ -167,7 +167,7 @@ OptionVendorClass::toText(int indent) const {
 
 
     // Apply indentation
     // Apply indentation
     s << std::string(indent, ' ');
     s << std::string(indent, ' ');
-    // Print type, length and first occurence of enterprise id.
+    // Print type, length and first occurrence of enterprise id.
     s << "type=" << getType() << ", len=" << len() - getHeaderLen() << ", "
     s << "type=" << getType() << ", len=" << len() - getHeaderLen() << ", "
         " enterprise id=0x" << std::hex << getVendorId() << std::dec;
         " enterprise id=0x" << std::hex << getVendorId() << std::dec;
     // Iterate over all tuples and print their size and contents.
     // Iterate over all tuples and print their size and contents.

+ 1 - 1
src/lib/dhcp/option_vendor_class.h

@@ -24,7 +24,7 @@ namespace dhcp {
 /// The format of DHCPv6 Vendor Class option (16) is described in section 22.16
 /// The format of DHCPv6 Vendor Class option (16) is described in section 22.16
 /// of RFC3315 and the format of the DHCPv4 V-I Vendor Class option (124) is
 /// of RFC3315 and the format of the DHCPv4 V-I Vendor Class option (124) is
 /// described in section 3 of RFC3925. Each of these options carries enterprise
 /// described in section 3 of RFC3925. Each of these options carries enterprise
-/// id followed by the collection of tuples carring opaque data. A single tuple
+/// id followed by the collection of tuples carrying opaque data. A single tuple
 /// consists of the field holding opaque data length and the actual data.
 /// consists of the field holding opaque data length and the actual data.
 /// In case of the DHCPv4 V-I Vendor Class each tuple is preceded by the
 /// In case of the DHCPv4 V-I Vendor Class each tuple is preceded by the
 /// 4-byte long enterprise id. Also, the field which carries the length of
 /// 4-byte long enterprise id. Also, the field which carries the length of

+ 1 - 1
src/lib/dhcp/pkt6.cc

@@ -327,7 +327,7 @@ Pkt6::packUDP() {
 
 
         }
         }
 
 
-        // DHCPv6 header: message-type (1 octect) + transaction id (3 octets)
+        // DHCPv6 header: message-type (1 octet) + transaction id (3 octets)
         buffer_out_.writeUint8(msg_type_);
         buffer_out_.writeUint8(msg_type_);
         // store 3-octet transaction-id
         // store 3-octet transaction-id
         buffer_out_.writeUint8( (transid_ >> 16) & 0xff );
         buffer_out_.writeUint8( (transid_ >> 16) & 0xff );

+ 7 - 7
src/lib/dhcp/pkt_filter_bpf.cc

@@ -26,7 +26,7 @@ const unsigned int MAX_BPF_OPEN_ATTEMPTS = 100;
 /// received on local loopback interface.
 /// received on local loopback interface.
 const unsigned int BPF_LOCAL_LOOPBACK_HEADER_LEN = 4;
 const unsigned int BPF_LOCAL_LOOPBACK_HEADER_LEN = 4;
 
 
-/// The following structure defines a Berkely Packet Filter program to perform
+/// The following structure defines a Berkeley Packet Filter program to perform
 /// packet filtering. The program operates on Ethernet packets.  To help with
 /// packet filtering. The program operates on Ethernet packets.  To help with
 /// interpretation of the program, for the types of Ethernet packets we are
 /// interpretation of the program, for the types of Ethernet packets we are
 /// interested in, the header layout is:
 /// interested in, the header layout is:
@@ -229,7 +229,7 @@ PktFilterBPF::openSocket(Iface& iface,
 
 
     // Open fallback socket first. If it fails, it will give us an indication
     // Open fallback socket first. If it fails, it will give us an indication
     // that there is another service (perhaps DHCP server) running.
     // that there is another service (perhaps DHCP server) running.
-    // The function will throw an exception and effectivelly cease opening
+    // The function will throw an exception and effectively cease opening
     // the BPF device below.
     // the BPF device below.
     int fallback = openFallbackSocket(addr, port);
     int fallback = openFallbackSocket(addr, port);
 
 
@@ -310,7 +310,7 @@ PktFilterBPF::openSocket(Iface& iface,
         close(fallback);
         close(fallback);
         close(sock);
         close(sock);
         isc_throw(SocketConfigError, "Unable to obtain the required"
         isc_throw(SocketConfigError, "Unable to obtain the required"
-                  " buffer legth for reads from BPF device");
+                  " buffer length for reads from BPF device");
     }
     }
 
 
     if (buf_len < sizeof(bpf_hdr)) {
     if (buf_len < sizeof(bpf_hdr)) {
@@ -355,14 +355,14 @@ PktFilterBPF::openSocket(Iface& iface,
     }
     }
 
 
     // Configure the BPF device to use the immediate mode. This ensures
     // Configure the BPF device to use the immediate mode. This ensures
-    // that the read function returns immediatelly, instead of waiting
+    // that the read function returns immediately, instead of waiting
     // for the kernel to fill up the buffer, which would likely cause
     // for the kernel to fill up the buffer, which would likely cause
     // read hangs.
     // read hangs.
     int flag = 1;
     int flag = 1;
     if (ioctl(sock, BIOCIMMEDIATE, &flag) < 0) {
     if (ioctl(sock, BIOCIMMEDIATE, &flag) < 0) {
         close(fallback);
         close(fallback);
         close(sock);
         close(sock);
-        isc_throw(SocketConfigError, "Failed to set promiscious mode for"
+        isc_throw(SocketConfigError, "Failed to set promiscuous mode for"
                   " BPF device");
                   " BPF device");
     }
     }
 
 
@@ -411,10 +411,10 @@ PktFilterBPF::receive(Iface& iface, const SocketInfo& socket_info) {
     datalen = read(socket_info.sockfd_, iface.getReadBuffer(),
     datalen = read(socket_info.sockfd_, iface.getReadBuffer(),
                    iface.getReadBufferSize());
                    iface.getReadBufferSize());
     // If negative value is returned by read(), it indicates that an
     // If negative value is returned by read(), it indicates that an
-    // error occured. If returned value is 0, no data was read from the
+    // error occurred. If returned value is 0, no data was read from the
     // socket. In both cases something has gone wrong, because we expect
     // socket. In both cases something has gone wrong, because we expect
     // that a chunk of data is there. We signal the lack of data by
     // that a chunk of data is there. We signal the lack of data by
-    // returing an empty packet.
+    // returning an empty packet.
     if (datalen <= 0) {
     if (datalen <= 0) {
         return Pkt4Ptr();
         return Pkt4Ptr();
     }
     }

+ 2 - 2
src/lib/dhcp/pkt_filter_bpf.h

@@ -46,7 +46,7 @@ namespace dhcp {
 /// In nutshell, the BPF device is created by opening the file /dev/bpf%d
 /// In nutshell, the BPF device is created by opening the file /dev/bpf%d
 /// where %d is a number. The BPF device is configured by issuing ioctl
 /// where %d is a number. The BPF device is configured by issuing ioctl
 /// commands listed here: http://www.freebsd.org/cgi/man.cgi?bpf(4).
 /// commands listed here: http://www.freebsd.org/cgi/man.cgi?bpf(4).
-/// The specific configuration used by Kea DHCP server is decribed in
+/// The specific configuration used by Kea DHCP server is described in
 /// documentation of @c PktFilterBPF::openSocket.
 /// documentation of @c PktFilterBPF::openSocket.
 ///
 ///
 /// Use of BPF requires Kea to encode and decode the datalink and network
 /// Use of BPF requires Kea to encode and decode the datalink and network
@@ -73,7 +73,7 @@ public:
     /// - set filter program to receive DHCP messages encapsulated in UDP
     /// - set filter program to receive DHCP messages encapsulated in UDP
     /// packets
     /// packets
     /// - set immediate mode which causes the read function to return
     /// - set immediate mode which causes the read function to return
-    /// immediatelly and do not wait for the whole read buffer to be filled
+    /// immediately and do not wait for the whole read buffer to be filled
     /// by the kernel (to avoid hangs)
     /// by the kernel (to avoid hangs)
     ///
     ///
     /// It also obtains the following configuration from the kernel:
     /// It also obtains the following configuration from the kernel:

+ 4 - 4
src/lib/dhcp/pkt_filter_inet.h

@@ -15,7 +15,7 @@ namespace dhcp {
 
 
 /// @brief Packet handling class using AF_INET socket family
 /// @brief Packet handling class using AF_INET socket family
 ///
 ///
-/// This class provides methods to send and recive packet via socket using
+/// This class provides methods to send and receive packet via socket using
 /// AF_INET family and SOCK_DGRAM type.
 /// AF_INET family and SOCK_DGRAM type.
 class PktFilterInet : public PktFilter {
 class PktFilterInet : public PktFilter {
 public:
 public:
@@ -28,7 +28,7 @@ public:
     /// @brief Check if packet can be sent to the host without address directly.
     /// @brief Check if packet can be sent to the host without address directly.
     ///
     ///
     /// This Packet Filter sends packets through AF_INET datagram sockets, so
     /// This Packet Filter sends packets through AF_INET datagram sockets, so
-    /// it can't inject the HW address of the destionation host into the packet.
+    /// it can't inject the HW address of the destination host into the packet.
     /// Therefore this class does not support direct responses.
     /// Therefore this class does not support direct responses.
     ///
     ///
     /// @return false always.
     /// @return false always.
@@ -61,7 +61,7 @@ public:
     /// @return Received packet
     /// @return Received packet
     /// @throw isc::dhcp::SocketReadError if an error occurs during reception
     /// @throw isc::dhcp::SocketReadError if an error occurs during reception
     /// of the packet.
     /// of the packet.
-    /// @throw An execption thrown by the isc::dhcp::Pkt4 object if DHCPv4
+    /// @throw An exception thrown by the isc::dhcp::Pkt4 object if DHCPv4
     /// message parsing fails.
     /// message parsing fails.
     virtual Pkt4Ptr receive(Iface& iface, const SocketInfo& socket_info);
     virtual Pkt4Ptr receive(Iface& iface, const SocketInfo& socket_info);
 
 
@@ -72,7 +72,7 @@ public:
     /// @param pkt packet to be sent
     /// @param pkt packet to be sent
     ///
     ///
     /// @return result of sending a packet. It is 0 if successful.
     /// @return result of sending a packet. It is 0 if successful.
-    /// @throw isc::dhcp::SocketWriteError if an error occures during sending
+    /// @throw isc::dhcp::SocketWriteError if an error occurs during sending
     /// a DHCP message through the socket.
     /// a DHCP message through the socket.
     virtual int send(const Iface& iface, uint16_t sockfd,
     virtual int send(const Iface& iface, uint16_t sockfd,
                      const Pkt4Ptr& pkt);
                      const Pkt4Ptr& pkt);

+ 3 - 3
src/lib/dhcp/pkt_filter_inet6.h

@@ -41,7 +41,7 @@ public:
     /// group.
     /// group.
     ///
     ///
     /// @return A structure describing a primary and fallback socket.
     /// @return A structure describing a primary and fallback socket.
-    /// @throw isc::dhcp::SocketConfigError if error occured when opening
+    /// @throw isc::dhcp::SocketConfigError if error occurred when opening
     /// or configuring a socket.
     /// or configuring a socket.
     virtual SocketInfo openSocket(const Iface& iface,
     virtual SocketInfo openSocket(const Iface& iface,
                                   const isc::asiolink::IOAddress& addr,
                                   const isc::asiolink::IOAddress& addr,
@@ -69,7 +69,7 @@ public:
 
 
     /// @brief Sends DHCPv6 message through a specified interface and socket.
     /// @brief Sends DHCPv6 message through a specified interface and socket.
     ///
     ///
-    /// Thie function sends a DHCPv6 message through a specified interface and
+    /// The function sends a DHCPv6 message through a specified interface and
     /// socket. In general, there may be multiple sockets open on a single
     /// socket. In general, there may be multiple sockets open on a single
     /// interface as a single interface may have multiple IPv6 addresses.
     /// interface as a single interface may have multiple IPv6 addresses.
     ///
     ///
@@ -78,7 +78,7 @@ public:
     /// @param pkt A packet to be sent.
     /// @param pkt A packet to be sent.
     ///
     ///
     /// @return A result of sending the message. It is 0 if successful.
     /// @return A result of sending the message. It is 0 if successful.
-    /// @throw isc::dhcp::SocketWriteError if error occured when sending a
+    /// @throw isc::dhcp::SocketWriteError if error occurred when sending a
     /// packet.
     /// packet.
     virtual int send(const Iface& iface, uint16_t sockfd,
     virtual int send(const Iface& iface, uint16_t sockfd,
                      const Pkt6Ptr& pkt);
                      const Pkt6Ptr& pkt);

+ 4 - 4
src/lib/dhcp/pkt_filter_lpf.cc

@@ -21,7 +21,7 @@ namespace {
 
 
 using namespace isc::dhcp;
 using namespace isc::dhcp;
 
 
-/// The following structure defines a Berkely Packet Filter program to perform
+/// The following structure defines a Berkeley Packet Filter program to perform
 /// packet filtering. The program operates on Ethernet packets.  To help with
 /// packet filtering. The program operates on Ethernet packets.  To help with
 /// interpretation of the program, for the types of Ethernet packets we are
 /// interpretation of the program, for the types of Ethernet packets we are
 /// interested in, the header layout is:
 /// interested in, the header layout is:
@@ -136,7 +136,7 @@ PktFilterLPF::openSocket(Iface& iface,
 
 
     // Open fallback socket first. If it fails, it will give us an indication
     // Open fallback socket first. If it fails, it will give us an indication
     // that there is another service (perhaps DHCP server) running.
     // that there is another service (perhaps DHCP server) running.
-    // The function will throw an exception and effectivelly cease opening
+    // The function will throw an exception and effectively cease opening
     // raw socket below.
     // raw socket below.
     int fallback = openFallbackSocket(addr, port);
     int fallback = openFallbackSocket(addr, port);
 
 
@@ -227,10 +227,10 @@ PktFilterLPF::receive(Iface& iface, const SocketInfo& socket_info) {
     // have to get the data from the raw socket too.
     // have to get the data from the raw socket too.
     int data_len = read(socket_info.sockfd_, raw_buf, sizeof(raw_buf));
     int data_len = read(socket_info.sockfd_, raw_buf, sizeof(raw_buf));
     // If negative value is returned by read(), it indicates that an
     // If negative value is returned by read(), it indicates that an
-    // error occured. If returned value is 0, no data was read from the
+    // error occurred. If returned value is 0, no data was read from the
     // socket. In both cases something has gone wrong, because we expect
     // socket. In both cases something has gone wrong, because we expect
     // that a chunk of data is there. We signal the lack of data by
     // that a chunk of data is there. We signal the lack of data by
-    // returing an empty packet.
+    // returning an empty packet.
     if (data_len <= 0) {
     if (data_len <= 0) {
         return Pkt4Ptr();
         return Pkt4Ptr();
     }
     }

+ 1 - 1
src/lib/dhcp/pkt_filter_lpf.h

@@ -16,7 +16,7 @@ namespace dhcp {
 
 
 /// @brief Packet handling class using Linux Packet Filtering
 /// @brief Packet handling class using Linux Packet Filtering
 ///
 ///
-/// This class provides methods to send and recive DHCPv4 messages using raw
+/// This class provides methods to send and receive DHCPv4 messages using raw
 /// sockets and Linux Packet Filtering. It is used by @c isc::dhcp::IfaceMgr
 /// sockets and Linux Packet Filtering. It is used by @c isc::dhcp::IfaceMgr
 /// to send DHCPv4 messages to the hosts which don't have an IPv4 address
 /// to send DHCPv4 messages to the hosts which don't have an IPv4 address
 /// assigned yet.
 /// assigned yet.

+ 1 - 1
src/lib/dhcp/protocol_util.h

@@ -15,7 +15,7 @@
 namespace isc {
 namespace isc {
 namespace dhcp {
 namespace dhcp {
 
 
-/// @brief Exception thrown when error occured during parsing packet's headers.
+/// @brief Exception thrown when error occurred during parsing packet's headers.
 ///
 ///
 /// This exception is thrown when parsing link, Internet or Transport layer
 /// This exception is thrown when parsing link, Internet or Transport layer
 /// header has failed.
 /// header has failed.

+ 3 - 3
src/lib/dhcp/std_option_defs.h

@@ -215,7 +215,7 @@ const OptionDefParams STANDARD_V4_OPTION_DEFINITIONS[] = {
     { "vivso-suboptions", DHO_VIVSO_SUBOPTIONS, OPT_UINT32_TYPE,
     { "vivso-suboptions", DHO_VIVSO_SUBOPTIONS, OPT_UINT32_TYPE,
       false, NO_RECORD_DEF, "" }
       false, NO_RECORD_DEF, "" }
 
 
-        // @todo add definitions for all remaning options.
+        // @todo add definitions for all remaining options.
 };
 };
 
 
 /// Number of option definitions defined.
 /// Number of option definitions defined.
@@ -269,9 +269,9 @@ RECORD_DECL(CLIENT_NII_RECORDS, OPT_UINT8_TYPE, OPT_UINT8_TYPE, OPT_UINT8_TYPE);
 ///
 ///
 /// @warning in this array, the initializers are provided for all
 /// @warning in this array, the initializers are provided for all
 /// OptionDefParams struct's members despite initializers for
 /// OptionDefParams struct's members despite initializers for
-/// 'records' and 'record_size' could be ommited for entries for
+/// 'records' and 'record_size' could be omitted for entries for
 /// which 'type' does not equal to OPT_RECORD_TYPE. If initializers
 /// which 'type' does not equal to OPT_RECORD_TYPE. If initializers
-/// are ommitted the corresponding values should default to 0.
+/// are omitted the corresponding values should default to 0.
 /// This however does not work on Solaris (GCC) which issues a
 /// This however does not work on Solaris (GCC) which issues a
 /// warning about lack of initializers for some struct members
 /// warning about lack of initializers for some struct members
 /// causing build to fail.
 /// causing build to fail.

+ 1 - 1
src/lib/dhcp/tests/duid_factory_unittest.cc

@@ -347,7 +347,7 @@ TEST_F(DUIDFactoryTest, createLLTExplicitHtype) {
 }
 }
 
 
 // This test verifies that the factory class creates DUID-LLT from
 // This test verifies that the factory class creates DUID-LLT from
-// explcitly specified link layer address, when other parameters
+// explicitly specified link layer address, when other parameters
 // are generated.
 // are generated.
 TEST_F(DUIDFactoryTest, createLLTExplicitLinkLayerAddress) {
 TEST_F(DUIDFactoryTest, createLLTExplicitLinkLayerAddress) {
     ASSERT_NO_THROW(factory().createLLT(0, 0, toVector("121212121212")));
     ASSERT_NO_THROW(factory().createLLT(0, 0, toVector("121212121212")));

+ 1 - 1
src/lib/dhcp/tests/iface_mgr_test_config.h

@@ -194,7 +194,7 @@ public:
     ///
     ///
     /// The test uses stub implementation of packet filter object. It is
     /// The test uses stub implementation of packet filter object. It is
     /// possible to configure that object to report having a capability
     /// possible to configure that object to report having a capability
-    /// to directly repond to clients which don't have an address yet.
+    /// to directly respond to clients which don't have an address yet.
     /// This function sets this property for packet filter object.
     /// This function sets this property for packet filter object.
     ///
     ///
     /// @param direct_resp Value to be set.
     /// @param direct_resp Value to be set.

+ 14 - 14
src/lib/dhcp/tests/iface_mgr_unittest.cc

@@ -119,7 +119,7 @@ TEST(IfaceTest, countActive4) {
 /// TestPktFilter::receive will never be called. The appropriate extension
 /// TestPktFilter::receive will never be called. The appropriate extension
 /// to IfaceMgr is planned along with implementation of other "Packet
 /// to IfaceMgr is planned along with implementation of other "Packet
 /// Filters" such as these supporting Linux Packet Filtering and
 /// Filters" such as these supporting Linux Packet Filtering and
-/// Berkley Packet Filtering.
+/// Berkeley Packet Filtering.
 class TestPktFilter : public PktFilter {
 class TestPktFilter : public PktFilter {
 public:
 public:
 
 
@@ -210,7 +210,7 @@ public:
     /// @brief Returns the collection of existing interfaces.
     /// @brief Returns the collection of existing interfaces.
     IfaceCollection& getIfacesLst() { return (ifaces_); }
     IfaceCollection& getIfacesLst() { return (ifaces_); }
 
 
-    /// @brief This function creates fictitious interfaces with fictious
+    /// @brief This function creates fictitious interfaces with fictitious
     /// addresses.
     /// addresses.
     ///
     ///
     /// These interfaces can be used in tests that don't actually try
     /// These interfaces can be used in tests that don't actually try
@@ -390,7 +390,7 @@ public:
 #endif
 #endif
     }
     }
 
 
-    // Get ther number of IPv4 or IPv6 sockets on the loopback interface
+    // Get the number of IPv4 or IPv6 sockets on the loopback interface
     int getOpenSocketsCount(const Iface& iface, uint16_t family) const {
     int getOpenSocketsCount(const Iface& iface, uint16_t family) const {
         // Get all sockets.
         // Get all sockets.
         Iface::SocketCollection sockets = iface.getSockets();
         Iface::SocketCollection sockets = iface.getSockets();
@@ -833,7 +833,7 @@ TEST_F(IfaceMgrTest, multipleSockets) {
         cout << "Local loopback interface not found. Skipping test. " << endl;
         cout << "Local loopback interface not found. Skipping test. " << endl;
         return;
         return;
     }
     }
-    // Once sockets have been sucessfully opened, they are supposed to
+    // Once sockets have been successfully opened, they are supposed to
     // be on the list. Here we start to test if all expected sockets
     // be on the list. Here we start to test if all expected sockets
     // are on the list and no other (unexpected) socket is there.
     // are on the list and no other (unexpected) socket is there.
     Iface::SocketCollection sockets = iface_ptr->getSockets();
     Iface::SocketCollection sockets = iface_ptr->getSockets();
@@ -874,7 +874,7 @@ TEST_F(IfaceMgrTest, multipleSockets) {
     sockets = iface_ptr->getSockets();
     sockets = iface_ptr->getSockets();
     ASSERT_EQ(0, sockets.size());
     ASSERT_EQ(0, sockets.size());
 
 
-    // We are still in posession of socket descriptors that we created
+    // We are still in possession of socket descriptors that we created
     // on the beginning of this test. We can use them to check whether
     // on the beginning of this test. We can use them to check whether
     // closeSockets() only removed them from the list or they have been
     // closeSockets() only removed them from the list or they have been
     // really closed.
     // really closed.
@@ -1209,7 +1209,7 @@ TEST_F(IfaceMgrTest, sendReceive4) {
     // skip checking source port of sent address.
     // skip checking source port of sent address.
 
 
     // Close the socket. Further we will test if errors are reported
     // Close the socket. Further we will test if errors are reported
-    // properly on attempt to use closed soscket.
+    // properly on attempt to use closed socket.
     close(socket1);
     close(socket1);
 
 
 // Warning: kernel bug on FreeBSD. The following code checks that attempt to
 // Warning: kernel bug on FreeBSD. The following code checks that attempt to
@@ -1226,7 +1226,7 @@ TEST_F(IfaceMgrTest, sendReceive4) {
 //
 //
 // @todo: This part of the test is currently disabled on all BSD systems as it was
 // @todo: This part of the test is currently disabled on all BSD systems as it was
 // the quick fix. We need a more elegant (config-based) solution to disable
 // the quick fix. We need a more elegant (config-based) solution to disable
-// this check on affected systems only. The ticket has been submited for this
+// this check on affected systems only. The ticket has been submitted for this
 // work: http://kea.isc.org/ticket/2971
 // work: http://kea.isc.org/ticket/2971
 #ifndef OS_BSD
 #ifndef OS_BSD
     EXPECT_THROW(ifacemgr->receive4(10), SocketReadError);
     EXPECT_THROW(ifacemgr->receive4(10), SocketReadError);
@@ -1399,11 +1399,11 @@ TEST_F(IfaceMgrTest, checkPacketFilterRawSocket) {
 
 
 // Note: This test will only run on non-Linux and non-BSD systems.
 // Note: This test will only run on non-Linux and non-BSD systems.
 // This test checks whether it is possible to use IfaceMgr to figure
 // This test checks whether it is possible to use IfaceMgr to figure
-// out which Pakcket Filter object should be used when direct responses
+// out which Packet Filter object should be used when direct responses
 // to hosts, having no address assigned are desired or not desired.
 // to hosts, having no address assigned are desired or not desired.
 // Since direct responses aren't supported on systems other than Linux
 // Since direct responses aren't supported on systems other than Linux
 // and BSD the function under test should always set object of
 // and BSD the function under test should always set object of
-// PktFilterInet type as current Packet Filter. This object does not 
+// PktFilterInet type as current Packet Filter. This object does not
 //support direct responses. Once implementation is added on systems
 //support direct responses. Once implementation is added on systems
 // other than BSD and Linux the OS specific version of the test will
 // other than BSD and Linux the OS specific version of the test will
 // be removed.
 // be removed.
@@ -1599,7 +1599,7 @@ TEST_F(IfaceMgrTest, openSocket4ErrorHandler) {
     // open and bound to the same address and port. An attempt to open
     // open and bound to the same address and port. An attempt to open
     // another socket and bind to this address and port should fail.
     // another socket and bind to this address and port should fail.
     ASSERT_NO_THROW(ifacemgr.openSockets4(DHCP4_SERVER_PORT, true, error_handler));
     ASSERT_NO_THROW(ifacemgr.openSockets4(DHCP4_SERVER_PORT, true, error_handler));
-    // We expect that an error occured when we tried to open a socket on
+    // We expect that an error occurred when we tried to open a socket on
     // eth0, but the socket on eth1 should open just fine.
     // eth0, but the socket on eth1 should open just fine.
     EXPECT_EQ(1, errors_count_);
     EXPECT_EQ(1, errors_count_);
 
 
@@ -1712,7 +1712,7 @@ TEST_F(IfaceMgrTest, openSockets6NoLinkLocal) {
 
 
     // Check that the number of sockets is correct on each interface.
     // Check that the number of sockets is correct on each interface.
     checkSocketsCount6(*ifacemgr.getIface("lo"), 0);
     checkSocketsCount6(*ifacemgr.getIface("lo"), 0);
-    // The thrid parameter specifies that the number of link-local
+    // The third parameter specifies that the number of link-local
     // addresses for eth0 is equal to 0.
     // addresses for eth0 is equal to 0.
     checkSocketsCount6(*ifacemgr.getIface("eth0"), 0, 0);
     checkSocketsCount6(*ifacemgr.getIface("eth0"), 0, 0);
     checkSocketsCount6(*ifacemgr.getIface("eth1"), 0, 1);
     checkSocketsCount6(*ifacemgr.getIface("eth1"), 0, 1);
@@ -1731,7 +1731,7 @@ TEST_F(IfaceMgrTest, openSockets6NoLinkLocal) {
 
 
 }
 }
 
 
-// This test checks that socket is open on the non-muticast-capable
+// This test checks that socket is open on the non-multicast-capable
 // interface. This socket simply doesn't join multicast group.
 // interface. This socket simply doesn't join multicast group.
 TEST_F(IfaceMgrTest, openSockets6NotMulticast) {
 TEST_F(IfaceMgrTest, openSockets6NotMulticast) {
     NakedIfaceMgr ifacemgr;
     NakedIfaceMgr ifacemgr;
@@ -2014,7 +2014,7 @@ TEST_F(IfaceMgrTest, openSocket6ErrorHandler) {
     // opened on eth0 and an attempt to open another socket and bind to
     // opened on eth0 and an attempt to open another socket and bind to
     // the same address and port should fail.
     // the same address and port should fail.
     ASSERT_NO_THROW(ifacemgr.openSockets6(DHCP6_SERVER_PORT, error_handler));
     ASSERT_NO_THROW(ifacemgr.openSockets6(DHCP6_SERVER_PORT, error_handler));
-    // We expect that an error occured when we tried to open a socket on
+    // We expect that an error occurred when we tried to open a socket on
     // eth0, but the socket on eth1 should open just fine.
     // eth0, but the socket on eth1 should open just fine.
     EXPECT_EQ(1, errors_count_);
     EXPECT_EQ(1, errors_count_);
 
 
@@ -2387,7 +2387,7 @@ TEST_F(IfaceMgrTest, detectIfaces) {
     NakedIfaceMgr ifacemgr;
     NakedIfaceMgr ifacemgr;
 
 
     // We are using struct ifaddrs as it is the only good portable one
     // We are using struct ifaddrs as it is the only good portable one
-    // ifreq and ioctls are far from portabe. For BSD ifreq::ifa_flags field
+    // ifreq and ioctls are far from portable. For BSD ifreq::ifa_flags field
     // is only a short which, nowadays, can be negative
     // is only a short which, nowadays, can be negative
     struct ifaddrs *iflist = 0, *ifptr = 0;
     struct ifaddrs *iflist = 0, *ifptr = 0;
     ASSERT_EQ(0, getifaddrs(&iflist))
     ASSERT_EQ(0, getifaddrs(&iflist))

+ 3 - 3
src/lib/dhcp/tests/libdhcp++_unittest.cc

@@ -490,7 +490,7 @@ TEST_F(LibDhcpTest, unpackOptions6) {
     ASSERT_TRUE(opt_oro);
     ASSERT_TRUE(opt_oro);
     // Get set of uint16_t values.
     // Get set of uint16_t values.
     std::vector<uint16_t> opts = opt_oro->getValues();
     std::vector<uint16_t> opts = opt_oro->getValues();
-    // Prepare the refrence data.
+    // Prepare the reference data.
     std::vector<uint16_t> expected_opts;
     std::vector<uint16_t> expected_opts;
     expected_opts.push_back(0x6C6D); // equivalent to: 108, 109
     expected_opts.push_back(0x6C6D); // equivalent to: 108, 109
     expected_opts.push_back(0x6E6F); // equivalent to 110, 111
     expected_opts.push_back(0x6E6F); // equivalent to 110, 111
@@ -718,7 +718,7 @@ TEST_F(LibDhcpTest, packOptions4) {
     // we want to use this buffer as a reference to verify that produced
     // we want to use this buffer as a reference to verify that produced
     // option in on-wire format is correct.
     // option in on-wire format is correct.
 
 
-    // Create Ciruit ID sub-option and add to RAI.
+    // Create Circuit ID sub-option and add to RAI.
     OptionPtr circuit_id(new Option(Option::V4, RAI_OPTION_AGENT_CIRCUIT_ID,
     OptionPtr circuit_id(new Option(Option::V4, RAI_OPTION_AGENT_CIRCUIT_ID,
                                     OptionBuffer(v4_opts + 46,
                                     OptionBuffer(v4_opts + 46,
                                                  v4_opts + 50)));
                                                  v4_opts + 50)));
@@ -736,7 +736,7 @@ TEST_F(LibDhcpTest, packOptions4) {
 
 
     isc::dhcp::OptionCollection opts; // list of options
     isc::dhcp::OptionCollection opts; // list of options
     // Note that we insert each option under the same option code into
     // Note that we insert each option under the same option code into
-    // the map. This gurantees that options are packed in the same order
+    // the map. This guarantees that options are packed in the same order
     // they were added. Otherwise, options would get sorted by code and
     // they were added. Otherwise, options would get sorted by code and
     // the resulting buffer wouldn't match with the reference buffer.
     // the resulting buffer wouldn't match with the reference buffer.
     opts.insert(make_pair(opt1->getType(), opt1));
     opts.insert(make_pair(opt1->getType(), opt1));

+ 1 - 1
src/lib/dhcp/tests/opaque_data_tuple_unittest.cc

@@ -386,7 +386,7 @@ TEST(OpaqueDataTuple, unpack1ByteZeroLength) {
     EXPECT_EQ(0, tuple.getLength());
     EXPECT_EQ(0, tuple.getLength());
 }
 }
 
 
-// This test verfifies that exception is thrown if the empty buffer is being
+// This test verifies that exception is thrown if the empty buffer is being
 // parsed.
 // parsed.
 TEST(OpaqueDataTuple, unpack1ByteEmptyBuffer) {
 TEST(OpaqueDataTuple, unpack1ByteEmptyBuffer) {
     OpaqueDataTuple tuple(OpaqueDataTuple::LENGTH_1_BYTE);
     OpaqueDataTuple tuple(OpaqueDataTuple::LENGTH_1_BYTE);

+ 1 - 1
src/lib/dhcp/tests/option6_ia_unittest.cc

@@ -80,7 +80,7 @@ public:
         EXPECT_EQ(12, opt->len() - opt->getHeaderLen());
         EXPECT_EQ(12, opt->len() - opt->getHeaderLen());
         EXPECT_EQ(type, opt->getType());
         EXPECT_EQ(type, opt->getType());
 
 
-        EXPECT_EQ(16, outBuf_.getLength()); // lenght(IA_NA) = 16
+        EXPECT_EQ(16, outBuf_.getLength()); // length(IA_NA) = 16
 
 
         // Check if pack worked properly:
         // Check if pack worked properly:
         InputBuffer out(outBuf_.getData(), outBuf_.getLength());
         InputBuffer out(outBuf_.getData(), outBuf_.getLength());

+ 2 - 2
src/lib/dhcp/tests/option_definition_unittest.cc

@@ -137,7 +137,7 @@ TEST_F(OptionDefinitionTest, copyConstructor) {
     EXPECT_EQ("isc", opt_def_copy2.getEncapsulatedSpace());
     EXPECT_EQ("isc", opt_def_copy2.getEncapsulatedSpace());
 }
 }
 
 
-// This test checks that two option definitions may be compared fot equality.
+// This test checks that two option definitions may be compared for equality.
 TEST_F(OptionDefinitionTest, equality) {
 TEST_F(OptionDefinitionTest, equality) {
     // Equal definitions.
     // Equal definitions.
     EXPECT_TRUE(OptionDefinition("option-foo", 5, "uint16", false)
     EXPECT_TRUE(OptionDefinition("option-foo", 5, "uint16", false)
@@ -741,7 +741,7 @@ TEST_F(OptionDefinitionTest, recordIAAddr6) {
 
 
 // The purpose of this test is to verify that definition can be created
 // The purpose of this test is to verify that definition can be created
 // for option that comprises record of data. In this particular test
 // for option that comprises record of data. In this particular test
-// the IAADDR option is used. The data for the option is speicifed as
+// the IAADDR option is used. The data for the option is specified as
 // a vector of strings. Each string carries the data for the corresponding
 // a vector of strings. Each string carries the data for the corresponding
 // data field.
 // data field.
 TEST_F(OptionDefinitionTest, recordIAAddr6Tokenized) {
 TEST_F(OptionDefinitionTest, recordIAAddr6Tokenized) {

+ 1 - 1
src/lib/dhcp/tests/option_int_unittest.cc

@@ -131,7 +131,7 @@ public:
         // Data length is 2 bytes.
         // Data length is 2 bytes.
         EXPECT_EQ(2, opt->len() - opt->getHeaderLen());
         EXPECT_EQ(2, opt->len() - opt->getHeaderLen());
         EXPECT_EQ(TEST_OPT_CODE, opt->getType());
         EXPECT_EQ(TEST_OPT_CODE, opt->getType());
-        // The total length is 2 bytes for data and 2 or 4 bytes for aheader.
+        // The total length is 2 bytes for data and 2 or 4 bytes for a header.
         if (u == Option::V4) {
         if (u == Option::V4) {
             EXPECT_EQ(4, out_buf_.getLength());
             EXPECT_EQ(4, out_buf_.getLength());
         } else {
         } else {

+ 1 - 1
src/lib/dhcp/tests/option_space_unittest.cc

@@ -60,7 +60,7 @@ TEST(OptionSpaceTest, validateName) {
     EXPECT_TRUE(OptionSpace::validateName("1234"));
     EXPECT_TRUE(OptionSpace::validateName("1234"));
     EXPECT_TRUE(OptionSpace::validateName("UPPER_CASE_allowed"));
     EXPECT_TRUE(OptionSpace::validateName("UPPER_CASE_allowed"));
 
 
-    // Negative test scenarions: empty strings, dots, spaces are not
+    // Negative test scenarios: empty strings, dots, spaces are not
     // allowed
     // allowed
     EXPECT_FALSE(OptionSpace::validateName(""));
     EXPECT_FALSE(OptionSpace::validateName(""));
     EXPECT_FALSE(OptionSpace::validateName(" "));
     EXPECT_FALSE(OptionSpace::validateName(" "));

+ 1 - 1
src/lib/dhcp/tests/option_unittest.cc

@@ -131,7 +131,7 @@ TEST_F(OptionTest, v4_data2) {
     data.push_back(67);
     data.push_back(67);
 
 
     // Data contains extra garbage at beginning and at the end. It should be
     // Data contains extra garbage at beginning and at the end. It should be
-    // ignored, as we pass interators to proper data. Only subset (limited by
+    // ignored, as we pass iterators to proper data. Only subset (limited by
     // iterators) of the vector should be used.
     // iterators) of the vector should be used.
     // expData contains expected content (just valid data, without garbage).
     // expData contains expected content (just valid data, without garbage).
     scoped_ptr<Option> opt;
     scoped_ptr<Option> opt;

+ 5 - 5
src/lib/dhcp/tests/pkt4_unittest.cc

@@ -684,7 +684,7 @@ TEST_F(Pkt4Test, unpackMalformed) {
     orig.push_back(0x53);
     orig.push_back(0x53);
     orig.push_back(0x63);
     orig.push_back(0x63);
 
 
-    orig.push_back(53); // Message Type 
+    orig.push_back(53); // Message Type
     orig.push_back(1); // length=1
     orig.push_back(1); // length=1
     orig.push_back(2); // type=2
     orig.push_back(2); // type=2
 
 
@@ -727,7 +727,7 @@ TEST_F(Pkt4Test, unpackVendorMalformed) {
     orig.push_back(0x53);
     orig.push_back(0x53);
     orig.push_back(0x63);
     orig.push_back(0x63);
 
 
-    orig.push_back(53); // Message Type 
+    orig.push_back(53); // Message Type
     orig.push_back(1); // length=1
     orig.push_back(1); // length=1
     orig.push_back(2); // type=2
     orig.push_back(2); // type=2
 
 
@@ -943,7 +943,7 @@ TEST_F(Pkt4Test, clientClasses) {
 TEST_F(Pkt4Test, getMAC) {
 TEST_F(Pkt4Test, getMAC) {
     Pkt4 pkt(DHCPOFFER, 1234);
     Pkt4 pkt(DHCPOFFER, 1234);
 
 
-    // DHCPv4 packet by default doens't have MAC address specified.
+    // DHCPv4 packet by default doesn't have MAC address specified.
     EXPECT_FALSE(pkt.getMAC(HWAddr::HWADDR_SOURCE_ANY));
     EXPECT_FALSE(pkt.getMAC(HWAddr::HWADDR_SOURCE_ANY));
     EXPECT_FALSE(pkt.getMAC(HWAddr::HWADDR_SOURCE_RAW));
     EXPECT_FALSE(pkt.getMAC(HWAddr::HWADDR_SOURCE_RAW));
 
 
@@ -1093,7 +1093,7 @@ TEST_F(Pkt4Test, toText) {
     pkt.addOption(OptionPtr(new OptionUint32(Option::V4, 156, 123456)));
     pkt.addOption(OptionPtr(new OptionUint32(Option::V4, 156, 123456)));
     pkt.addOption(OptionPtr(new OptionString(Option::V4, 87, "lorem ipsum")));
     pkt.addOption(OptionPtr(new OptionString(Option::V4, 87, "lorem ipsum")));
 
 
-    EXPECT_EQ("local_address=192.0.2.34:67, remote_adress=192.10.33.4:68, "
+    EXPECT_EQ("local_address=192.0.2.34:67, remote_address=192.10.33.4:68, "
               "msg_type=DHCPDISCOVER (1), transid=0x9ef,\n"
               "msg_type=DHCPDISCOVER (1), transid=0x9ef,\n"
               "options:\n"
               "options:\n"
               "  type=053, len=001: 1 (uint8)\n"
               "  type=053, len=001: 1 (uint8)\n"
@@ -1109,7 +1109,7 @@ TEST_F(Pkt4Test, toText) {
     pkt.delOption(87);
     pkt.delOption(87);
     pkt.delOption(53);
     pkt.delOption(53);
 
 
-    EXPECT_EQ("local_address=192.0.2.34:67, remote_adress=192.10.33.4:68, "
+    EXPECT_EQ("local_address=192.0.2.34:67, remote_address=192.10.33.4:68, "
               "msg_type=(missing), transid=0x9ef, "
               "msg_type=(missing), transid=0x9ef, "
               "message contains no options",
               "message contains no options",
               pkt.toText());
               pkt.toText());

+ 3 - 3
src/lib/dhcp/tests/pkt6_unittest.cc

@@ -986,7 +986,7 @@ TEST_F(Pkt6Test, getAnyRelayOption) {
     EXPECT_TRUE(opt->equals(relay3_opt1));
     EXPECT_TRUE(opt->equals(relay3_opt1));
     EXPECT_FALSE(opt == relay3_opt1);
     EXPECT_FALSE(opt == relay3_opt1);
     // Test that option copy has replaced the original option within the
     // Test that option copy has replaced the original option within the
-    // packet. We achive that by calling a variant of the method which
+    // packet. We achieve that by calling a variant of the method which
     // retrieved non-copied option.
     // retrieved non-copied option.
     relay3_opt1 = msg->getNonCopiedAnyRelayOption(200, Pkt6::RELAY_SEARCH_FROM_CLIENT);
     relay3_opt1 = msg->getNonCopiedAnyRelayOption(200, Pkt6::RELAY_SEARCH_FROM_CLIENT);
     ASSERT_TRUE(relay3_opt1);
     ASSERT_TRUE(relay3_opt1);
@@ -1116,7 +1116,7 @@ TEST_F(Pkt6Test, clientClasses) {
 TEST_F(Pkt6Test, getMAC) {
 TEST_F(Pkt6Test, getMAC) {
     Pkt6 pkt(DHCPV6_ADVERTISE, 1234);
     Pkt6 pkt(DHCPV6_ADVERTISE, 1234);
 
 
-    // DHCPv6 packet by default doens't have MAC address specified.
+    // DHCPv6 packet by default doesn't have MAC address specified.
     EXPECT_FALSE(pkt.getMAC(HWAddr::HWADDR_SOURCE_ANY));
     EXPECT_FALSE(pkt.getMAC(HWAddr::HWADDR_SOURCE_ANY));
     EXPECT_FALSE(pkt.getMAC(HWAddr::HWADDR_SOURCE_RAW));
     EXPECT_FALSE(pkt.getMAC(HWAddr::HWADDR_SOURCE_RAW));
 
 
@@ -1610,7 +1610,7 @@ TEST_F(Pkt6Test, getClientId) {
     EXPECT_TRUE(duid->getDuid() == duid_vec);
     EXPECT_TRUE(duid->getDuid() == duid_vec);
 }
 }
 
 
-// This test verfies that it is possible to obtain the packet
+// This test verifies that it is possible to obtain the packet
 // identifiers (DUID, HW Address, transaction id) in the textual
 // identifiers (DUID, HW Address, transaction id) in the textual
 // format.
 // format.
 TEST_F(Pkt6Test, makeLabel) {
 TEST_F(Pkt6Test, makeLabel) {

+ 1 - 1
src/lib/dhcp/tests/pkt_captures4.cc

@@ -25,7 +25,7 @@
 /// 4. Right click on DHCPv6 -> Copy -> Bytes -> Hex Stream
 /// 4. Right click on DHCPv6 -> Copy -> Bytes -> Hex Stream
 /// 5. Paste it as: string hex_string="[paste here]";
 /// 5. Paste it as: string hex_string="[paste here]";
 /// 6. Coding guidelines line restrictions apply, so wrap your code as necessary
 /// 6. Coding guidelines line restrictions apply, so wrap your code as necessary
-/// 7. Make sure you decribe the capture appropriately
+/// 7. Make sure you describe the capture appropriately
 /// 8. Follow whatever rest of the methods are doing (set ports, ifaces etc.)
 /// 8. Follow whatever rest of the methods are doing (set ports, ifaces etc.)
 /// 9. To easily copy packet description, click File... -> Extract packet
 /// 9. To easily copy packet description, click File... -> Extract packet
 ///    dissections -> as plain text file...
 ///    dissections -> as plain text file...

+ 2 - 2
src/lib/dhcp/tests/pkt_captures6.cc

@@ -25,7 +25,7 @@
 /// 4. Right click on DHCPv6 -> Copy -> Bytes -> Hex Stream
 /// 4. Right click on DHCPv6 -> Copy -> Bytes -> Hex Stream
 /// 5. Paste it as: string hex_string="[paste here]";
 /// 5. Paste it as: string hex_string="[paste here]";
 /// 6. Coding guidelines line restrictions apply, so wrap your code as necessary
 /// 6. Coding guidelines line restrictions apply, so wrap your code as necessary
-/// 7. Make sure you decribe the capture appropriately
+/// 7. Make sure you describe the capture appropriately
 /// 8. Follow whatever rest of the methods are doing (set ports, ifaces etc.)
 /// 8. Follow whatever rest of the methods are doing (set ports, ifaces etc.)
 /// 9. To easily copy packet description, click File... -> Extract packet
 /// 9. To easily copy packet description, click File... -> Extract packet
 ///    dissections -> as plain text file...
 ///    dissections -> as plain text file...
@@ -55,7 +55,7 @@ Pkt6Ptr PktCaptures::captureSimpleSolicit() {
         1,  // type 1 = SOLICIT
         1,  // type 1 = SOLICIT
         0xca, 0xfe, 0x01, // trans-id = 0xcafe01
         0xca, 0xfe, 0x01, // trans-id = 0xcafe01
         0, 1, // option type 1 (client-id)
         0, 1, // option type 1 (client-id)
-        0, 10, // option lenth 10
+        0, 10, // option length 10
         1, 2, 3, 4, 5, 6, 7, 8, 9, 10, // DUID
         1, 2, 3, 4, 5, 6, 7, 8, 9, 10, // DUID
         0, 3, // option type 3 (IA_NA)
         0, 3, // option type 3 (IA_NA)
         0, 12, // option length 12
         0, 12, // option length 12

+ 0 - 0
src/lib/dhcp/tests/pkt_filter_test_stub.h


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff