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/mac48-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>
59 virtual void SetIfIndex (
const uint32_t index);
62 virtual bool SetMtu (
const uint16_t mtu);
63 virtual uint16_t
GetMtu (
void)
const;
smart pointer class similar to boost::intrusive_ptr
virtual bool IsLinkUp(void) const
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
virtual void SetNode(Ptr< Node > node)
forward calls to a chain of CallbackAn ns3::TracedCallback has almost exactly the same API as a norma...
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
virtual bool IsPointToPoint(void) const
Return true if the net device is on a point-to-point link.
static TypeId GetTypeId(void)
virtual uint16_t GetMtu(void) const
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
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 ...
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 &)
virtual void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
virtual bool SetMtu(const uint16_t mtu)
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)