OpenSDN source code
BgpProto::OpenMessage Struct Reference

#include <bgp_proto.h>

Inheritance diagram for BgpProto::OpenMessage:
Collaboration diagram for BgpProto::OpenMessage:

Classes

struct  Capability
 
struct  OptParam
 

Public Types

enum  OpenOptParamTypes { OPEN_OPT_CAPABILITIES = 2 }
 

Public Member Functions

 OpenMessage ()
 
 ~OpenMessage ()
 
int Validate (BgpPeer *peer) const
 
virtual const std::string ToString () const
 
- Public Member Functions inherited from BgpProto::BgpMessage
 BgpMessage (MessageType type)
 
- Public Member Functions inherited from ParseObject
virtual ~ParseObject ()
 

Static Public Member Functions

static BgpProto::OpenMessageDecode (const uint8_t *data, size_t size)
 
static int EncodeData (OpenMessage *msg, uint8_t *data, size_t size)
 

Public Attributes

uint32_t as_num
 
int32_t holdtime
 
uint32_t identifier
 
std::vector< OptParam * > opt_params
 
- Public Attributes inherited from BgpProto::BgpMessage
MessageType type
 

Private Member Functions

int ValidateCapabilities (BgpPeer *peer) const
 
int EncodeCapabilities (OpenMessage *msg, uint8_t *data, size_t size)
 

Detailed Description

Definition at line 57 of file bgp_proto.h.

Member Enumeration Documentation

◆ OpenOptParamTypes

Enumerator
OPEN_OPT_CAPABILITIES 

Definition at line 58 of file bgp_proto.h.

Constructor & Destructor Documentation

◆ OpenMessage()

BgpProto::OpenMessage::OpenMessage ( )

Definition at line 29 of file bgp_proto.cc.

◆ ~OpenMessage()

BgpProto::OpenMessage::~OpenMessage ( )

Definition at line 33 of file bgp_proto.cc.

Here is the call graph for this function:

Member Function Documentation

◆ Decode()

static BgpProto::OpenMessage* BgpProto::OpenMessage::Decode ( const uint8_t *  data,
size_t  size 
)
static

◆ EncodeCapabilities()

int BgpProto::OpenMessage::EncodeCapabilities ( OpenMessage msg,
uint8_t *  data,
size_t  size 
)
private

◆ EncodeData()

static int BgpProto::OpenMessage::EncodeData ( OpenMessage msg,
uint8_t *  data,
size_t  size 
)
static

◆ ToString()

const string BgpProto::OpenMessage::ToString ( ) const
virtual

Reimplemented from BgpProto::BgpMessage.

Definition at line 280 of file bgp_proto.cc.

Here is the call graph for this function:

◆ Validate()

int BgpProto::OpenMessage::Validate ( BgpPeer peer) const

Definition at line 106 of file bgp_proto.cc.

Here is the call graph for this function:

◆ ValidateCapabilities()

int BgpProto::OpenMessage::ValidateCapabilities ( BgpPeer peer) const
private

Definition at line 50 of file bgp_proto.cc.

Here is the call graph for this function:

Member Data Documentation

◆ as_num

uint32_t BgpProto::OpenMessage::as_num

Definition at line 65 of file bgp_proto.h.

◆ holdtime

int32_t BgpProto::OpenMessage::holdtime

Definition at line 66 of file bgp_proto.h.

◆ identifier

uint32_t BgpProto::OpenMessage::identifier

Definition at line 67 of file bgp_proto.h.

◆ opt_params

std::vector<OptParam *> BgpProto::OpenMessage::opt_params

Definition at line 219 of file bgp_proto.h.


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