A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::WifiMac Class Reference

base class for all MAC-level wifi objects.This class encapsulates all the low-level MAC functionality DCA, EDCA, etc) and all the high-level MAC functionality (association/disassociation state machines). More...

#include <wifi-mac.h>

+ Inheritance diagram for ns3::WifiMac:
+ Collaboration diagram for ns3::WifiMac:

Public Member Functions

void ConfigureStandard (enum WifiPhyStandard standard)
virtual void Enqueue (Ptr< const Packet > packet, Mac48Address to, Mac48Address from)=0
virtual void Enqueue (Ptr< const Packet > packet, Mac48Address to)=0
virtual Time GetAckTimeout (void) const =0
virtual Mac48Address GetAddress (void) const =0
virtual Time GetBasicBlockAckTimeout (void) const
virtual Mac48Address GetBssid (void) const =0
virtual Time GetCompressedBlockAckTimeout (void) const
virtual Time GetCtsTimeout (void) const =0
virtual Time GetEifsNoDifs (void) const =0
Time GetMaxPropagationDelay (void) const
Time GetMsduLifetime (void) const
virtual Time GetPifs (void) const =0
virtual Time GetSifs (void) const =0
virtual Time GetSlot (void) const =0
virtual Ssid GetSsid (void) const =0
void NotifyPromiscRx (Ptr< const Packet > packet)
void NotifyRx (Ptr< const Packet > packet)
void NotifyRxDrop (Ptr< const Packet > packet)
void NotifyTx (Ptr< const Packet > packet)
void NotifyTxDrop (Ptr< const Packet > packet)
virtual void SetAckTimeout (Time ackTimeout)=0
virtual void SetAddress (Mac48Address address)=0
virtual void SetBasicBlockAckTimeout (Time blockAckTimeout)
virtual void SetCompressedBlockAckTimeout (Time blockAckTimeout)
virtual void SetCtsTimeout (Time ctsTimeout)=0
virtual void SetEifsNoDifs (Time eifsNoDifs)=0
virtual void SetForwardUpCallback (Callback< void, Ptr< Packet >, Mac48Address, Mac48Address > upCallback)=0
virtual void SetLinkDownCallback (Callback< void > linkDown)=0
virtual void SetLinkUpCallback (Callback< void > linkUp)=0
void SetMaxPropagationDelay (Time delay)
virtual void SetPifs (Time pifs)=0
virtual void SetPromisc (void)=0
 Sets the interface in promiscuous mode.
virtual void SetSifs (Time sifs)=0
virtual void SetSlot (Time slotTime)=0
virtual void SetSsid (Ssid ssid)=0
virtual void SetWifiPhy (Ptr< WifiPhy > phy)=0
virtual void SetWifiRemoteStationManager (Ptr< WifiRemoteStationManager > stationManager)=0
virtual bool SupportsSendFrom (void) const =0
- Public Member Functions inherited from ns3::Object
 Object ()
virtual ~Object ()
void AggregateObject (Ptr< Object > other)
void Dispose (void)
AggregateIterator GetAggregateIterator (void) const
virtual TypeId GetInstanceTypeId (void) const
template<typename T >
Ptr< T > GetObject (void) const
template<typename T >
Ptr< T > GetObject (TypeId tid) const
void Start (void)
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 SimpleRefCount (const SimpleRefCount &o)
uint32_t GetReferenceCount (void) const
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
void GetAttribute (std::string name, AttributeValue &value) const
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
void SetAttribute (std::string name, const AttributeValue &value)
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::WifiMac.

Protected Member Functions

void ConfigureCCHDcf (Ptr< Dcf > dcf, uint32_t cwmin, uint32_t cwmax, enum AcIndex ac)
void ConfigureDcf (Ptr< Dcf > dcf, uint32_t cwmin, uint32_t cwmax, enum AcIndex ac)
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
virtual void DoDispose (void)
virtual void DoStart (void)
virtual void NotifyNewAggregate (void)

Private Member Functions

void Configure80211_10Mhz (void)
void Configure80211_5Mhz ()
void Configure80211a (void)
void Configure80211b (void)
void Configure80211g (void)
void Configure80211p_CCH (void)
void Configure80211p_SCH (void)
virtual void FinishConfigureStandard (enum WifiPhyStandard standard)=0

Static Private Member Functions

static Time GetDefaultBasicBlockAckDelay (void)
static Time GetDefaultBasicBlockAckTimeout (void)
static Time GetDefaultCompressedBlockAckDelay (void)
static Time GetDefaultCompressedBlockAckTimeout (void)
static Time GetDefaultCtsAckDelay (void)
static Time GetDefaultCtsAckTimeout (void)
static Time GetDefaultEifsNoDifs (void)
static Time GetDefaultMaxPropagationDelay (void)
static Time GetDefaultSifs (void)
static Time GetDefaultSlot (void)

Private Attributes

TracedCallback< Ptr< const
Packet > > 
m_macPromiscRxTrace
TracedCallback< Ptr< const
Packet > > 
m_macRxDropTrace
TracedCallback< Ptr< const
Packet > > 
m_macRxTrace
TracedCallback< Ptr< const
Packet > > 
m_macTxDropTrace
TracedCallback< Ptr< const
Packet > > 
m_macTxTrace
Time m_maxPropagationDelay

Detailed Description

base class for all MAC-level wifi objects.

This class encapsulates all the low-level MAC functionality DCA, EDCA, etc) and all the high-level MAC functionality (association/disassociation state machines).

Definition at line 44 of file wifi-mac.h.

Member Function Documentation

void ns3::WifiMac::Configure80211_10Mhz ( void  )
private

Definition at line 331 of file wifi-mac.cc.

References GetDefaultMaxPropagationDelay(), ns3::MicroSeconds(), SetAckTimeout(), SetCtsTimeout(), SetEifsNoDifs(), SetPifs(), SetSifs(), and SetSlot().

Referenced by Configure80211p_CCH(), Configure80211p_SCH(), and ConfigureStandard().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::WifiMac::Configure80211_5Mhz ( void  )
private

Definition at line 342 of file wifi-mac.cc.

References GetDefaultMaxPropagationDelay(), ns3::MicroSeconds(), SetAckTimeout(), SetCtsTimeout(), SetEifsNoDifs(), SetPifs(), SetSifs(), and SetSlot().

Referenced by ConfigureStandard().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::WifiMac::Configure80211a ( void  )
private

Definition at line 297 of file wifi-mac.cc.

References GetDefaultMaxPropagationDelay(), ns3::MicroSeconds(), SetAckTimeout(), SetCtsTimeout(), SetEifsNoDifs(), SetPifs(), SetSifs(), and SetSlot().

Referenced by ConfigureStandard().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::WifiMac::Configure80211b ( void  )
private

Definition at line 308 of file wifi-mac.cc.

References GetDefaultMaxPropagationDelay(), ns3::MicroSeconds(), SetAckTimeout(), SetCtsTimeout(), SetEifsNoDifs(), SetPifs(), SetSifs(), and SetSlot().

Referenced by ConfigureStandard().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::WifiMac::Configure80211g ( void  )
private

Definition at line 319 of file wifi-mac.cc.

References GetDefaultMaxPropagationDelay(), ns3::MicroSeconds(), SetAckTimeout(), SetCtsTimeout(), SetEifsNoDifs(), SetPifs(), SetSifs(), and SetSlot().

Referenced by ConfigureStandard().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::WifiMac::Configure80211p_CCH ( void  )
private

Definition at line 353 of file wifi-mac.cc.

References Configure80211_10Mhz().

Referenced by ConfigureStandard().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::WifiMac::Configure80211p_SCH ( void  )
private

Definition at line 359 of file wifi-mac.cc.

References Configure80211_10Mhz().

Referenced by ConfigureStandard().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::WifiMac::ConfigureCCHDcf ( Ptr< Dcf dcf,
uint32_t  cwmin,
uint32_t  cwmax,
enum AcIndex  ac 
)
protected

Definition at line 402 of file wifi-mac.cc.

References ns3::AC_BE, ns3::AC_BE_NQOS, ns3::AC_BK, ns3::AC_UNDEF, ns3::AC_VI, ns3::AC_VO, and NS_FATAL_ERROR.

Referenced by ns3::RegularWifiMac::FinishConfigureStandard().

+ Here is the caller graph for this function:

void ns3::WifiMac::ConfigureDcf ( Ptr< Dcf dcf,
uint32_t  cwmin,
uint32_t  cwmax,
enum AcIndex  ac 
)
protected

Definition at line 365 of file wifi-mac.cc.

References ns3::AC_BE, ns3::AC_BE_NQOS, ns3::AC_BK, ns3::AC_UNDEF, ns3::AC_VI, ns3::AC_VO, and NS_FATAL_ERROR.

Referenced by ns3::RegularWifiMac::FinishConfigureStandard().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::Enqueue ( Ptr< const Packet packet,
Mac48Address  to,
Mac48Address  from 
)
pure virtual
Parameters
packetthe packet to send.
tothe address to which the packet should be sent.
fromthe address from which the packet should be sent.

The packet should be enqueued in a tx queue, and should be dequeued as soon as the DCF function determines that access it granted to this MAC. The extra parameter "from" allows this device to operate in a bridged mode, forwarding received frames without altering the source address.

Implemented in ns3::RegularWifiMac, ns3::ApWifiMac, and ns3::MeshWifiInterfaceMac.

Referenced by ns3::WifiNetDevice::Send(), and ns3::WifiNetDevice::SendFrom().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::Enqueue ( Ptr< const Packet packet,
Mac48Address  to 
)
pure virtual
Parameters
packetthe packet to send.
tothe address to which the packet should be sent.

The packet should be enqueued in a tx queue, and should be dequeued as soon as the DCF function determines that access it granted to this MAC.

Implemented in ns3::RegularWifiMac, ns3::MeshWifiInterfaceMac, ns3::ApWifiMac, ns3::AdhocWifiMac, and ns3::StaWifiMac.

virtual void ns3::WifiMac::FinishConfigureStandard ( enum WifiPhyStandard  standard)
privatepure virtual
Parameters
standardthe phy standard to be used

This method is called by ns3::WifiMac::ConfigureStandard to complete the configuration process for a requested phy standard. Subclasses should implement this method to configure their dcf queues according to the requested standard.

Implemented in ns3::RegularWifiMac, and ns3::MeshWifiInterfaceMac.

Referenced by ConfigureStandard().

+ Here is the caller graph for this function:

virtual Time ns3::WifiMac::GetAckTimeout ( void  ) const
pure virtual
Returns
the current ACK timeout duration.

Implemented in ns3::RegularWifiMac.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

virtual Mac48Address ns3::WifiMac::GetAddress ( void  ) const
pure virtual
Returns
the MAC address associated to this MAC layer.

Implemented in ns3::RegularWifiMac.

Referenced by ns3::WifiNetDevice::ForwardUp(), and ns3::WifiNetDevice::GetAddress().

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetBasicBlockAckTimeout ( void  ) const
virtual

Reimplemented in ns3::RegularWifiMac.

Definition at line 110 of file wifi-mac.cc.

References ns3::MicroSeconds().

Referenced by GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual Mac48Address ns3::WifiMac::GetBssid ( void  ) const
pure virtual
Returns
the bssid of the network this device belongs to.

Implemented in ns3::RegularWifiMac.

Time ns3::WifiMac::GetCompressedBlockAckTimeout ( void  ) const
virtual

Reimplemented in ns3::RegularWifiMac.

Definition at line 123 of file wifi-mac.cc.

References ns3::MicroSeconds().

Referenced by GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual Time ns3::WifiMac::GetCtsTimeout ( void  ) const
pure virtual
Returns
the current CTS timeout duration.

Implemented in ns3::RegularWifiMac.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultBasicBlockAckDelay ( void  )
staticprivate

Definition at line 73 of file wifi-mac.cc.

References ns3::MicroSeconds().

Referenced by GetDefaultBasicBlockAckTimeout().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultBasicBlockAckTimeout ( void  )
staticprivate

Definition at line 85 of file wifi-mac.cc.

References GetDefaultBasicBlockAckDelay(), GetDefaultMaxPropagationDelay(), GetDefaultSifs(), GetDefaultSlot(), and ns3::MicroSeconds().

Referenced by GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultCompressedBlockAckDelay ( void  )
staticprivate

Definition at line 79 of file wifi-mac.cc.

References ns3::MicroSeconds().

Referenced by GetDefaultCompressedBlockAckTimeout().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultCompressedBlockAckTimeout ( void  )
staticprivate

Definition at line 94 of file wifi-mac.cc.

References GetDefaultCompressedBlockAckDelay(), GetDefaultMaxPropagationDelay(), GetDefaultSifs(), GetDefaultSlot(), and ns3::MicroSeconds().

Referenced by GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultCtsAckDelay ( void  )
staticprivate

Definition at line 53 of file wifi-mac.cc.

References ns3::MicroSeconds().

Referenced by GetDefaultCtsAckTimeout(), and GetDefaultEifsNoDifs().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultCtsAckTimeout ( void  )
staticprivate

Definition at line 59 of file wifi-mac.cc.

References GetDefaultCtsAckDelay(), GetDefaultMaxPropagationDelay(), GetDefaultSifs(), GetDefaultSlot(), and ns3::MicroSeconds().

Referenced by GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultEifsNoDifs ( void  )
staticprivate

Definition at line 48 of file wifi-mac.cc.

References GetDefaultCtsAckDelay(), and GetDefaultSifs().

Referenced by GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultMaxPropagationDelay ( void  )
staticprivate

Definition at line 30 of file wifi-mac.cc.

References ns3::Seconds().

Referenced by Configure80211_10Mhz(), Configure80211_5Mhz(), Configure80211a(), Configure80211b(), Configure80211g(), GetDefaultBasicBlockAckTimeout(), GetDefaultCompressedBlockAckTimeout(), GetDefaultCtsAckTimeout(), and GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultSifs ( void  )
staticprivate

Definition at line 42 of file wifi-mac.cc.

References ns3::MicroSeconds().

Referenced by GetDefaultBasicBlockAckTimeout(), GetDefaultCompressedBlockAckTimeout(), GetDefaultCtsAckTimeout(), GetDefaultEifsNoDifs(), and GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetDefaultSlot ( void  )
staticprivate

Definition at line 36 of file wifi-mac.cc.

References ns3::MicroSeconds().

Referenced by GetDefaultBasicBlockAckTimeout(), GetDefaultCompressedBlockAckTimeout(), GetDefaultCtsAckTimeout(), and GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual Time ns3::WifiMac::GetEifsNoDifs ( void  ) const
pure virtual
Returns
the current EIFS minus DIFS duration

Implemented in ns3::RegularWifiMac.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

Time ns3::WifiMac::GetMaxPropagationDelay ( void  ) const

Unused for now.

Definition at line 225 of file wifi-mac.cc.

References m_maxPropagationDelay.

Time ns3::WifiMac::GetMsduLifetime ( void  ) const

Unused for now.

Definition at line 220 of file wifi-mac.cc.

References ns3::Seconds().

+ Here is the call graph for this function:

virtual Time ns3::WifiMac::GetPifs ( void  ) const
pure virtual
Returns
the current PIFS duration.

Implemented in ns3::RegularWifiMac.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

virtual Time ns3::WifiMac::GetSifs ( void  ) const
pure virtual
Returns
the current SIFS duration.

Implemented in ns3::RegularWifiMac.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

virtual Time ns3::WifiMac::GetSlot ( void  ) const
pure virtual
Returns
the current slot duration.

Implemented in ns3::RegularWifiMac.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

virtual Ssid ns3::WifiMac::GetSsid ( void  ) const
pure virtual
Returns
the ssid which this MAC layer is going to try to stay in.

Implemented in ns3::RegularWifiMac.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

TypeId ns3::WifiMac::GetTypeId ( void  )
static

This method returns the TypeId associated to ns3::WifiMac.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::WifiNetDevice/Mac

Attributes defined for this type:

  • CtsTimeout: When this timeout expires, the RTS/CTS handshake has failed.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +75000.0ns
    • Flags: construct write read
  • AckTimeout: When this timeout expires, the DATA/ACK handshake has failed.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +75000.0ns
    • Flags: construct write read
  • BasicBlockAckTimeout: When this timeout expires, the BASIC_BLOCK_ACK_REQ/BASIC_BLOCK_ACK handshake has failed.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +281000.0ns
    • Flags: construct write read
  • CompressedBlockAckTimeout: When this timeout expires, the COMPRESSED_BLOCK_ACK_REQ/COMPRESSED_BLOCK_ACK handshake has failed.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +99000.0ns
    • Flags: construct write read
  • Sifs: The value of the SIFS constant.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +16000.0ns
    • Flags: construct write read
  • EifsNoDifs: The value of EIFS-DIFS
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +60000.0ns
    • Flags: construct write read
  • Slot: The duration of a Slot.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +9000.0ns
    • Flags: construct write read
  • Pifs: The value of the PIFS constant.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +25000.0ns
    • Flags: construct write read
  • MaxPropagationDelay: The maximum propagation delay. Unused for now.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +3333.0ns
    • Flags: construct write read
  • Ssid: The ssid we want to belong to.
    • Set with class: SsidValue
    • Underlying type: Ssid
    • Initial value: default
    • Flags: construct write read

TraceSources defined for this type:

  • MacTx: A packet has been received from higher layers and is being processed in preparation for queueing for transmission.
  • MacTxDrop: A packet has been dropped in the MAC layer before being queued for transmission.
  • MacPromiscRx: A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack. This is a promiscuous trace,
  • MacRx: A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack. This is a non-promiscuous trace,
  • MacRxDrop: A packet has been dropped in the MAC layer after it has been passed up from the physical layer.

Reimplemented from ns3::Object.

Reimplemented in ns3::MeshWifiInterfaceMac, ns3::RegularWifiMac, ns3::StaWifiMac, ns3::ApWifiMac, and ns3::AdhocWifiMac.

Definition at line 130 of file wifi-mac.cc.

References GetAckTimeout(), GetBasicBlockAckTimeout(), GetCompressedBlockAckTimeout(), GetCtsTimeout(), GetDefaultBasicBlockAckTimeout(), GetDefaultCompressedBlockAckTimeout(), GetDefaultCtsAckTimeout(), GetDefaultEifsNoDifs(), GetDefaultMaxPropagationDelay(), GetDefaultSifs(), GetDefaultSlot(), GetEifsNoDifs(), GetPifs(), GetSifs(), GetSlot(), GetSsid(), m_macPromiscRxTrace, m_macRxDropTrace, m_macRxTrace, m_macTxDropTrace, m_macTxTrace, m_maxPropagationDelay, ns3::MakeTraceSourceAccessor(), SetAckTimeout(), SetBasicBlockAckTimeout(), SetCompressedBlockAckTimeout(), SetCtsTimeout(), SetEifsNoDifs(), ns3::TypeId::SetParent(), SetPifs(), SetSifs(), SetSlot(), and SetSsid().

+ Here is the call graph for this function:

void ns3::WifiMac::NotifyPromiscRx ( Ptr< const Packet packet)

Public method used to fire a MacPromiscRx trace. Implemented for encapsulation purposes.

Definition at line 249 of file wifi-mac.cc.

References m_macPromiscRxTrace.

Referenced by ns3::WifiNetDevice::ForwardUp().

+ Here is the caller graph for this function:

void ns3::WifiMac::NotifyRx ( Ptr< const Packet packet)

Public method used to fire a MacRx trace. Implemented for encapsulation purposes.

Definition at line 243 of file wifi-mac.cc.

References m_macRxTrace.

Referenced by ns3::WifiNetDevice::ForwardUp().

+ Here is the caller graph for this function:

void ns3::WifiMac::NotifyRxDrop ( Ptr< const Packet packet)

Public method used to fire a MacRxDrop trace. Implemented for encapsulation purposes.

Definition at line 255 of file wifi-mac.cc.

References m_macRxDropTrace.

Referenced by ns3::StaWifiMac::Receive(), and ns3::ApWifiMac::Receive().

+ Here is the caller graph for this function:

void ns3::WifiMac::NotifyTx ( Ptr< const Packet packet)

Public method used to fire a MacTx trace. Implemented for encapsulation purposes.

Definition at line 231 of file wifi-mac.cc.

References m_macTxTrace.

Referenced by ns3::WifiNetDevice::Send(), and ns3::WifiNetDevice::SendFrom().

+ Here is the caller graph for this function:

void ns3::WifiMac::NotifyTxDrop ( Ptr< const Packet packet)

Public method used to fire a MacTxDrop trace. Implemented for encapsulation purposes.

Definition at line 237 of file wifi-mac.cc.

References m_macTxDropTrace.

Referenced by ns3::StaWifiMac::Enqueue().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetAckTimeout ( Time  ackTimeout)
pure virtual
Parameters
ackTimeoutthe duration of an ACK timeout.

Implemented in ns3::RegularWifiMac.

Referenced by Configure80211_10Mhz(), Configure80211_5Mhz(), Configure80211a(), Configure80211b(), Configure80211g(), and GetTypeId().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetAddress ( Mac48Address  address)
pure virtual
Parameters
addressthe current address of this MAC layer.

Implemented in ns3::RegularWifiMac, ns3::ApWifiMac, and ns3::AdhocWifiMac.

Referenced by ns3::WifiNetDevice::SetAddress().

+ Here is the caller graph for this function:

void ns3::WifiMac::SetBasicBlockAckTimeout ( Time  blockAckTimeout)
virtual

Reimplemented in ns3::RegularWifiMac.

Definition at line 104 of file wifi-mac.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

void ns3::WifiMac::SetCompressedBlockAckTimeout ( Time  blockAckTimeout)
virtual

Reimplemented in ns3::RegularWifiMac.

Definition at line 117 of file wifi-mac.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetCtsTimeout ( Time  ctsTimeout)
pure virtual
Parameters
ctsTimeoutthe duration of a CTS timeout.

Implemented in ns3::RegularWifiMac.

Referenced by Configure80211_10Mhz(), Configure80211_5Mhz(), Configure80211a(), Configure80211b(), Configure80211g(), and GetTypeId().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetEifsNoDifs ( Time  eifsNoDifs)
pure virtual
Parameters
eifsNoDifsthe duration of an EIFS minus DIFS.

This value is used to calculate the EIFS depending on AIFSN.

Implemented in ns3::RegularWifiMac.

Referenced by Configure80211_10Mhz(), Configure80211_5Mhz(), Configure80211a(), Configure80211b(), Configure80211g(), and GetTypeId().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetForwardUpCallback ( Callback< void, Ptr< Packet >, Mac48Address, Mac48Address upCallback)
pure virtual
Parameters
upCallbackthe callback to invoke when a packet must be forwarded up the stack.

Referenced by ns3::WifiNetDevice::CompleteConfig().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetLinkDownCallback ( Callback< void >  linkDown)
pure virtual
Parameters
linkDownthe callback to invoke when the link becomes down.

Implemented in ns3::RegularWifiMac.

Referenced by ns3::WifiNetDevice::CompleteConfig().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetLinkUpCallback ( Callback< void >  linkUp)
pure virtual
Parameters
linkUpthe callback to invoke when the link becomes up.

Implemented in ns3::RegularWifiMac, ns3::MeshWifiInterfaceMac, ns3::ApWifiMac, and ns3::AdhocWifiMac.

Referenced by ns3::WifiNetDevice::CompleteConfig().

+ Here is the caller graph for this function:

void ns3::WifiMac::SetMaxPropagationDelay ( Time  delay)
Parameters
delaythe max propagation delay.

Unused for now.

Definition at line 214 of file wifi-mac.cc.

References m_maxPropagationDelay.

virtual void ns3::WifiMac::SetPifs ( Time  pifs)
pure virtual
Parameters
pifsthe pifs duration.

Implemented in ns3::RegularWifiMac.

Referenced by Configure80211_10Mhz(), Configure80211_5Mhz(), Configure80211a(), Configure80211b(), Configure80211g(), and GetTypeId().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetPromisc ( void  )
pure virtual

Sets the interface in promiscuous mode.

Enables promiscuous mode on the interface. Note that any further filtering on the incoming frame path may affect the overall behavior.

Implemented in ns3::RegularWifiMac.

Referenced by ns3::WifiNetDevice::SetPromiscReceiveCallback().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetSifs ( Time  sifs)
pure virtual
Parameters
sifsthe sifs duration

Implemented in ns3::RegularWifiMac.

Referenced by Configure80211_10Mhz(), Configure80211_5Mhz(), Configure80211a(), Configure80211b(), Configure80211g(), and GetTypeId().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetSlot ( Time  slotTime)
pure virtual
Parameters
slotTimethe slot duration

Implemented in ns3::RegularWifiMac.

Referenced by Configure80211_10Mhz(), Configure80211_5Mhz(), Configure80211a(), Configure80211b(), Configure80211g(), and GetTypeId().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetSsid ( Ssid  ssid)
pure virtual
Parameters
ssidthe current ssid of this MAC layer.

Implemented in ns3::RegularWifiMac.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetWifiPhy ( Ptr< WifiPhy phy)
pure virtual
Parameters
phythe physical layer attached to this MAC.

Implemented in ns3::RegularWifiMac.

Referenced by ns3::WifiNetDevice::CompleteConfig().

+ Here is the caller graph for this function:

virtual void ns3::WifiMac::SetWifiRemoteStationManager ( Ptr< WifiRemoteStationManager stationManager)
pure virtual
Parameters
stationManagerthe station manager attached to this MAC.

Implemented in ns3::RegularWifiMac, and ns3::ApWifiMac.

Referenced by ns3::WifiNetDevice::CompleteConfig().

+ Here is the caller graph for this function:

virtual bool ns3::WifiMac::SupportsSendFrom ( void  ) const
pure virtual

Implemented in ns3::RegularWifiMac, ns3::ApWifiMac, and ns3::MeshWifiInterfaceMac.

Referenced by ns3::WifiNetDevice::SupportsSendFrom().

+ Here is the caller graph for this function:

Member Data Documentation

TracedCallback<Ptr<const Packet> > ns3::WifiMac::m_macPromiscRxTrace
private

The trace source fired for packets successfully received by the device immediately before being forwarded up to higher layers (at the L2/L3 transition). This is a promiscuous trace.

See Also
class CallBackTraceSource

Definition at line 286 of file wifi-mac.h.

Referenced by GetTypeId(), and NotifyPromiscRx().

TracedCallback<Ptr<const Packet> > ns3::WifiMac::m_macRxDropTrace
private

The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer during reception.

See Also
class CallBackTraceSource

Definition at line 303 of file wifi-mac.h.

Referenced by GetTypeId(), and NotifyRxDrop().

TracedCallback<Ptr<const Packet> > ns3::WifiMac::m_macRxTrace
private

The trace source fired for packets successfully received by the device immediately before being forwarded up to higher layers (at the L2/L3 transition). This is a non- promiscuous trace.

See Also
class CallBackTraceSource

Definition at line 295 of file wifi-mac.h.

Referenced by GetTypeId(), and NotifyRx().

TracedCallback<Ptr<const Packet> > ns3::WifiMac::m_macTxDropTrace
private

The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer during transmission.

See Also
class CallBackTraceSource

Definition at line 277 of file wifi-mac.h.

Referenced by GetTypeId(), and NotifyTxDrop().

TracedCallback<Ptr<const Packet> > ns3::WifiMac::m_macTxTrace
private

The trace source fired when packets come into the "top" of the device at the L3/L2 transition, before being queued for transmission.

See Also
class CallBackTraceSource

Definition at line 269 of file wifi-mac.h.

Referenced by GetTypeId(), and NotifyTx().

Time ns3::WifiMac::m_maxPropagationDelay
private

Definition at line 253 of file wifi-mac.h.

Referenced by GetMaxPropagationDelay(), GetTypeId(), and SetMaxPropagationDelay().


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