Commit f9394bda authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[3548] Fix in getMACFromDUID unit-tests.

parent 7ab90f69
......@@ -1167,14 +1167,14 @@ TEST_F(Pkt6Test, getMACFromDUID) {
pkt.addOption(clientid1);
HWAddrPtr mac = pkt.getMAC(Pkt::HWADDR_SOURCE_DUID);
ASSERT_TRUE(mac);
EXPECT_EQ("htype=7 0a:0b:0c:0d:0e:0f:10", mac->toText(true));
EXPECT_EQ("hwtype=7 0a:0b:0c:0d:0e:0f:10", mac->toText(true));
// Let's test DUID-LL. This should work.
ASSERT_TRUE(pkt.delOption(D6O_CLIENTID));
pkt.addOption(clientid2);
mac = pkt.getMAC(Pkt::HWADDR_SOURCE_DUID);
ASSERT_TRUE(mac);
EXPECT_EQ("htype=11 0a:0b:0c:0d:0e", mac->toText(true));
EXPECT_EQ("hwtype=11 0a:0b:0c:0d:0e", mac->toText(true));
// Finally, let's try DUID-EN. This should fail, as EN type does not
// contain any MAC address information.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment