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 NetDeviceQueueInterface;
96 bool SetMtu (
const uint16_t mtu);
97 uint16_t
GetMtu (
void)
const;
bool SetMtu(const uint16_t mtu)
Smart pointer class similar to boost::intrusive_ptr.
TracedCallback< Ptr< const Packet >, Mac48Address > m_txLogger
transmit trace callback
void LinkUp(void)
Set that the link is up.
Address GetMulticast(Ipv4Address multicastGroup) const
Make and return a MAC multicast address using the provided multicast group.
Forward calls to a chain of Callback.
Ptr< WifiRemoteStationManager > m_stationManager
the station manager
bool SupportsSendFrom(void) const
TracedCallback< Ptr< const Packet >, Mac48Address > m_rxLogger
receive trace callback
void ForwardUp(Ptr< Packet > packet, Mac48Address from, Mac48Address to)
Receive a packet from the lower layer and pass the packet up the stack.
uint32_t GetIfIndex(void) const
Address GetAddress(void) const
uint16_t GetMtu(void) const
a polymophic address class
void DoDispose(void)
Destructor implementation.
Ptr< WifiRemoteStationManager > GetRemoteStationManager(void) const
void SetMac(const Ptr< WifiMac > mac)
uint8_t SelectQueue(Ptr< QueueItem > item) const
Determine the tx queue for a given packet.
static const uint16_t MAX_MSDU_SIZE
This value conforms to the 802.11 specification.
bool IsMulticast(void) const
Ptr< WifiMac > m_mac
the MAC
Ptr< WifiPhy > m_phy
the phy
Address GetBroadcast(void) const
Hold together all Wifi-related objects.
Ptr< Channel > GetChannel(void) const
bool IsBroadcast(void) const
Ptr< WifiPhy > GetPhy(void) const
Every class exported by the ns3 library is enclosed in the ns3 namespace.
TracedCallback m_linkChanges
link change callback
bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
Ptr< Node > m_node
the node
void FlowControlConfig(void)
Perform the actions needed to support flow control and dynamic queue limits.
void DoInitialize(void)
Initialize() implementation.
uint32_t m_ifIndex
IF index.
bool SendFrom(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
Describes an IPv6 address.
void SetPhy(const Ptr< WifiPhy > phy)
Ipv4 addresses are stored in host order in this class.
void SetIfIndex(const uint32_t index)
Ptr< WifiMac > GetMac(void) const
NetDevice::ReceiveCallback m_forwardUp
forward up callback
bool IsBridge(void) const
Return true if the net device is acting as a bridge.
bool IsPointToPoint(void) const
Return true if the net device is on a point-to-point link.
Network layer to device interface.
void AddLinkChangeCallback(Callback< void > callback)
void CompleteConfig(void)
Complete the configuration of this Wi-Fi device by connecting all lower components (e...
void NotifyNewAggregate(void)
Notify all Objects aggregated to this one of a new Object being aggregated.
void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
bool IsLinkUp(void) const
WifiNetDevice & operator=(const WifiNetDevice &o)
Assignment operator.
void LinkDown(void)
Set that the link is down (i.e.
Ptr< NetDeviceQueueInterface > m_queueInterface
NetDevice queue interface.
a unique identifier for an interface.
void SetReceiveCallback(NetDevice::ReceiveCallback cb)
static TypeId GetTypeId(void)
Get the type ID.
NetDevice::PromiscReceiveCallback m_promiscRx
promiscious receive callback
bool m_configComplete
configuration complete
void SetNode(const Ptr< Node > node)
void SetAddress(Address address)
Set the address of this interface.
bool NeedsArp(void) const
void SetRemoteStationManager(const Ptr< WifiRemoteStationManager > manager)
Ptr< Node > GetNode(void) const