[Ns-bugs] [Bug 278] Ipv4Header does not print the protocol number

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Sat Aug 9 10:27:02 PDT 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=278





------- Comment #1 from mathieu.lacage at sophia.inria.fr  2008-08-09 13:27 -------
A patch would look roughly like that. Is anyone against that ?


diff -r fc07f91a5da1 src/node/ipv4-header.cc
--- a/src/node/ipv4-header.cc   Fri Aug 08 22:15:25 2008 -0700
+++ b/src/node/ipv4-header.cc   Sat Aug 09 10:37:07 2008 -0700
@@ -221,6 +221,7 @@ Ipv4Header::Print (std::ostream &os) con
   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)


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list