Logger: use ClockService::now() as timeBase if empty timeFormat is given for a target
[senf.git] / senf / Packets / DefaultBundle / IPv4Packet.cc
index 3c5d9be..d9aa563 100644 (file)
@@ -28,9 +28,6 @@
 
 // Custom includes
 #include <iomanip>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
 #include <boost/io/ios_state.hpp>
 #include <senf/Utils/IpChecksum.hh>
 #include "EthernetPacket.hh"
@@ -74,7 +71,7 @@ prefix_ void senf::IPv4PacketType::dump(packet p, std::ostream & os)
        << senf::fieldName("ttl")                       << unsigned(p->ttl()) << "\n"
        << senf::fieldName("protocol")                  << unsigned(p->protocol()) << "\n"
        << senf::fieldName("checksum")
-       << "0x" << std::hex << std::setw(4) << std::setfill('0') << p->checksum() << std::dec << "\n"
+       << "0x" << std::hex << std::setw(4) << std::setfill('0') << std::right << p->checksum() << std::dec << "\n"
        << senf::fieldName("source")                    << p->source() << "\n"
        << senf::fieldName("destination")               << p->destination() << "\n";
 }