BOOST_AUTO_UNIT_TEST(ICMPv6Packet_create)
{
+ std::ostringstream oss (std::ostringstream::out);
+
unsigned char ping[] = { 0x60, 0x00, 0x00, 0x00, 0x00, 0x40, 0x3a, 0x40,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
ip.finalizeAll();
+ SENF_CHECK_NO_THROW (ip.dump( oss ));
+
std::string dump (
"Internet protocol Version 6:\n"
" version : 6\n"
" code : 0\n"
" checksum : 0xdae0\n"
"ICMPv6 Echo Request:\n"
- " identifier : 40830\n"
- " sequence nr. : 9\n"
+ " Identifier : 40830\n"
+ " SequenceNumber : 9\n"
"Payload data (56 bytes)\n"
);