#include <arp-l3-protocol.h>
Public Member Functions | |
void | Receive (Ptr< NetDevice > device, Ptr< const Packet > p, uint16_t protocol, const Address &from, const Address &to, NetDevice::PacketType packetType) |
Receive a packet. | |
bool | Lookup (Ptr< Packet > p, Ipv4Address destination, Ptr< NetDevice > device, Ptr< ArpCache > cache, Address *hardwareDestination) |
Perform an ARP lookup. | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::ArpL3Protocol. | |
Protected Member Functions | |
virtual void | DoDispose (void) |
virtual void | NotifyNewAggregate () |
virtual void ns3::ArpL3Protocol::DoDispose | ( | void | ) | [protected, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
Reimplemented from ns3::Object.
static TypeId ns3::ArpL3Protocol::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::ArpL3Protocol.
This object is accessible through the following paths with Config::Set and Config::Connect:
Reimplemented from ns3::Object.
bool ns3::ArpL3Protocol::Lookup | ( | Ptr< Packet > | p, | |
Ipv4Address | destination, | |||
Ptr< NetDevice > | device, | |||
Ptr< ArpCache > | cache, | |||
Address * | hardwareDestination | |||
) |
Perform an ARP lookup.
p | ||
destination | ||
device | ||
cache | ||
hardwareDestination |
virtual void ns3::ArpL3Protocol::NotifyNewAggregate | ( | ) | [protected, virtual] |
This function is called by the AggregateObject on all the objects connected in the listed chain. This way the new object aggregated will be used if needed by the NotifyNewAggregate corresponding to each object connected in the listed chain. It should be implemented by objects needing an additional/special behavior when aggregated to another object.
Reimplemented from ns3::Object.