22 #include "ns3/queue.h"
23 #include "ns3/simulator.h"
25 #include "ns3/boolean.h"
26 #include "ns3/uinteger.h"
27 #include "ns3/pointer.h"
28 #include "ns3/channel.h"
45 static TypeId tid =
TypeId (
"ns3::NonCommunicatingNetDevice")
47 .AddConstructor<NonCommunicatingNetDevice> ()
48 .AddAttribute (
"Phy",
"The PHY layer attached to this device.",
52 MakePointerChecker<Object> ())
virtual void SetIfIndex(const uint32_t index)
virtual bool IsBroadcast(void) const
virtual Address GetBroadcast(void) const
virtual bool SendFrom(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
Ptr< Object > GetPhy() const
#define NS_LOG_FUNCTION(parameters)
virtual bool NeedsArp(void) const
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
void SetChannel(Ptr< Channel > c)
This class doesn't talk directly with the underlying channel (a dedicated PHY class is expected to do...
void SetPhy(Ptr< Object > phy)
Set the Phy object which is attached to this device.
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
static TypeId GetTypeId(void)
virtual void SetAddress(Address address)
Set the address of this interface.
a polymophic address class
virtual Address GetMulticast(Ipv4Address addr) const
Make and return a MAC multicast address using the provided multicast group.
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
virtual bool IsLinkUp(void) const
virtual bool IsBridge(void) const
Return true if the net device is acting as a bridge.
virtual void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
virtual void AddLinkChangeCallback(Callback< void > callback)
virtual Address GetAddress(void) const
NonCommunicatingNetDevice()
virtual bool SupportsSendFrom(void) const
Describes an IPv6 address.
Ipv4 addresses are stored in host order in this class.
virtual ~NonCommunicatingNetDevice()
virtual void SetReceiveCallback(NetDevice::ReceiveCallback cb)
Network layer to device interface.
virtual bool SetMtu(const uint16_t mtu)
NS_LOG_COMPONENT_DEFINE("NonCommunicatingNetDevice")
virtual bool IsPointToPoint(void) const
Return true if the net device is on a point-to-point link.
virtual Ptr< Node > GetNode(void) const
virtual uint32_t GetIfIndex(void) const
virtual uint16_t GetMtu(void) const
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
virtual bool IsMulticast(void) const
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
virtual void SetNode(Ptr< Node > node)
virtual Ptr< Channel > GetChannel(void) const