Test Utils. More...
Static Public Member Functions | |
static void | LogPacketContents (Ptr< Packet > pkt) |
Function to log packet contents. More... | |
template<class T > | |
static void | LogPacketInfo (T source, std::string s) |
Log packet info function. More... | |
static std::string | sprintPacketContentsBin (Ptr< Packet > pkt) |
Function to convert packet contents in binary format. More... | |
static std::string | sprintPacketContentsHex (Ptr< Packet > pkt) |
Function to convert packet contents in hex format. More... | |
Test Utils.
Definition at line 44 of file test-lte-rlc-header.cc.
Function to log packet contents.
pkt | the packet |
Definition at line 87 of file test-lte-rlc-header.cc.
References NS_LOG_DEBUG, sprintPacketContentsBin(), and sprintPacketContentsHex().
Referenced by ns3::RlcAmStatusPduTestCase::DoRun().
|
inlinestatic |
Log packet info function.
source | T |
s | text string to log |
Definition at line 100 of file test-lte-rlc-header.cc.
References NS_LOG_DEBUG.
Function to convert packet contents in binary format.
pkt | the packet |
Definition at line 70 of file test-lte-rlc-header.cc.
References ns3::Packet::CopyData(), and ns3::Packet::GetSize().
Referenced by TestUtils::LogPacketContents(), and LogPacketContents().
Function to convert packet contents in hex format.
pkt | the packet |
Definition at line 52 of file test-lte-rlc-header.cc.
References ns3::Packet::CopyData(), and ns3::Packet::GetSize().
Referenced by ns3::RlcAmStatusPduTestCase::DoRun(), TestUtils::LogPacketContents(), and LogPacketContents().