22 #include "ns3/packet.h" 42 .SetGroupName (
"Wifi")
43 .AddAttribute (
"Ssid",
"The ssid we want to belong to.",
48 .AddTraceSource (
"MacTx",
49 "A packet has been received from higher layers and is being processed in preparation for " 50 "queueing for transmission.",
52 "ns3::Packet::TracedCallback")
53 .AddTraceSource (
"MacTxDrop",
54 "A packet has been dropped in the MAC layer before transmission.",
56 "ns3::Packet::TracedCallback")
57 .AddTraceSource (
"MacPromiscRx",
58 "A packet has been received by this device, has been passed up from the physical layer " 59 "and is being forwarded up the local protocol stack. This is a promiscuous trace.",
61 "ns3::Packet::TracedCallback")
62 .AddTraceSource (
"MacRx",
63 "A packet has been received by this device, has been passed up from the physical layer " 64 "and is being forwarded up the local protocol stack. This is a non-promiscuous trace.",
66 "ns3::Packet::TracedCallback")
67 .AddTraceSource (
"MacRxDrop",
68 "A packet has been dropped in the MAC layer after it has been passed up from the physical layer.",
70 "ns3::Packet::TracedCallback")
131 dcf->
SetMinCw ((cwmin + 1) / 4 - 1);
132 dcf->
SetMaxCw ((cwmin + 1) / 2 - 1);
144 dcf->
SetMinCw ((cwmin + 1) / 2 - 1);
Ptr< HeConfiguration > GetHeConfiguration(void) const
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
Ptr< HeConfiguration > GetHeConfiguration(void) const
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
TracedCallback< Ptr< const Packet > > m_macRxDropTrace
The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer ...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
TracedCallback< Ptr< const Packet > > m_macTxDropTrace
The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer ...
void NotifyRxDrop(Ptr< const Packet > packet)
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
TracedCallback< Ptr< const Packet > > m_macPromiscRxTrace
The trace source fired for packets successfully received by the device immediately before being forwa...
void ConfigureDcf(Ptr< Txop > dcf, uint32_t cwmin, uint32_t cwmax, bool isDsss, AcIndex ac)
virtual void SetSsid(Ssid ssid)=0
Ptr< NetDevice > GetDevice(void) const
Return the device this PHY is associated with.
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
virtual Ssid GetSsid(void) const =0
Ptr< HtConfiguration > GetHtConfiguration(void) const
void SetDevice(const Ptr< NetDevice > device)
Sets the device this PHY is associated with.
TracedCallback< Ptr< const Packet > > m_macTxTrace
The trace source fired when packets come into the "top" of the device at the L3/L2 transition...
void NotifyTxDrop(Ptr< const Packet > packet)
Ptr< const AttributeChecker > MakeSsidChecker(void)
void NotifyPromiscRx(Ptr< const Packet > packet)
virtual void DoDispose()
Destructor implementation.
void NotifyTx(Ptr< const Packet > packet)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeAccessor > MakeSsidAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
The IEEE 802.11 SSID Information Element.
void NotifyRx(Ptr< const Packet > packet)
TracedCallback< Ptr< const Packet > > m_macRxTrace
The trace source fired for packets successfully received by the device immediately before being forwa...
void SetMinCw(uint32_t minCw)
Set the minimum contention window size.
void SetMaxCw(uint32_t maxCw)
Set the maximum contention window size.
Ptr< VhtConfiguration > GetVhtConfiguration(void) const
void SetTxopLimit(Time txopLimit)
Set the TXOP limit.
AttributeValue implementation for Ssid.
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
void SetAifsn(uint8_t aifsn)
Set the number of slots that make up an AIFS.
Ptr< NetDevice > m_device
Pointer to the device.
A base class which provides memory management and object aggregation.
Ptr< VhtConfiguration > GetVhtConfiguration(void) const
Ptr< HtConfiguration > GetHtConfiguration(void) const
a unique identifier for an interface.
static TypeId GetTypeId(void)
Get the type ID.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...