From: Francis Dupont Date: Mon, 25 Apr 2016 14:57:39 +0000 (+0200) Subject: [4268a] Fixes and cleanups X-Git-Tag: trac4106_update_base~41^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=777a9979a214196068e8f10a55721814299bc95b;p=thirdparty%2Fkea.git [4268a] Fixes and cleanups --- diff --git a/doc/guide/classify.xml b/doc/guide/classify.xml index f8cd5f7a37..e482614f96 100644 --- a/doc/guide/classify.xml +++ b/doc/guide/classify.xml @@ -224,37 +224,37 @@ Hardware length in DHCPv4 packet pkt4.hlen 0x00000006 - The value of the hlen field of the DHCPv4 packet padded to 4 bytes. + The value of the hlen field of the DHCPv4 packet padded to 4 bytes Hardware type in DHCPv4 packet pkt4.htype 0x0000007b - The value of the htype field of the DHCPv4 packet padded to 4 bytes. + The value of the htype field of the DHCPv4 packet padded to 4 bytes ciaddr field in DHCPv4 packet pkt4.ciaddr 192.0.2.1 - The value of the ciaddr field of the DHCPv4 packet (IPv4 address on 4 bytes). + The value of the ciaddr field of the DHCPv4 packet (IPv4 address on 4 bytes) giaddr field in DHCPv4 packet pkt4.giaddr 192.0.2.1 - The value of the giaddr field of the DHCPv4 packet (IPv4 address on 4 bytes). + The value of the giaddr field of the DHCPv4 packet (IPv4 address on 4 bytes) yiaddr field in DHCPv4 packet pkt4.yiaddr 192.0.2.1 - The value of the yiaddr field of the DHCPv4 packet (IPv4 address on 4 bytes). + The value of the yiaddr field of the DHCPv4 packet (IPv4 address on 4 bytes) siaddr field in DHCPv4 packet pkt4.siaddr 192.0.2.1 - The value of the siaddr field of the DHCPv4 packet (IPv4 address on 4 bytes). + The value of the siaddr field of the DHCPv4 packet (IPv4 address on 4 bytes) diff --git a/src/lib/eval/tests/token_unittest.cc b/src/lib/eval/tests/token_unittest.cc index c26d2e7025..2143a015bb 100644 --- a/src/lib/eval/tests/token_unittest.cc +++ b/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();