prefix_ void senf::IPv4PacketType::dump(packet p, std::ostream & os)
{
boost::io::ios_all_saver ias(os);
- os << "Internet protocol Version 4:\n"
- << " version : " << p->version() << "\n"
- << " IHL : " << p->ihl() << "\n"
- << " TOS : " << unsigned(p->tos()) << "\n"
- << " length : " << p->length() << "\n"
- << " identifier : " << p->identifier() << "\n"
- << " DF : " << p->df() << "\n"
- << " MF : " << p->mf() << "\n"
- << " fragment : " << p->frag() << "\n"
- << " TTL : " << unsigned(p->ttl()) << "\n"
- << " protocol : " << unsigned(p->protocol()) << "\n"
- << " checksum : 0x"
+ os << "Internet protocol Version 4:\n"
+ << " version : " << p->version() << "\n"
+ << " ip header length : " << p->ihl() << "\n"
+ << " tos : " << unsigned(p->tos()) << "\n"
+ << " length : " << p->length() << "\n"
+ << " identifier : " << p->identifier() << "\n"
+ << " dont fragment : " << p->df() << "\n"
+ << " more fragments : " << p->mf() << "\n"
+ << " fragment : " << p->frag() << "\n"
+ << " ttl : " << unsigned(p->ttl()) << "\n"
+ << " protocol : " << unsigned(p->protocol()) << "\n"
+ << " checksum : 0x"
<< std::hex << std::setw(4) << std::setfill('0') << p->checksum() << std::dec << "\n"
- << " source : " << p->source() << "\n"
- << " destination : " << p->destination() << "\n";
+ << " source : " << p->source() << "\n"
+ << " destination : " << p->destination() << "\n";
}
prefix_ void senf::IPv4PacketType::finalize(packet p)