OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
state_machine.cc File Reference
#include "bgp/state_machine.h"
#include <boost/statechart/custom_reaction.hpp>
#include <boost/statechart/state.hpp>
#include <boost/statechart/state_machine.hpp>
#include <boost/statechart/transition.hpp>
#include <algorithm>
#include <list>
#include <string>
#include <typeinfo>
#include "base/task_annotations.h"
#include "bgp/bgp_log.h"
#include "bgp/bgp_peer.h"
#include "bgp/bgp_peer_close.h"
#include "bgp/bgp_peer_types.h"
#include "bgp/bgp_server.h"
#include "bgp/bgp_session.h"
#include "bgp/bgp_session_manager.h"
Include dependency graph for state_machine.cc:

Go to the source code of this file.

Classes

struct  fsm::EvStart
 
struct  fsm::EvStop
 
struct  fsm::EvIdleHoldTimerExpired
 
struct  fsm::EvConnectTimerExpired
 
struct  fsm::EvOpenTimerExpired
 
struct  fsm::EvHoldTimerExpired
 
struct  fsm::EvTcpConnected
 
struct  fsm::EvTcpConnectFail
 
struct  fsm::EvTcpPassiveOpen
 
struct  fsm::EvTcpClose
 
struct  fsm::EvTcpDeleteSession
 
struct  fsm::EvBgpHeaderError
 
struct  fsm::EvBgpOpen
 
struct  fsm::EvBgpOpenError
 
struct  fsm::EvBgpKeepalive
 
struct  fsm::EvBgpNotification
 
struct  fsm::EvBgpUpdate
 
struct  fsm::EvBgpUpdateError
 
struct  fsm::TransitToIdle< Ev, code >
 
struct  fsm::TransitToIdle< EvBgpNotification, 0 >
 
struct  fsm::IdleCease< Ev >
 
struct  fsm::IdleFsmError< Ev >
 
struct  fsm::IdleError< Ev, code >
 
struct  fsm::Idle
 
struct  fsm::Active
 
struct  fsm::Connect
 
struct  fsm::OpenSent
 
struct  fsm::OpenConfirm
 
struct  fsm::Established
 
struct  HasValidate< Ev >
 
struct  HasValidate< Ev >::SFINAE< T, const >
 
struct  ValidateFn< Ev, has_validate >
 
struct  ValidateFn< Ev, true >
 

Namespaces

 fsm
 

Macros

#define SM_LOG(level, _Msg)
 
#define SM_LOG_NOTICE(_Msg)
 

Functions

ostream & operator<< (ostream &out, const StateMachine::State &state)
 

Variables

static const std::string state_names []
 

Macro Definition Documentation

#define SM_LOG (   level,
  _Msg 
)
Value:
do { \
ostringstream out; \
out << _Msg; \
if (LoggingDisabled()) break; \
BGP_LOG_SERVER(peer_, (BgpTable *) 0); \
BGP_LOG(BgpPeerStateMachine, level, \
peer_ ? peer_->ToUVEKey() : "", \
out.str()); \
} while (false)
#define BGP_LOG(obj, level, flags,...)
Definition: bgp_log.h:59
#define BGP_LOG_FLAG_SYSLOG
Definition: bgp_log.h:42
#define BGP_LOG_SERVER(peer, table)
Definition: bgp_log.h:128
bool LoggingDisabled()
Definition: logging.cc:24
#define BGP_PEER_DIR_NA
Definition: bgp_log.h:140

Definition at line 44 of file state_machine.cc.

#define SM_LOG_NOTICE (   _Msg)
Value:
do { \
ostringstream out; \
out << _Msg; \
if (LoggingDisabled()) break; \
BGP_LOG_SERVER(peer_, (BgpTable *) 0); \
BGP_LOG_NOTICE(BgpPeerStateMachine, \
peer_ ? peer_->ToUVEKey() : "", \
out.str()); \
} while (false)
#define BGP_LOG_FLAG_SYSLOG
Definition: bgp_log.h:42
#define BGP_LOG_SERVER(peer, table)
Definition: bgp_log.h:128
bool LoggingDisabled()
Definition: logging.cc:24
#define BGP_LOG_NOTICE(obj, flags,...)
Definition: bgp_log.h:73
#define BGP_PEER_DIR_NA
Definition: bgp_log.h:140

Definition at line 56 of file state_machine.cc.

Function Documentation

ostream& operator<< ( ostream &  out,
const StateMachine::State state 
)

Definition at line 1594 of file state_machine.cc.

Variable Documentation

const std::string state_names[]
static
Initial value:
= {
"Idle",
"Active",
"Connect",
"OpenSent",
"OpenConfirm",
"Established"
}

Definition at line 1569 of file state_machine.cc.