21 #ifndef UAN_NET_DEVICE_H
22 #define UAN_NET_DEVICE_H
24 #include "ns3/net-device.h"
25 #include "ns3/pointer.h"
26 #include "ns3/traced-callback.h"
27 #include "uan-address.h"
60 static TypeId GetTypeId (
void);
104 void SetSleepMode (
bool sleep);
107 virtual void SetIfIndex (
const uint32_t index);
111 virtual bool SetMtu (
const uint16_t mtu);
112 virtual uint16_t
GetMtu (
void)
const;
virtual bool SetMtu(const uint16_t mtu)
virtual bool SendFrom(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
Ptr< UanMac > GetMac(void) const
virtual void SetReceiveCallback(NetDevice::ReceiveCallback cb)
smart pointer class similar to boost::intrusive_ptr
void SetMac(Ptr< UanMac > mac)
virtual void SetAddress(Address address)
forward calls to a chain of CallbackAn ns3::TracedCallback has almost exactly the same API as a norma...
void SetChannel(Ptr< UanChannel > channel)
virtual Address GetMulticast(Ipv4Address multicastGroup) const
Make and return a MAC multicast address using the provided multicast group.
std::list< Ptr< UanPhy > > UanPhyList
UanPhyList is defined as a standard template lib list of UanPhy objects.
virtual bool IsPointToPoint(void) const
Return true if the net device is on a point-to-point link.
virtual bool IsMulticast(void) const
virtual bool IsLinkUp(void) const
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
virtual uint16_t GetMtu(void) const
virtual Ptr< Channel > GetChannel(void) const
virtual Address GetBroadcast(void) const
a polymophic address class
Ptr< UanTransducer > GetTransducer(void) const
virtual void AddLinkChangeCallback(Callback< void > callback)
virtual uint32_t GetIfIndex(void) const
virtual Ptr< Node > GetNode(void) const
virtual bool IsBroadcast(void) const
std::list< Ptr< UanTransducer > > UanTransducerList
UanTransducerList is a standard template lib list of UanTransducer objects.
virtual bool SupportsSendFrom(void) const
Net device for UAN models.
Ptr< UanPhy > GetPhy(void) const
virtual Address GetAddress(void) const
virtual void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
void SetPhy(Ptr< UanPhy > phy)
Describes an IPv6 address.
Ipv4 addresses are stored in host order in this class.
Network layer to device interface.
virtual bool IsBridge(void) const
Return true if the net device is acting as a bridge.
virtual void SetNode(Ptr< Node > node)
void SetTransducer(Ptr< UanTransducer > trans)
virtual bool NeedsArp(void) const
a unique identifier for an interface.
virtual void SetIfIndex(const uint32_t index)