INET Framework for OMNeT++/OMNEST
|
#include <GlobalARP.h>
Classes | |
class | ARPCacheEntry |
Public Types | |
typedef std::map< L3Address, ARPCacheEntry * > | ARPCache |
typedef std::vector< cMessage * > | MsgPtrVector |
Public Member Functions | |
GlobalARP () | |
virtual | ~GlobalARP () |
virtual int | numInitStages () const override |
virtual void | receiveSignal (cComponent *source, simsignal_t signalID, cObject *obj, cObject *details) override |
virtual L3Address | getL3AddressFor (const MACAddress &addr) const override |
IARPCache implementation. More... | |
virtual MACAddress | resolveL3Address (const L3Address &address, const InterfaceEntry *ie) override |
Tries to resolve the given network address to a MAC address. More... | |
Public Member Functions inherited from inet::IARP | |
virtual | ~IARP () |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Member Functions | |
MACAddress | mapMulticastAddress (L3Address addr) |
virtual void | initialize (int stage) override |
virtual void | handleMessage (cMessage *msg) override |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
virtual void | finish () override |
virtual void | processSelfMessage (cMessage *msg) |
virtual void | handleMessageWhenDown (cMessage *msg) |
virtual bool | isNodeUp () |
virtual void | stop () |
virtual void | start () |
virtual void | processARPPacket (ARPPacket *arp) |
Protected Attributes | |
bool | isUp = false |
IInterfaceTable * | ift = nullptr |
IIPv4RoutingTable * | rt = nullptr |
Static Protected Attributes | |
static ARPCache | globalArpCache |
static int | globalArpCacheRefCnt = 0 |
Additional Inherited Members | |
Static Public Attributes inherited from inet::IARP | |
static const simsignal_t | initiatedARPResolutionSignal = cComponent::registerSignal("initiatedARPResolution") |
Signals used to publish ARP state changes. More... | |
static const simsignal_t | completedARPResolutionSignal = cComponent::registerSignal("completedARPResolution") |
static const simsignal_t | failedARPResolutionSignal = cComponent::registerSignal("failedARPResolution") |
ARP implementation.
typedef std::map<L3Address, ARPCacheEntry *> inet::GlobalARP::ARPCache |
typedef std::vector<cMessage *> inet::GlobalARP::MsgPtrVector |
inet::GlobalARP::GlobalARP | ( | ) |
|
virtual |
|
overridevirtual |
IARPCache implementation.
Implements inet::IARP.
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by handleMessage().
|
overrideprotectedvirtual |
Perform one stage of a lifecycle operation.
Processing may be done entirely within this method, or may be a longer process that involves nonzero simulation time or several events, and is triggered by this method call.
Return value: true = "done"; false = "not yet done, will invoke doneCallback when done"
Implements inet::ILifecycle.
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by initialize().
|
protected |
|
inlineoverridevirtual |
|
protectedvirtual |
Referenced by handleMessage().
|
protectedvirtual |
Referenced by handleMessage().
|
overridevirtual |
|
overridevirtual |
Tries to resolve the given network address to a MAC address.
If the MAC address is not yet resolved it returns an unspecified address and starts an address resolution procedure. A signal is emitted when the address resolution procedure terminates.
Implements inet::IARP.
|
protectedvirtual |
Referenced by handleOperationStage().
|
protectedvirtual |
Referenced by handleOperationStage().
|
staticprotected |
Referenced by getL3AddressFor(), GlobalARP(), initialize(), receiveSignal(), resolveL3Address(), and ~GlobalARP().
|
staticprotected |
Referenced by GlobalARP(), and ~GlobalARP().
|
protected |
Referenced by GlobalARP(), and initialize().
|
protected |
Referenced by handleMessage(), initialize(), start(), and stop().
|
protected |
Referenced by GlobalARP(), and initialize().