dump() provides additional byte length
jmo [Fri, 23 Jul 2010 12:33:25 +0000 (12:33 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1648 270642c3-0616-0410-b53a-bc976706d245

senf/Packets/DefaultBundle/IPv6Extensions.cc

index 631d87e..03ab5be 100644 (file)
@@ -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());