]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4268a] Fixes and cleanups
authorFrancis Dupont <fdupont@isc.org>
Mon, 25 Apr 2016 14:57:39 +0000 (16:57 +0200)
committerFrancis Dupont <fdupont@isc.org>
Mon, 25 Apr 2016 14:57:39 +0000 (16:57 +0200)
doc/guide/classify.xml
src/lib/eval/tests/token_unittest.cc

index f8cd5f7a3729b02ec0bd71ee4b4b0267a7591c08..e482614f964e53a091e96f508354326b0012944e 100644 (file)
               <entry>Hardware length in DHCPv4 packet</entry>
               <entry>pkt4.hlen</entry>
               <entry>0x00000006</entry>
-              <entry>The value of the hlen field of the DHCPv4 packet padded to 4 bytes.</entry>
+              <entry>The value of the hlen field of the DHCPv4 packet padded to 4 bytes</entry>
             </row>
             <row>
               <entry>Hardware type in DHCPv4 packet</entry>
               <entry>pkt4.htype</entry>
               <entry>0x0000007b</entry>
-              <entry>The value of the htype field of the DHCPv4 packet padded to 4 bytes.</entry>
+              <entry>The value of the htype field of the DHCPv4 packet padded to 4 bytes</entry>
             </row>
             <row>
               <entry>ciaddr field in DHCPv4 packet</entry>
               <entry>pkt4.ciaddr</entry>
               <entry>192.0.2.1</entry>
-              <entry>The value of the ciaddr field of the DHCPv4 packet (IPv4 address on 4 bytes).</entry>
+              <entry>The value of the ciaddr field of the DHCPv4 packet (IPv4 address on 4 bytes)</entry>
             </row>
             <row>
               <entry>giaddr field in DHCPv4 packet</entry>
               <entry>pkt4.giaddr</entry>
               <entry>192.0.2.1</entry>
-              <entry>The value of the giaddr field of the DHCPv4 packet (IPv4 address on 4 bytes).</entry>
+              <entry>The value of the giaddr field of the DHCPv4 packet (IPv4 address on 4 bytes)</entry>
             </row>
             <row>
               <entry>yiaddr field in DHCPv4 packet</entry>
               <entry>pkt4.yiaddr</entry>
               <entry>192.0.2.1</entry>
-              <entry>The value of the yiaddr field of the DHCPv4 packet (IPv4 address on 4 bytes).</entry>
+              <entry>The value of the yiaddr field of the DHCPv4 packet (IPv4 address on 4 bytes)</entry>
             </row>
             <row>
               <entry>siaddr field in DHCPv4 packet</entry>
               <entry>pkt4.siaddr</entry>
               <entry>192.0.2.1</entry>
-              <entry>The value of the siaddr field of the DHCPv4 packet (IPv4 address on 4 bytes).</entry>
+              <entry>The value of the siaddr field of the DHCPv4 packet (IPv4 address on 4 bytes)</entry>
             </row>
           </tbody>
           </tgroup>
index c26d2e702502677cc34bfc8205d133c37b820ab3..2143a015bb1cd6afc2a89761586b3af2e14c79ca 100644 (file)
@@ -631,7 +631,7 @@ TEST_F(TokenTest, pkt4Fields) {
     ASSERT_EQ(1, values_.size());
     ASSERT_EQ(4, values_.top().size());
     uint32_t expected_hlen = htonl(7);
-    EXPECT_EQ(0, memcmp(&expected, &values_.top()[0], 4));
+    EXPECT_EQ(0, memcmp(&expected_hlen, &values_.top()[0], 4));
 
     // Check htype value.
     clearStack();
@@ -640,7 +640,7 @@ TEST_F(TokenTest, pkt4Fields) {
     ASSERT_EQ(1, values_.size());
     ASSERT_EQ(4, values_.top().size());
     uint32_t expected_htype = htonl(123);
-    EXPECT_EQ(0, memcmp(&expected, &values_.top()[0], 4));
+    EXPECT_EQ(0, memcmp(&expected_htype, &values_.top()[0], 4));
 
     // Check giaddr value.
     clearStack();