Browse Source

[4268a] Fixes and cleanups

Francis Dupont 9 years ago
parent
commit
777a9979a2
2 changed files with 8 additions and 8 deletions
  1. 6 6
      doc/guide/classify.xml
  2. 2 2
      src/lib/eval/tests/token_unittest.cc

+ 6 - 6
doc/guide/classify.xml

@@ -224,37 +224,37 @@
               <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>

+ 2 - 2
src/lib/eval/tests/token_unittest.cc

@@ -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();