ns-3
|
#include <mac-rx-middle.h>
Public Types | |
typedef Callback< void, Ptr < Packet >, const WifiMacHeader * > | ForwardUpCallback |
Public Member Functions | |
void | SetForwardCallback (ForwardUpCallback callback) |
void | Receive (Ptr< Packet > packet, const WifiMacHeader *hdr) |
Friends | |
class | MacRxMiddleTest |
This class handles duplicate detection and recomposition of fragments.
void ns3::MacRxMiddle::Receive | ( | Ptr< Packet > | packet, |
const WifiMacHeader * | hdr | ||
) |
The check below is really uneeded because it can fail in a lot of normal cases. Specifically, it is possible for sequence numbers to loop back to zero once they reach 0xfff0 and to go up to 0xf7f0 in which case the check below will report the two sequence numbers to not have the correct order relationship. So, this check cannot be used to discard old duplicate frames. It is thus here only for documentation purposes.
References ns3::Mac48Address::IsGroup(), NS_ASSERT, NS_LOG_DEBUG, and NS_LOG_FUNCTION.