OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BgpMsgType Class Reference
Inheritance diagram for BgpMsgType:
Collaboration diagram for BgpMsgType:

Public Types

typedef mpl::map< mpl::pair
< mpl::int_< BgpProto::OPEN >
, BgpOpenMessage >, mpl::pair
< mpl::int_
< BgpProto::NOTIFICATION >
, BgpNotificationMessage >
, mpl::pair< mpl::int_
< BgpProto::KEEPALIVE >
, BgpKeepaliveMessage >
, mpl::pair< mpl::int_
< BgpProto::UPDATE >
, BgpUpdateMessage > > 
Choice
 
- Public Types inherited from ChoiceBase
typedef void ContextStorer
 
- Public Types inherited from ElementBase
typedef void SaveOffset
 
typedef void ContextType
 
typedef NullCtxInit ContextInit
 
typedef NoMatch ContextMatch
 
typedef void Setter
 
typedef void EncodingCallback
 
typedef void ContextSwap
 
typedef void SizeSetter
 

Static Public Attributes

static const int kSize = 1
 
static const int kErrorCode = BgpProto::Notification::MsgHdrErr
 
static const int kErrorSubcode = BgpProto::Notification::BadMsgType
 
- Static Public Attributes inherited from ElementBase
static const int kSize = 0
 
static const int kErrorCode = 0
 
static const int kErrorSubcode = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from ProtoChoice< BgpMsgType >
static int Parse (const uint8_t *data, size_t size, ParseContext *context, T *obj)
 
static int Encode (EncodeContext *context, const T *msg, uint8_t *data, size_t size)
 
- Static Public Member Functions inherited from ElementBase
static bool Verifier (const void *obj, const uint8_t *data, size_t size, ParseContext *context)
 

Detailed Description

Definition at line 2051 of file bgp_proto.cc.

Member Typedef Documentation

typedef mpl::map< mpl::pair<mpl::int_<BgpProto::OPEN>, BgpOpenMessage>, mpl::pair<mpl::int_<BgpProto::NOTIFICATION>, BgpNotificationMessage>, mpl::pair<mpl::int_<BgpProto::KEEPALIVE>, BgpKeepaliveMessage>, mpl::pair<mpl::int_<BgpProto::UPDATE>, BgpUpdateMessage> > BgpMsgType::Choice

Definition at line 2061 of file bgp_proto.cc.

Member Data Documentation

const int BgpMsgType::kErrorCode = BgpProto::Notification::MsgHdrErr
static

Definition at line 2054 of file bgp_proto.cc.

const int BgpMsgType::kErrorSubcode = BgpProto::Notification::BadMsgType
static

Definition at line 2055 of file bgp_proto.cc.

const int BgpMsgType::kSize = 1
static

Definition at line 2053 of file bgp_proto.cc.


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