ns-3
ns3::MacRxMiddle Class Reference

#include <mac-rx-middle.h>

List of all members.

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

Detailed Description

This class handles duplicate detection and recomposition of fragments.


Member Function Documentation

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.


The documentation for this class was generated from the following files: