From: tho Date: Mon, 25 Oct 2010 11:40:39 +0000 (+0000) Subject: Packets/80221Bundle; fix unit test for last commit :/ X-Git-Url: http://g0dil.de/git?p=senf.git;a=commitdiff_plain;h=4bef943029d23ad3b509dd0e939b252eaa169ffa Packets/80221Bundle; fix unit test for last commit :/ git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1740 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Packets/80221Bundle/MIHPacket.test.cc b/senf/Packets/80221Bundle/MIHPacket.test.cc index d777bd3..f339826 100644 --- a/senf/Packets/80221Bundle/MIHPacket.test.cc +++ b/senf/Packets/80221Bundle/MIHPacket.test.cc @@ -331,16 +331,18 @@ SENF_AUTO_UNIT_TEST(Test_MIHFIdTLV) { unsigned char data[] = { // MIH header - 0x10, 0x54, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, + 0x10, 0x54, 0x00, 0x00, 0x00, 0x15, 0x00, 0x06, // source MIHF_ID TLV: - 0x01, 0x00, // type, length + 0x01, 0x01, // type, length + 0x00, // value-length // destination MIHF_ID TLV: - 0x02, 0x00, // type, length - 0x0c // value-length + 0x02, 0x01, // type, length + 0x00 // value-length }; MIHPacket mihPacket (MIHPacket::create(data)); BOOST_CHECK( mihPacket->src_mihfId().valueEquals( MIHFId::Multicast) ); + BOOST_CHECK( mihPacket->dst_mihfId().valueEquals( MIHFId::Multicast) ); } ///////////////////////////////cc.e////////////////////////////////////////