|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #ifndef WIFI_NET_DEVICE_H
22 #define WIFI_NET_DEVICE_H
24 #include "ns3/net-device.h"
25 #include "ns3/traced-callback.h"
29 class WifiRemoteStationManager;
32 class HtConfiguration;
33 class VhtConfiguration;
34 class HeConfiguration;
115 void SetIfIndex (
const uint32_t index)
override;
120 bool SetMtu (
const uint16_t mtu)
override;
121 uint16_t
GetMtu (
void)
const override;
122 bool IsLinkUp (
void)
const override;
129 bool IsBridge (
void)
const override;
133 bool NeedsArp (
void)
const override;
a unique identifier for an interface.
void DoInitialize(void) override
Initialize() implementation.
bool SupportsSendFrom(void) const override
uint32_t m_ifIndex
IF index.
Ptr< HtConfiguration > GetHtConfiguration(void) const
void CompleteConfig(void)
Complete the configuration of this Wi-Fi device by connecting all lower components (e....
void AddLinkChangeCallback(Callback< void > callback) override
bool m_configComplete
configuration complete
Ptr< WifiPhy > GetPhy(void) const
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetMac(const Ptr< WifiMac > mac)
void LinkDown(void)
Set that the link is down (i.e.
Ptr< Node > m_node
the node
bool NeedsArp(void) const override
void SetHeConfiguration(Ptr< HeConfiguration > heConfiguration)
void SetVhtConfiguration(Ptr< VhtConfiguration > vhtConfiguration)
Ptr< WifiPhy > m_phy
the phy
void SetNode(const Ptr< Node > node) override
Ipv4 addresses are stored in host order in this class.
Describes an IPv6 address.
bool IsPointToPoint(void) const override
Return true if the net device is on a point-to-point link.
Address GetAddress(void) const override
static const uint16_t MAX_MSDU_SIZE
This value conforms to the 802.11 specification.
NetDevice::ReceiveCallback m_forwardUp
forward up callback
TracedCallback< Ptr< const Packet >, Mac48Address > m_txLogger
transmit trace callback
Ptr< VhtConfiguration > m_vhtConfiguration
the VhtConfiguration
Ptr< HeConfiguration > GetHeConfiguration(void) const
Hold together all Wifi-related objects.
void SetHtConfiguration(Ptr< HtConfiguration > htConfiguration)
Smart pointer class similar to boost::intrusive_ptr.
static TypeId GetTypeId(void)
Get the type ID.
bool IsBridge(void) const override
Return true if the net device is acting as a bridge.
void SetPromiscReceiveCallback(PromiscReceiveCallback cb) override
Address GetMulticast(Ipv4Address multicastGroup) const override
Make and return a MAC multicast address using the provided multicast group.
bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) override
Ptr< HtConfiguration > m_htConfiguration
the HtConfiguration
a polymophic address class
Ptr< VhtConfiguration > GetVhtConfiguration(void) const
void ForwardUp(Ptr< const Packet > packet, Mac48Address from, Mac48Address to)
Receive a packet from the lower layer and pass the packet up the stack.
Ptr< Node > GetNode(void) const override
void LinkUp(void)
Set that the link is up.
void DoDispose(void) override
Destructor implementation.
Ptr< WifiRemoteStationManager > GetRemoteStationManager(void) const
bool IsMulticast(void) const override
WifiNetDevice(const WifiNetDevice &o)
Copy constructor.
bool IsLinkUp(void) const override
TracedCallback< Ptr< const Packet >, Mac48Address > m_rxLogger
receive trace callback
Ptr< WifiRemoteStationManager > m_stationManager
the station manager
uint16_t GetMtu(void) const override
void SetAddress(Address address) override
Set the address of this interface.
NetDevice::PromiscReceiveCallback m_promiscRx
promiscuous receive callback
uint32_t GetIfIndex(void) const override
WifiNetDevice & operator=(const WifiNetDevice &o)
Assignment operator.
TracedCallback m_linkChanges
link change callback
void SetRemoteStationManager(const Ptr< WifiRemoteStationManager > manager)
bool IsBroadcast(void) const override
Forward calls to a chain of Callback.
bool SendFrom(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber) override
Ptr< HeConfiguration > m_heConfiguration
the HeConfiguration
Address GetBroadcast(void) const override
void SetIfIndex(const uint32_t index) override
void SetPhy(const Ptr< WifiPhy > phy)
void SetReceiveCallback(NetDevice::ReceiveCallback cb) override
Network layer to device interface.
Ptr< WifiMac > m_mac
the MAC
bool SetMtu(const uint16_t mtu) override
Ptr< WifiMac > GetMac(void) const
Ptr< Channel > GetChannel(void) const override