// Custom includes
#include "IpV6Packet.hh"
-#include "Socket/INetAddressing.hh"
-#include "Packets/DataPacket.hh"
+#include "../../Socket/Protocols/INet/INetAddressing.hh"
+#include "../../Packets/DataPacket.hh"
-#include <boost/test/auto_unit_test.hpp>
+#include "../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#define prefix_
senf::IpV6Packet p (senf::IpV6Packet::create(data));
-
BOOST_CHECK_EQUAL( p->version(), 0x06u );
BOOST_CHECK_EQUAL( p->trafficClass(), 0x01u );
BOOST_CHECK_EQUAL( p->flowLabel(), 0x22030u );
BOOST_CHECK_EQUAL( p->length(), 0x0102u );
BOOST_CHECK_EQUAL( p->nextHeader(), 0x03u );
BOOST_CHECK_EQUAL( p->hopLimit(), 0x04u );
- BOOST_CHECK_EQUAL( senf::INet6Address(p->source()).address() ,
- "1011:1213:1415:1617:1819:1a1b:1c1d:1e1f" );
- BOOST_CHECK_EQUAL( senf::INet6Address(p->destination()).address() ,
- "2021:2223:2425:2627:2829:2a2b:2c2d:2e2f" );
+ BOOST_CHECK_EQUAL( p->source().value(),
+ senf::INet6Address::from_string("1011:1213:1415:1617:1819:1a1b:1c1d:1e1f") );
+ BOOST_CHECK_EQUAL( p->destination().value(),
+ senf::INet6Address::from_string("2021:2223:2425:2627:2829:2a2b:2c2d:2e2f") );
BOOST_CHECK( p.next() );
BOOST_CHECK( p.next().is<senf::DataPacket>() );