Test Utils. More...
Static Public Member Functions | |
static void | LogPacketContents (Ptr< Packet > pkt) |
Function to log packet contents. | |
template<class T > | |
static void | LogPacketInfo (T source, std::string s) |
Log packet info function. | |
static std::string | sprintPacketContentsBin (Ptr< Packet > pkt) |
Function to convert packet contents in binary format. | |
static std::string | sprintPacketContentsHex (Ptr< Packet > pkt) |
Function to convert packet contents in hex format. | |
Test Utils.
Definition at line 31 of file test-lte-rlc-header.cc.
Function to log packet contents.
pkt | the packet |
Definition at line 72 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 85 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 56 of file test-lte-rlc-header.cc.
Referenced by LogPacketContents().
Function to convert packet contents in hex format.
pkt | the packet |
Definition at line 39 of file test-lte-rlc-header.cc.
Referenced by ns3::RlcAmStatusPduTestCase::DoRun(), and LogPacketContents().