]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[trac4264] Fix some typos in the comments and docs
authorShawn Routhier <sar@isc.org>
Thu, 11 Feb 2016 05:29:57 +0000 (21:29 -0800)
committerShawn Routhier <sar@isc.org>
Thu, 11 Feb 2016 05:29:57 +0000 (21:29 -0800)
doc/guide/classify.xml
src/lib/eval/eval.dox
src/lib/eval/eval_context.h
src/lib/eval/lexer.ll
src/lib/eval/parser.yy
src/lib/eval/tests/context_unittest.cc
src/lib/eval/tests/token_unittest.cc
src/lib/eval/token.cc
src/lib/eval/token.h

index 5bbbb9f8035d2974d9dea717d350a03177b9daed..e261281637cb691ec82d30cad33ec4347f6042da 100644 (file)
@@ -189,11 +189,11 @@ sub-option with code "code" from the Relay Agent Information option
       </para>
 
       <para>
-        "relay[code].hex" attempts to extract value of the sub-option
-        "code" from the option inserted by the Relay Agent Information
-        (82) option. If the packet doesn't contain RAI option, or RAI
-        doesn't contain searched sub-option, the expression returns
-        empty string. The string is presented as a byte string of the
+        "relay[code].hex" attempts to extract the value of the sub-option
+        "code" from the option inserted as the Relay Agent Information
+        (82) option. If the packet doesn't contain a RAI option, or the RAI
+        option doesn't contain the requested sub-option, the expression returns
+        an empty string. The string is presented as a byte string of the
         option payload without the type code or length fields. This
         expression is allowed in DHCPv4 only.
       </para>
index b95b8ff03d136070403b15e1cc3f06fb520cbe26..196068ead92cc471988c8e13e3df49c5c331e7cc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -128,7 +128,7 @@ instantiated with the appropriate value and put onto the expression vector.
 
 @section dhcpEcalToken Supported tokens
 
- There is a number of tokens implemented. Each token is derived from
+ There are a number of tokens implemented. Each token is derived from
  isc::eval::Token class and represents a certain expression primitive.
  Currently supported tokens are:
 
@@ -137,10 +137,10 @@ instantiated with the appropriate value and put onto the expression vector.
    hex string, e.g. 0x666f6f which is actually "foo";
  - isc::dhcp::TokenOption - represents an option in a packet, e.g.
                     option[123].text;
- - isc::dhcp::TokenEqual - represents equal (==) operator;
- - isc::dhcp::TokenSubstring - represents substring(text, start, length) operator;
+ - isc::dhcp::TokenEqual - represents the equal (==) operator;
+ - isc::dhcp::TokenSubstring - represents the substring(text, start, length) operator;
  - isc::dhcp::TokenRelay4Option - represents a sub-option inserted by the
-                    DHCPv4 relay, e.g. relay[123].text or relay[123].bin
+                    DHCPv4 relay, e.g. relay[123].text or relay[123].hex
 
 More operators are expected to be implemented in upcoming releases.
 
index 3007efc3d9d91b3b81d3f2cd9b850852d765b091..c5c0c20914f2d5c6d28a9380fb778119277a4aaf 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -92,7 +92,7 @@ public:
     uint16_t convertOptionCode(const std::string& option_code,
                                const isc::eval::location& loc);
 
-    /// @brief Option name convertion
+    /// @brief Option name conversion
     ///
     /// @param option_name the option name
     /// @param loc the location of the token
index 3842b006b61dda1aedb47a9f9c4b98bf0aa62077..6af639b5979740061a73c069bd8ee444a62e0936 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+/* Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
 
    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
index 8716bc7bec868df3f0a76e1f819d44c37c8a1b94..e44ae50445cf43cb20b653854a9823f538547874 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+/* Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
 
    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
index 4e3e8a869658867d0cc5b0a7dd1bd0507536e117..e93c4b2842ebde760ae8fdb82fe9b62b761f28ac 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
index 5778bc5b1c6e382ed2b65333d09024e313ddcc07..9cd289715039499e9551236729a4ddfc00d346e5 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -614,7 +614,7 @@ TEST_F(TokenTest, relayOption) {
 }
 
 // This test checks that the code properly handles cases when
-// there is RAI option, but there's no requested sub-option.
+// there is RAI option, but there's no requested sub-option.
 TEST_F(TokenTest, relayOptionNoSuboption) {
 
     // Insert relay option with sub-options 1 and 13
index b9e7c524de3659c41e53134bfe55ec4a08fe2585..78e080d24c80c21bf2482c0052e00fcd047294fd 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
index e330b3f15f8e0f0f391a495ff006f62b5589be95..6b512175a284a2c3a9fc8d16a3898ad660b464aa 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -283,8 +283,8 @@ public:
 /// @brief Represents a sub-option inserted by the DHCPv4 relay.
 ///
 /// DHCPv4 relays insert sub-options in option 82. This token attempts to extract
-/// such sub-options. Note it is radically different than in DHCPv6 (possible
-/// many encapsulation levels), thus separate classes for v4 and v6.
+/// such sub-options. Note in DHCPv6 it is radically different (possibly
+/// many encapsulation levels), thus there are separate classes for v4 and v6.
 ///
 /// This token can represent the following expressions:
 /// relay[13].text - Textual representation of sub-option 13 in RAI (option 82)
@@ -294,9 +294,9 @@ public:
 class TokenRelay4Option : public TokenOption {
 public:
 
-    /// @brief Construtor for extracting sub-option from RAI (option 82)
+    /// @brief Constructor for extracting sub-option from RAI (option 82)
     ///
-    /// @param option_code code of the searched sub-option
+    /// @param option_code code of the requested sub-option
     /// @param rep_type code representation (currently .hex and .text are supported)
     TokenRelay4Option(const uint16_t option_code,
                       const RepresentationType& rep_type);