|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
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;
a unique identifier for an interface.
virtual Address GetAddress(void) const
LteNetDevice(const LteNetDevice &)
type conversion operator
virtual bool IsMulticast(void) const
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual bool IsLinkUp(void) const
virtual void DoDispose(void)
Destructor implementation.
virtual bool SetMtu(const uint16_t mtu)
Ipv4 addresses are stored in host order in this class.
Describes an IPv6 address.
virtual bool SendFrom(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
virtual void SetAddress(Address address)
Set the address of this interface.
virtual void SetReceiveCallback(NetDevice::ReceiveCallback cb)
virtual uint32_t GetIfIndex(void) const
virtual bool IsBroadcast(void) const
Mac64Address m_address
MAC address - only relevant for UEs.
a polymophic address class
virtual void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
virtual uint16_t GetMtu(void) const
virtual Ptr< Channel > GetChannel(void) const
virtual Address GetMulticast(Ipv4Address addr) const
Make and return a MAC multicast address using the provided multicast group.
TracedCallback m_linkChangeCallbacks
link change callback
virtual void SetNode(Ptr< Node > node)
virtual bool NeedsArp(void) const
virtual bool SupportsSendFrom(void) const
virtual bool IsBridge(void) const
Return true if the net device is acting as a bridge.
LteNetDevice & operator=(const LteNetDevice &)
assignment operator
Ptr< Node > m_node
the node
virtual void AddLinkChangeCallback(Callback< void > callback)
virtual Address GetBroadcast(void) const
void Receive(Ptr< Packet > p)
receive a packet from the lower layers in order to forward it to the upper layers
virtual void SetIfIndex(const uint32_t index)
virtual Ptr< Node > GetNode(void) const
LteNetDevice provides basic implementation for all LTE network devices.
uint32_t m_ifIndex
interface index
virtual ~LteNetDevice(void)
Forward calls to a chain of Callback.
static TypeId GetTypeId(void)
Get the type ID.
virtual bool IsPointToPoint(void) const
Return true if the net device is on a point-to-point link.
NetDevice::ReceiveCallback m_rxCallback
receive callback
Network layer to device interface.