improve pretty-printing output.
This commit is contained in:
@@ -120,7 +120,7 @@ EthernetHeader::Print (std::ostream &os) const
|
||||
// ethernet, right ?
|
||||
if (m_enPreambleSfd)
|
||||
{
|
||||
os << " preamble/sfd=" << m_preambleSfd << ",";
|
||||
os << "preamble/sfd=" << m_preambleSfd << ",";
|
||||
}
|
||||
|
||||
os << " length/type=0x" << std::hex << m_lengthType << std::dec
|
||||
|
||||
@@ -103,7 +103,7 @@ EthernetTrailer::GetInstanceTypeId (void) const
|
||||
void
|
||||
EthernetTrailer::Print (std::ostream &os) const
|
||||
{
|
||||
os << " fcs=" << m_fcs;
|
||||
os << "fcs=" << m_fcs;
|
||||
}
|
||||
uint32_t
|
||||
EthernetTrailer::GetSerializedSize (void) const
|
||||
|
||||
@@ -64,11 +64,10 @@ LlcSnapHeader::GetInstanceTypeId (void) const
|
||||
void
|
||||
LlcSnapHeader::Print (std::ostream &os) const
|
||||
{
|
||||
os << "(type 0x";
|
||||
os << "type 0x";
|
||||
os.setf (std::ios::hex, std::ios::basefield);
|
||||
os << m_etherType;
|
||||
os.setf (std::ios::dec, std::ios::basefield);
|
||||
os << ")";
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user