22#include "ns3/simulator.h" 
   24#include "ns3/boolean.h" 
   25#include "ns3/uinteger.h" 
   26#include "ns3/pointer.h" 
   27#include "ns3/channel.h" 
   40  static TypeId tid = 
TypeId (
"ns3::NonCommunicatingNetDevice")
 
   42    .SetGroupName (
"Spectrum")
 
   44    .AddAttribute (
"Phy", 
"The PHY layer attached to this device.",
 
   48                   MakePointerChecker<Object> ())
 
a polymophic address class
 
Ipv4 addresses are stored in host order in this class.
 
Describes an IPv6 address.
 
Network layer to device interface.
 
This class implements a device which does not communicate, in the sense that it does not interact wit...
 
virtual Address GetMulticast(Ipv4Address addr) const
Make and return a MAC multicast address using the provided multicast group.
 
Ptr< Object > GetPhy() const
 
Ptr< Node > m_node
node this NetDevice is associated to
 
virtual bool IsLinkUp(void) const
 
virtual void SetNode(Ptr< Node > node)
 
NonCommunicatingNetDevice()
 
virtual void SetIfIndex(const uint32_t index)
 
virtual void AddLinkChangeCallback(Callback< void > callback)
 
virtual void DoDispose(void)
Destructor implementation.
 
virtual bool IsBridge(void) const
Return true if the net device is acting as a bridge.
 
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
 
virtual Address GetBroadcast(void) const
 
Ptr< Channel > m_channel
Channel used by the NetDevice.
 
virtual bool IsPointToPoint(void) const
Return true if the net device is on a point-to-point link.
 
virtual void SetReceiveCallback(NetDevice::ReceiveCallback cb)
 
virtual bool SupportsSendFrom(void) const
 
virtual Address GetAddress(void) const
 
virtual bool NeedsArp(void) const
 
void SetChannel(Ptr< Channel > c)
This class doesn't talk directly with the underlying channel (a dedicated PHY class is expected to do...
 
virtual ~NonCommunicatingNetDevice()
 
virtual Ptr< Node > GetNode(void) const
 
Ptr< Object > m_phy
Phy object.
 
void SetPhy(Ptr< Object > phy)
Set the Phy object which is attached to this device.
 
uint32_t m_ifIndex
Interface index.
 
virtual uint32_t GetIfIndex(void) const
 
virtual void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
 
virtual bool SetMtu(const uint16_t mtu)
 
virtual bool IsMulticast(void) const
 
virtual bool IsBroadcast(void) const
 
virtual uint16_t GetMtu(void) const
 
virtual Ptr< Channel > GetChannel(void) const
 
virtual bool SendFrom(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
 
static TypeId GetTypeId(void)
Get the type ID.
 
virtual void SetAddress(Address address)
Set the address of this interface.
 
virtual void DoDispose(void)
Destructor implementation.
 
Hold objects of type Ptr<T>.
 
a unique identifier for an interface.
 
TypeId SetParent(TypeId tid)
Set the parent TypeId.
 
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
 
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
 
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
 
Every class exported by the ns3 library is enclosed in the ns3 namespace.