26 #include "ns3/object.h"
27 #include "ns3/callback.h"
29 #include "ns3/net-device.h"
64 Node(uint32_t systemId);
74 uint32_t
GetId (
void)
const;
159 uint16_t protocolType,
161 bool promiscuous=
false);
uint32_t AddApplication(Ptr< Application > application)
smart pointer class similar to boost::intrusive_ptr
uint32_t GetNApplications(void) const
virtual void DoInitialize(void)
DeviceAdditionListenerList m_deviceAdditionListeners
std::vector< DeviceAdditionListener > DeviceAdditionListenerList
static bool ChecksumEnabled(void)
void NotifyDeviceAdded(Ptr< NetDevice > device)
std::vector< Ptr< NetDevice > > m_devices
uint32_t GetSystemId(void) const
void UnregisterProtocolHandler(ProtocolHandler handler)
a polymophic address class
std::vector< struct Node::ProtocolHandlerEntry > ProtocolHandlerList
Ptr< Application > GetApplication(uint32_t index) const
virtual void DoDispose(void)
bool PromiscReceiveFromDevice(Ptr< NetDevice > device, Ptr< const Packet >, uint16_t protocol, const Address &from, const Address &to, NetDevice::PacketType packetType)
Ptr< NetDevice > GetDevice(uint32_t index) const
uint32_t GetNDevices(void) const
ProtocolHandlerList m_handlers
void RegisterDeviceAdditionListener(DeviceAdditionListener listener)
std::vector< Ptr< Application > > m_applications
void RegisterProtocolHandler(ProtocolHandler handler, uint16_t protocolType, Ptr< NetDevice > device, bool promiscuous=false)
static TypeId GetTypeId(void)
bool ReceiveFromDevice(Ptr< NetDevice > device, Ptr< const Packet >, uint16_t protocol, const Address &from, const Address &to, NetDevice::PacketType packetType, bool promisc)
uint32_t AddDevice(Ptr< NetDevice > device)
uint32_t GetId(void) const
void UnregisterDeviceAdditionListener(DeviceAdditionListener listener)
Callback< void, Ptr< NetDevice > > DeviceAdditionListener
bool NonPromiscReceiveFromDevice(Ptr< NetDevice > device, Ptr< const Packet >, uint16_t protocol, const Address &from)
a base class which provides memory management and object aggregation
Callback< void, Ptr< NetDevice >, Ptr< const Packet >, uint16_t, const Address &, const Address &, NetDevice::PacketType > ProtocolHandler
a unique identifier for an interface.