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"
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)
void SetSleepMode(bool sleep)
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
Ptr< UanTransducer > m_trans
virtual Address GetBroadcast(void) const
a polymophic address class
Ptr< UanTransducer > GetTransducer(void) const
ReceiveCallback m_forwardUp
virtual void AddLinkChangeCallback(Callback< void > callback)
virtual uint32_t GetIfIndex(void) const
virtual void ForwardUp(Ptr< Packet > pkt, const UanAddress &src)
TracedCallback m_linkChanges
virtual Ptr< Node > GetNode(void) const
TracedCallback< Ptr< const Packet >, UanAddress > m_rxLogger
virtual bool IsBroadcast(void) const
std::list< Ptr< UanTransducer > > UanTransducerList
UanTransducerList is a standard template lib list of UanTransducer objects.
static TypeId GetTypeId(void)
virtual bool SupportsSendFrom(void) const
TracedCallback< Ptr< const Packet >, UanAddress > m_txLogger
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.
Ptr< UanChannel > m_channel
virtual void SetNode(Ptr< Node > node)
void SetTransducer(Ptr< UanTransducer > trans)
virtual bool NeedsArp(void) const
Ptr< UanChannel > DoGetChannel(void) const
a unique identifier for an interface.
virtual void SetIfIndex(const uint32_t index)