OpenSDN source code
bfd_common.h File Reference
#include <ostream>
#include <string>
#include <boost/asio.hpp>
#include <boost/optional.hpp>
#include <boost/date_time.hpp>
#include <boost/random/taus88.hpp>
#include "base/util.h"
Include dependency graph for bfd_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BFD::SessionIndex
 
struct  BFD::SessionKey
 
struct  BFD::SessionConfig
 

Namespaces

 BFD
 

Typedefs

typedef uint32_t BFD::Discriminator
 
typedef boost::posix_time::time_duration BFD::TimeInterval
 
typedef uint32_t BFD::ClientId
 
typedef boost::function< void(const SessionKey &key, const BFD::BFDState &state)> BFD::ChangeCb
 

Enumerations

enum  BFD::BFDState { BFD::kAdminDown , BFD::kDown , BFD::kInit , BFD::kUp }
 
enum  BFD::Port { BFD::kSingleHop = 3784 , BFD::kMultiHop = 4784 , BFD::kSendPortMin = 49152 , BFD::kSendPortMax = 65535 }
 
enum  BFD::AuthType {
  BFD::kReserved , BFD::kSimplePassword , BFD::kKeyedMD5 , BFD::kMeticulousKeyedMD5 ,
  BFD::kKeyedSHA1 , BFD::kMeticulousKeyedSHA1
}
 
enum  BFD::ResultCode {
  BFD::kResultCode_Ok , BFD::kResultCode_UnknownSession , BFD::kResultCode_Error , BFD::kResultCode_InvalidPacket ,
  BFD::kResultCode_NotImplemented
}
 
enum  BFD::Diagnostic {
  BFD::kNoDiagnostic , BFD::kControlDetectionTimeExpired , BFD::kEchoFunctionFailed , BFD::kNeighborSignaledSessionDown ,
  BFD::kForwardingPlaneReset , BFD::kPathDown , BFD::kConcatenatedPathDown , BFD::kAdministrativelyDown ,
  BFD::kReverseConcatenatedPathDown , BFD::kDiagnosticFirstInvalid
}
 

Functions

std::ostream & BFD::operator<< (std::ostream &, enum BFDState)
 
boost::optional< BFDState > BFD::BFDStateFromString (const std::string &str)