#include <OSPFInterfaceStateLoopback.h>
Public Member Functions | |
virtual void | ProcessEvent (Interface *intf, Interface::InterfaceEventType event) |
virtual Interface::InterfaceStateType | GetState (void) const |
void OSPF::InterfaceStateLoopback::ProcessEvent | ( | OSPF::Interface * | intf, | |
Interface::InterfaceEventType | event | |||
) | [virtual] |
Implements OSPF::InterfaceState.
00022 { 00023 if (event == OSPF::Interface::InterfaceDown) { 00024 intf->Reset(); 00025 ChangeState(intf, new OSPF::InterfaceStateDown, this); 00026 } 00027 if (event == OSPF::Interface::UnloopIndication) { 00028 ChangeState(intf, new OSPF::InterfaceStateDown, this); 00029 } 00030 }
virtual Interface::InterfaceStateType OSPF::InterfaceStateLoopback::GetState | ( | void | ) | const [inline, virtual] |