From: Richard Whitehouse Date: Tue, 17 May 2011 19:39:16 +0000 (+0100) Subject: Allow IPv4 Header to be parsed from ASCII trace file X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=2f6b1c7adee0f36bf3353d7a688c266587b265dc;p=ns-moose.git Allow IPv4 Header to be parsed from ASCII trace file --- diff --git a/src/node/ipv4-header.cc b/src/node/ipv4-header.cc index 393921c..0f880dc 100644 --- a/src/node/ipv4-header.cc +++ b/src/node/ipv4-header.cc @@ -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