21 #ifndef WIFI_NET_DEVICE_H
22 #define WIFI_NET_DEVICE_H
24 #include "ns3/net-device.h"
25 #include "ns3/packet.h"
26 #include "ns3/traced-callback.h"
27 #include "ns3/mac48-address.h"
32 class WifiRemoteStationManager;
54 static TypeId GetTypeId (
void);
86 virtual void SetIfIndex (
const uint32_t index);
91 virtual bool SetMtu (
const uint16_t mtu);
92 virtual uint16_t
GetMtu (
void)
const;
115 static const uint16_t MAX_MSDU_SIZE = 2304;
121 void LinkDown (
void);
124 void CompleteConfig (
void);
139 mutable uint16_t m_mtu;
140 bool m_configComplete;
virtual void SetNode(Ptr< Node > node)
virtual bool IsBridge(void) const
Return true if the net device is acting as a bridge.
virtual bool SetMtu(const uint16_t mtu)
smart pointer class similar to boost::intrusive_ptr
virtual uint16_t GetMtu(void) const
forward calls to a chain of CallbackAn ns3::TracedCallback has almost exactly the same API as a norma...
virtual Address GetAddress(void) const
virtual Address GetMulticast(Ipv4Address multicastGroup) const
Make and return a MAC multicast address using the provided multicast group.
virtual Ptr< Channel > GetChannel(void) const
virtual bool IsBroadcast(void) const
a polymophic address class
void SetMac(Ptr< WifiMac > mac)
virtual bool IsMulticast(void) const
Ptr< WifiPhy > GetPhy(void) const
virtual void DoDispose(void)
Ptr< WifiRemoteStationManager > GetRemoteStationManager(void) const
void SetPhy(Ptr< WifiPhy > phy)
virtual bool SupportsSendFrom(void) const
Hold together all Wifi-related objects.This class holds together ns3::WifiChannel, ns3::WifiPhy, ns3::WifiMac, and, ns3::WifiRemoteStationManager.
void SetRemoteStationManager(Ptr< WifiRemoteStationManager > manager)
virtual Ptr< Node > GetNode(void) const
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
virtual uint32_t GetIfIndex(void) const
virtual void DoInitialize(void)
virtual bool NeedsArp(void) const
virtual bool SendFrom(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
virtual Address GetBroadcast(void) const
Describes an IPv6 address.
Ipv4 addresses are stored in host order in this class.
virtual void SetIfIndex(const uint32_t index)
Network layer to device interface.
virtual bool IsLinkUp(void) const
virtual void AddLinkChangeCallback(Callback< void > callback)
Ptr< WifiMac > GetMac(void) const
virtual void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
virtual bool IsPointToPoint(void) const
Return true if the net device is on a point-to-point link.
a unique identifier for an interface.
virtual void SetReceiveCallback(NetDevice::ReceiveCallback cb)
virtual void SetAddress(Address address)