bug 278: print protocol number from Ipv4Header::Print

This commit is contained in:
Mathieu Lacage
2008-10-20 13:31:25 +02:00
parent 8ae791d954
commit 2aecf7055b

View File

@@ -221,6 +221,7 @@ Ipv4Header::Print (std::ostream &os) const
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)