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;
 
   86   virtual void SetIfIndex (
const uint32_t index);
 
   91   virtual bool SetMtu (
const uint16_t mtu);
 
   92   virtual uint16_t 
GetMtu (
void) 
const;
 
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 
 
TracedCallback< Ptr< const Packet >, Mac48Address > m_txLogger
 
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 
 
Ptr< WifiRemoteStationManager > m_stationManager
 
virtual Address GetMulticast(Ipv4Address multicastGroup) const 
Make and return a MAC multicast address using the provided multicast group. 
 
TracedCallback< Ptr< const Packet >, Mac48Address > m_rxLogger
 
void ForwardUp(Ptr< Packet > packet, Mac48Address from, Mac48Address to)
 
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)
 
Ptr< WifiChannel > DoGetChannel(void) const 
 
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 
 
TracedCallback m_linkChanges
 
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
 
virtual uint32_t GetIfIndex(void) const 
 
static const uint16_t MAX_MSDU_SIZE
 
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)
 
NetDevice::ReceiveCallback m_forwardUp
 
Network layer to device interface. 
 
virtual bool IsLinkUp(void) const 
 
virtual void AddLinkChangeCallback(Callback< void > callback)
 
void CompleteConfig(void)
 
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)
 
static TypeId GetTypeId(void)
 
NetDevice::PromiscReceiveCallback m_promiscRx
 
virtual void SetAddress(Address address)