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 bool IsLinkUp(void) const
virtual void DoDispose(void)
Destructor implementation.
virtual void SetNode(Ptr< Node > node)
Forward calls to a chain of Callback.
virtual Address GetMulticast(Ipv4Address addr) const
Make and return a MAC multicast address using the provided multicast group.
virtual Address GetBroadcast(void) const
a polymophic address class
virtual Ptr< Node > GetNode(void) const
virtual void SetIfIndex(const uint32_t index)
virtual uint32_t GetIfIndex(void) const
virtual void SetAddress(Address address)
Set the address of this interface.
NetDevice::ReceiveCallback m_rxCallback
receive callback
virtual bool IsPointToPoint(void) const
Return true if the net device is on a point-to-point link.
static TypeId GetTypeId(void)
Get the type ID.
Ptr< Node > m_node
the node
virtual uint16_t GetMtu(void) const
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual bool NeedsArp(void) const
virtual bool IsBridge(void) const
Return true if the net device is acting as a bridge.
virtual bool IsMulticast(void) const
virtual bool IsBroadcast(void) const
virtual Address GetAddress(void) const
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.
Network layer to device interface.
LteNetDevice & operator=(const LteNetDevice &)
assignment operator
virtual void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
virtual bool SetMtu(const uint16_t mtu)
uint32_t m_ifIndex
interface index
LteNetDevice provides basic implementation for all LTE network devices.
virtual Ptr< Channel > GetChannel(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 SupportsSendFrom(void) const
virtual void SetReceiveCallback(NetDevice::ReceiveCallback cb)