#include <wifi-mac.h>
Public Member Functions | |
virtual void | SetSlot (Time slotTime)=0 |
virtual void | SetSifs (Time sifs)=0 |
virtual void | SetEifsNoDifs (Time eifsNoDifs)=0 |
virtual void | SetPifs (Time pifs)=0 |
virtual void | SetCtsTimeout (Time ctsTimeout)=0 |
virtual void | SetAckTimeout (Time ackTimeout)=0 |
void | SetMaxPropagationDelay (Time delay) |
virtual Time | GetPifs (void) const =0 |
virtual Time | GetSifs (void) const =0 |
virtual Time | GetSlot (void) const =0 |
virtual Time | GetEifsNoDifs (void) const =0 |
virtual Time | GetCtsTimeout (void) const =0 |
virtual Time | GetAckTimeout (void) const =0 |
Time | GetMsduLifetime (void) const |
Time | GetMaxPropagationDelay (void) const |
uint32_t | GetMaxMsduSize (void) const |
virtual Mac48Address | GetAddress (void) const =0 |
virtual Ssid | GetSsid (void) const =0 |
virtual void | SetAddress (Mac48Address address)=0 |
virtual void | SetSsid (Ssid ssid)=0 |
virtual Mac48Address | GetBssid (void) const =0 |
virtual void | Enqueue (Ptr< const Packet > packet, Mac48Address to, Mac48Address from)=0 |
virtual void | Enqueue (Ptr< const Packet > packet, Mac48Address to)=0 |
virtual void | SetWifiPhy (Ptr< WifiPhy > phy)=0 |
virtual void | SetWifiRemoteStationManager (Ptr< WifiRemoteStationManager > stationManager)=0 |
virtual void | SetForwardUpCallback (Callback< void, Ptr< Packet >, Mac48Address, Mac48Address > upCallback)=0 |
virtual void | SetLinkUpCallback (Callback< void > linkUp)=0 |
virtual void | SetLinkDownCallback (Callback< void > linkDown)=0 |
void | NotifyTx (Ptr< const Packet > packet) |
void | NotifyTxDrop (Ptr< const Packet > packet) |
void | NotifyRx (Ptr< const Packet > packet) |
void | NotifyPromiscRx (Ptr< const Packet > packet) |
void | NotifyRxDrop (Ptr< const Packet > packet) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::WifiMac. | |
Private Attributes | |
TracedCallback< Ptr< const Packet > > | m_macTxTrace |
TracedCallback< Ptr< const Packet > > | m_macTxDropTrace |
TracedCallback< Ptr< const Packet > > | m_macPromiscRxTrace |
TracedCallback< Ptr< const Packet > > | m_macRxTrace |
TracedCallback< Ptr< const Packet > > | m_macRxDropTrace |
This class encapsulates all the low-level MAC functionality DCA, EDCA, etc) and all the high-level MAC functionality (association/disassociation state machines).
virtual void ns3::WifiMac::Enqueue | ( | Ptr< const Packet > | packet, | |
Mac48Address | to | |||
) | [pure virtual] |
packet | the packet to send. | |
to | the address to which the packet should be sent. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::Enqueue | ( | Ptr< const Packet > | packet, | |
Mac48Address | to, | |||
Mac48Address | from | |||
) | [pure virtual] |
packet | the packet to send. | |
to | the address to which the packet should be sent. | |
from | the address from which the packet should be sent. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual Time ns3::WifiMac::GetAckTimeout | ( | void | ) | const [pure virtual] |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual Mac48Address ns3::WifiMac::GetAddress | ( | void | ) | const [pure virtual] |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual Mac48Address ns3::WifiMac::GetBssid | ( | void | ) | const [pure virtual] |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual Time ns3::WifiMac::GetCtsTimeout | ( | void | ) | const [pure virtual] |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual Time ns3::WifiMac::GetEifsNoDifs | ( | void | ) | const [pure virtual] |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
uint32_t ns3::WifiMac::GetMaxMsduSize | ( | void | ) | const |
Time ns3::WifiMac::GetMaxPropagationDelay | ( | void | ) | const |
Unused for now.
Time ns3::WifiMac::GetMsduLifetime | ( | void | ) | const |
Unused for now.
virtual Time ns3::WifiMac::GetPifs | ( | void | ) | const [pure virtual] |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual Time ns3::WifiMac::GetSifs | ( | void | ) | const [pure virtual] |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual Time ns3::WifiMac::GetSlot | ( | void | ) | const [pure virtual] |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual Ssid ns3::WifiMac::GetSsid | ( | void | ) | const [pure virtual] |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
static 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:
Reimplemented from ns3::Object.
Reimplemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
Public method used to fire a MacPromiscRx trace. Implemented for encapsulation purposes.
Public method used to fire a MacRx trace. Implemented for encapsulation purposes.
Public method used to fire a MacRxDrop trace. Implemented for encapsulation purposes.
Public method used to fire a MacTx trace. Implemented for encapsulation purposes.
Public method used to fire a MacTxDrop trace. Implemented for encapsulation purposes.
virtual void ns3::WifiMac::SetAckTimeout | ( | Time | ackTimeout | ) | [pure virtual] |
ackTimeout | the duration of an ACK timeout. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetAddress | ( | Mac48Address | address | ) | [pure virtual] |
address | the current address of this MAC layer. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetCtsTimeout | ( | Time | ctsTimeout | ) | [pure virtual] |
ctsTimeout | the duration of a CTS timeout. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetEifsNoDifs | ( | Time | eifsNoDifs | ) | [pure virtual] |
eifsNoDifs | the duration of an EIFS minus DIFS. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetForwardUpCallback | ( | Callback< void, Ptr< Packet >, Mac48Address, Mac48Address > | upCallback | ) | [pure virtual] |
upCallback | the callback to invoke when a packet must be forwarded up the stack. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetLinkDownCallback | ( | Callback< void > | linkDown | ) | [pure virtual] |
linkDown | the callback to invoke when the link becomes down. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetLinkUpCallback | ( | Callback< void > | linkUp | ) | [pure virtual] |
linkUp | the callback to invoke when the link becomes up. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
void ns3::WifiMac::SetMaxPropagationDelay | ( | Time | delay | ) |
delay | the max propagation delay. |
virtual void ns3::WifiMac::SetPifs | ( | Time | pifs | ) | [pure virtual] |
pifs | the pifs duration. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetSifs | ( | Time | sifs | ) | [pure virtual] |
sifs | the sifs duration |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetSlot | ( | Time | slotTime | ) | [pure virtual] |
slotTime | the slot duration |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetSsid | ( | Ssid | ssid | ) | [pure virtual] |
ssid | the current ssid of this MAC layer. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
phy | the physical layer attached to this MAC. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
virtual void ns3::WifiMac::SetWifiRemoteStationManager | ( | Ptr< WifiRemoteStationManager > | stationManager | ) | [pure virtual] |
stationManager | the station manager attached to this MAC. |
Implemented in ns3::AdhocWifiMac, ns3::NqapWifiMac, and ns3::NqstaWifiMac.
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.
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.
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.
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.
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.