X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FDefaultBundle%2FIpV6Packet.cc;h=dfb1aea94143c0f419cc095633a2e3bdb37bb41f;hb=f1fc7057fa65a9509651d08c6c134d136fbb0424;hp=63c341a106f2b80a91c90412f13bfbc8f27c9246;hpb=2c4c9deecc7491fbfc916aeb41074dcb76e8a2c2;p=senf.git diff --git a/Packets/DefaultBundle/IpV6Packet.cc b/Packets/DefaultBundle/IpV6Packet.cc index 63c341a..dfb1aea 100644 --- a/Packets/DefaultBundle/IpV6Packet.cc +++ b/Packets/DefaultBundle/IpV6Packet.cc @@ -25,6 +25,7 @@ //#include "IpV6Packet.ih" // Custom includes +#include #include "EthernetPacket.hh" #include "Socket/Protocols/INet/INetAddressing.hh" @@ -45,6 +46,7 @@ namespace { prefix_ void senf::IpV6PacketType::dump(packet p, std::ostream & os) { + boost::io::ios_all_saver ias(os); os << "Internet protocol Version 6:\n" << " version : " << unsigned(p->version()) << "\n" << " traffic class : " << std::hex << unsigned(p->trafficClass()) << "\n" @@ -52,8 +54,8 @@ prefix_ void senf::IpV6PacketType::dump(packet p, std::ostream & os) << " length : " << std::dec << unsigned(p->length()) << "\n" << " next header : " << unsigned(p->nextHeader()) << "\n" << " hop limit : " << unsigned(p->hopLimit()) << "\n" - << " source : " << INet6Address(p->source()) << "\n" - << " destination : " << INet6Address(p->destination()) << "\n"; + << " source : " << p->source() << "\n" + << " destination : " << p->destination() << "\n"; } ///////////////////////////////cc.e////////////////////////////////////////