Allow IPv4 Header to be parsed from ASCII trace file
authorRichard Whitehouse <github@richardwhiuk.com>
Tue, 17 May 2011 19:39:16 +0000 (20:39 +0100)
committerRichard Whitehouse <github@richardwhiuk.com>
Tue, 17 May 2011 19:39:16 +0000 (20:39 +0100)
src/node/ipv4-header.cc

index 393921c4d1b68d9843b76d8fc4fff54a9f5f6c17..0f880dc6d2d9fc52665fe13721b46f28b7e78cdc 100644 (file)
@@ -218,12 +218,12 @@ Ipv4Header::Print (std::ostream &os) const
     {
       flags = "XX";
     }
-  os << "tos 0x" << std::hex << m_tos << std::dec << " "
-     << "ttl " << m_ttl << " "
-     << "id " << m_identification << " "
-     << "protocol " << m_protocol << " "
-     << "offset " << m_fragmentOffset << " "
-     << "flags [" << flags << "] "
+  os << "tos: 0x" << std::hex << m_tos << std::dec << " "
+     << "ttl: " << m_ttl << " "
+     << "id: " << m_identification << " "
+     << "protocol: " << m_protocol << " "
+     << "offset: " << m_fragmentOffset << " "
+     << "flags: " << flags << " "
      << "length: " << (m_payloadSize + 5 * 4)
      << " " 
      << m_source << " > " << m_destination