print length/type in hex

This commit is contained in:
Craig Dowell
2007-08-10 10:44:02 -07:00
parent 250109b215
commit c298892833

View File

@@ -19,6 +19,8 @@
* Author: Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
*/
#include <iomanip>
#include <iostream>
#include "ns3/assert.h"
#include "ns3/debug.h"
#include "ns3/header.h"
@@ -118,7 +120,8 @@ EthernetHeader::Print (std::ostream &os) const
{
os << " preamble/sfd=" << m_preambleSfd << ",";
}
os << " length/type=" << m_lengthType
os << " length/type=0x" << std::hex << m_lengthType << std::dec
<< ", source=" << m_source
<< ", destination=" << m_destination;
}