INET Framework for OMNeT++/OMNEST
|
Implements the OSPFv2 routing protocol. More...
#include <OSPFRouting.h>
Public Member Functions | |
OSPFRouting () | |
virtual | ~OSPFRouting () |
void | insertExternalRoute (int ifIndex, const IPv4AddressRange &netAddr) |
Insert a route learn by BGP in OSPF routingTable as an external route. More... | |
bool | checkExternalRoute (const IPv4Address &route) |
Return true if the route is in OSPF external LSA Table, false else. More... | |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Member Functions | |
virtual int | numInitStages () const override |
virtual void | initialize (int stage) override |
virtual void | handleMessage (cMessage *msg) override |
virtual void | handleMessageWhenDown (cMessage *msg) |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
virtual void | createOspfRouter () |
virtual bool | isNodeUp () |
Private Attributes | |
IIPv4RoutingTable * | rt = nullptr |
IInterfaceTable * | ift = nullptr |
bool | isUp = false |
Router * | ospfRouter = nullptr |
Implements the OSPFv2 routing protocol.
See the NED file for more information.
|
virtual |
bool inet::ospf::OSPFRouting::checkExternalRoute | ( | const IPv4Address & | route | ) |
Return true if the route is in OSPF external LSA Table, false else.
Used by the BGPRouting module.
Referenced by inet::bgp::BGPRouting::checkExternalRoute().
|
protectedvirtual |
Referenced by handleOperationStage(), initialize(), and numInitStages().
|
overrideprotectedvirtual |
Referenced by numInitStages().
|
protectedvirtual |
Referenced by handleMessage(), and numInitStages().
|
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.
Referenced by numInitStages().
|
overrideprotectedvirtual |
Referenced by numInitStages().
void inet::ospf::OSPFRouting::insertExternalRoute | ( | int | ifIndex, |
const IPv4AddressRange & | netAddr | ||
) |
Insert a route learn by BGP in OSPF routingTable as an external route.
Used by the BGPRouting module. : interface ID
Referenced by inet::bgp::BGPRouting::decisionProcess().
|
protectedvirtual |
Referenced by initialize(), and numInitStages().
|
inlineoverrideprotectedvirtual |
|
private |
Referenced by createOspfRouter(), and initialize().
|
private |
Referenced by handleMessage(), handleOperationStage(), and initialize().
|
private |
Referenced by checkExternalRoute(), createOspfRouter(), handleMessage(), handleOperationStage(), insertExternalRoute(), and ~OSPFRouting().
|
private |
Referenced by createOspfRouter(), and initialize().