From: jmo Date: Fri, 23 Jul 2010 12:33:25 +0000 (+0000) Subject: dump() provides additional byte length X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=364169fc5289e1e025067d101a088f72bb06f1e5;p=senf.git dump() provides additional byte length git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1648 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Packets/DefaultBundle/IPv6Extensions.cc b/senf/Packets/DefaultBundle/IPv6Extensions.cc index 631d87e..03ab5be 100644 --- a/senf/Packets/DefaultBundle/IPv6Extensions.cc +++ b/senf/Packets/DefaultBundle/IPv6Extensions.cc @@ -91,7 +91,7 @@ prefix_ void senf::IPv6HopByHopOptionsPacketType::dump(packet p, std::ostream & { os << "Internet protocol Version 6 Hop-By-Hop extension:\n" << senf::fieldName("next header") << unsigned(p->nextHeader()) << "\n" - << senf::fieldName("header length") << unsigned(p->headerLength()) << "\n"; + << senf::fieldName("header length") << unsigned(p->headerLength()) <<" ("<< unsigned((1+p->headerLength())*8)<< ")\n"; os << " OptionTypes:\n"; typedef IPv6HopByHopOptionsPacket::Parser::options_t::container optContainer_t; optContainer_t options (p->options());