OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BgpProtoPrefix Struct Reference

#include <bgp_attr_base.h>

Inheritance diagram for BgpProtoPrefix:
Collaboration diagram for BgpProtoPrefix:

Public Member Functions

 BgpProtoPrefix ()
 
uint32_t ReadLabel (size_t label_offset, bool is_vni=false) const
 
void WriteLabel (size_t label_offset, uint32_t label, bool is_vni=false)
 
- Public Member Functions inherited from ParseObject
virtual ~ParseObject ()
 

Public Attributes

std::vector< uint8_t > prefix
 
int prefixlen
 
uint8_t type
 

Static Public Attributes

static const size_t kLabelSize = 3
 

Detailed Description

Definition at line 97 of file bgp_attr_base.h.

Constructor & Destructor Documentation

BgpProtoPrefix::BgpProtoPrefix ( )

Definition at line 11 of file bgp_attr_base.cc.

Member Function Documentation

uint32_t BgpProtoPrefix::ReadLabel ( size_t  label_offset,
bool  is_vni = false 
) const

Definition at line 18 of file bgp_attr_base.cc.

Here is the call graph for this function:

void BgpProtoPrefix::WriteLabel ( size_t  label_offset,
uint32_t  label,
bool  is_vni = false 
)

Definition at line 32 of file bgp_attr_base.cc.

Here is the call graph for this function:

Member Data Documentation

const size_t BgpProtoPrefix::kLabelSize = 3
static

Definition at line 98 of file bgp_attr_base.h.

std::vector<uint8_t> BgpProtoPrefix::prefix

Definition at line 105 of file bgp_attr_base.h.

int BgpProtoPrefix::prefixlen

Definition at line 106 of file bgp_attr_base.h.

uint8_t BgpProtoPrefix::type

Definition at line 107 of file bgp_attr_base.h.


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