22 #ifndef LTE_NET_DEVICE_H 23 #define LTE_NET_DEVICE_H 25 #include <ns3/net-device.h> 26 #include <ns3/event-id.h> 27 #include <ns3/mac64-address.h> 28 #include <ns3/traced-callback.h> 29 #include <ns3/nstime.h> 30 #include <ns3/lte-phy.h> 31 #include <ns3/lte-control-messages.h> 63 virtual void SetIfIndex (
const uint32_t index);
66 virtual bool SetMtu (
const uint16_t mtu);
67 virtual uint16_t
GetMtu (
void)
const;
Smart pointer class similar to boost::intrusive_ptr.
virtual void DoDispose(void)
Destructor implementation.
virtual void SetNode(Ptr< Node > node)
Forward calls to a chain of Callback.
virtual Address GetAddress(void) const
virtual uint32_t GetIfIndex(void) const
a polymophic address class
virtual void SetIfIndex(const uint32_t index)
virtual Address GetMulticast(Ipv4Address addr) const
Make and return a MAC multicast address using the provided multicast group.
virtual void SetAddress(Address address)
Set the address of this interface.
virtual bool IsMulticast(void) const
NetDevice::ReceiveCallback m_rxCallback
receive callback
static TypeId GetTypeId(void)
Get the type ID.
virtual bool SupportsSendFrom(void) const
Ptr< Node > m_node
the node
Every class exported by the ns3 library is enclosed in the ns3 namespace.
TracedCallback m_linkChangeCallbacks
link change callback
virtual void AddLinkChangeCallback(Callback< void > callback)
void Receive(Ptr< Packet > p)
receive a packet from the lower layers in order to forward it to the upper layers ...
Mac64Address m_address
MAC address - only relevant for UEs.
virtual ~LteNetDevice(void)
Describes an IPv6 address.
Ipv4 addresses are stored in host order in this class.
virtual Address GetBroadcast(void) const
Network layer to device interface.
LteNetDevice & operator=(const LteNetDevice &)
assignment operator
virtual Ptr< Channel > GetChannel(void) const
virtual Ptr< Node > GetNode(void) const
virtual void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
virtual bool SetMtu(const uint16_t mtu)
uint32_t m_ifIndex
interface index
virtual bool IsBroadcast(void) const
LteNetDevice provides basic implementation for all LTE network devices.
virtual bool IsPointToPoint(void) const
Return true if the net device is on a point-to-point link.
virtual uint16_t GetMtu(void) const
a unique identifier for an interface.
virtual bool SendFrom(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
virtual bool NeedsArp(void) const
virtual bool IsLinkUp(void) const
virtual void SetReceiveCallback(NetDevice::ReceiveCallback cb)
virtual bool IsBridge(void) const
Return true if the net device is acting as a bridge.