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

#include <OSPFInterfaceStateLoopback.h>

Inheritance diagram for inet::ospf::InterfaceStateLoopback:
inet::ospf::InterfaceState

Public Member Functions

virtual void processEvent (Interface *intf, Interface::InterfaceEventType event) override
 
virtual Interface::InterfaceStateType getState () const override
 
- Public Member Functions inherited from inet::ospf::InterfaceState
virtual ~InterfaceState ()
 

Additional Inherited Members

- Protected Member Functions inherited from inet::ospf::InterfaceState
void changeState (Interface *intf, InterfaceState *newState, InterfaceState *currentState)
 
void calculateDesignatedRouter (Interface *intf)
 

Member Function Documentation

virtual Interface::InterfaceStateType inet::ospf::InterfaceStateLoopback::getState ( ) const
inlineoverridevirtual

Implements inet::ospf::InterfaceState.

32 { return Interface::LOOPBACK_STATE; }
Definition: OSPFInterface.h:65
void inet::ospf::InterfaceStateLoopback::processEvent ( Interface intf,
Interface::InterfaceEventType  event 
)
overridevirtual

Implements inet::ospf::InterfaceState.

27 {
28  if (event == Interface::INTERFACE_DOWN) {
29  intf->reset();
30  changeState(intf, new InterfaceStateDown, this);
31  }
32  if (event == Interface::UNLOOP_INDICATION) {
33  changeState(intf, new InterfaceStateDown, this);
34  }
35 }
Definition: OSPFInterface.h:50
void changeState(Interface *intf, InterfaceState *newState, InterfaceState *currentState)
Definition: OSPFInterfaceState.cc:33
Definition: OSPFInterface.h:51

The documentation for this class was generated from the following files: