INET Framework for OMNeT++/OMNEST
inet::ospfv2::InterfaceStateLoopback Class Reference

#include <Ospfv2InterfaceStateLoopback.h>

Inheritance diagram for inet::ospfv2::InterfaceStateLoopback:
inet::ospfv2::Ospfv2InterfaceState

Public Member Functions

virtual void processEvent (Ospfv2Interface *intf, Ospfv2Interface::Ospfv2InterfaceEventType event) override
 
virtual Ospfv2Interface::Ospfv2InterfaceStateType getState () const override
 
- Public Member Functions inherited from inet::ospfv2::Ospfv2InterfaceState
virtual ~Ospfv2InterfaceState ()
 

Additional Inherited Members

- Protected Member Functions inherited from inet::ospfv2::Ospfv2InterfaceState
void changeState (Ospfv2Interface *intf, Ospfv2InterfaceState *newState, Ospfv2InterfaceState *currentState)
 
void calculateDesignatedRouter (Ospfv2Interface *intf)
 
void printElectionResult (const Ospfv2Interface *onInterface, DesignatedRouterId DR, DesignatedRouterId BDR)
 

Member Function Documentation

◆ getState()

virtual Ospfv2Interface::Ospfv2InterfaceStateType inet::ospfv2::InterfaceStateLoopback::getState ( ) const
inlineoverridevirtual

◆ processEvent()

void inet::ospfv2::InterfaceStateLoopback::processEvent ( Ospfv2Interface intf,
Ospfv2Interface::Ospfv2InterfaceEventType  event 
)
overridevirtual

Implements inet::ospfv2::Ospfv2InterfaceState.

15 {
16  if (event == Ospfv2Interface::INTERFACE_DOWN) {
17  intf->reset();
18  changeState(intf, new InterfaceStateDown, this);
19  }
20  else if (event == Ospfv2Interface::UNLOOP_INDICATION) {
21  changeState(intf, new InterfaceStateDown, this);
22  }
23 }

The documentation for this class was generated from the following files:
inet::ospfv2::Ospfv2Interface::INTERFACE_DOWN
@ INTERFACE_DOWN
Definition: Ospfv2Interface.h:48
inet::ospfv2::Ospfv2Interface::LOOPBACK_STATE
@ LOOPBACK_STATE
Definition: Ospfv2Interface.h:53
inet::ospfv2::Ospfv2Interface::UNLOOP_INDICATION
@ UNLOOP_INDICATION
Definition: Ospfv2Interface.h:47
inet::ospfv2::Ospfv2InterfaceState::changeState
void changeState(Ospfv2Interface *intf, Ospfv2InterfaceState *newState, Ospfv2InterfaceState *currentState)
Definition: Ospfv2InterfaceState.cc:22