Generic Stream Encapsulation (GSE) test case implementation. More...
Public Member Functions | |
SatGseTestCase () | |
virtual | ~SatGseTestCase () |
void | Receive (Ptr< Packet > p, Mac48Address source, Mac48Address dest) |
Receive packet and check that it is of correct size. More... | |
Private Member Functions | |
virtual void | DoRun (void) |
Private Attributes | |
std::vector< uint32_t > | m_rcvdPacketSizes |
Received packet sizes. More... | |
std::vector< uint32_t > | m_sentPacketSizes |
Sent packet sizes. More... | |
Generic Stream Encapsulation (GSE) test case implementation.
Expected results
Definition at line 55 of file satellite-gse-test.cc.
SatGseTestCase::SatGseTestCase | ( | ) |
Definition at line 83 of file satellite-gse-test.cc.
|
virtual |
Definition at line 88 of file satellite-gse-test.cc.
|
privatevirtual |
Create TxOpportunities for Gse and call receive method to do decapsuling, defragmentation and reassembly.
Test that the amount of sent packets is the same as the amount of received packets.
Definition at line 93 of file satellite-gse-test.cc.
References m_rcvdPacketSizes, m_sentPacketSizes, and Receive().
void SatGseTestCase::Receive | ( | Ptr< Packet > | p, |
Mac48Address | source, | ||
Mac48Address | dest | ||
) |
Receive packet and check that it is of correct size.
p | Ptr to packet |
source | Source MAC address |
dest | Destination MAC address |
Test the sent packet size is the same as the received packet size. This tests the encapsulation, fragmentation and packing functionality as well as reassembly.
Definition at line 163 of file satellite-gse-test.cc.
References m_rcvdPacketSizes, and m_sentPacketSizes.
Referenced by DoRun().
|
private |
Received packet sizes.
Definition at line 80 of file satellite-gse-test.cc.
|
private |
Sent packet sizes.
Definition at line 75 of file satellite-gse-test.cc.