OpenSDN source code
BgpOListSpec Struct Reference

#include <bgp_attr.h>

Inheritance diagram for BgpOListSpec:
Collaboration diagram for BgpOListSpec:

Public Types

typedef std::vector< BgpOListElemElements
 
- Public Types inherited from BgpAttribute
enum  Flag { Optional = 1 << 7 , Transitive = 1 << 6 , Partial = 1 << 5 , ExtendedLength = 1 << 4 }
 
enum  Code {
  Reserved = 0 , Origin = 1 , AsPath = 2 , NextHop = 3 ,
  MultiExitDisc = 4 , LocalPref = 5 , AtomicAggregate = 6 , Aggregator = 7 ,
  Communities = 8 , OriginatorId = 9 , ClusterList = 10 , MPReachNlri = 14 ,
  MPUnreachNlri = 15 , ExtendedCommunities = 16 , As4Path = 17 , As4Aggregator = 18 ,
  PmsiTunnel = 22 , LargeCommunities = 32 , McastEdgeDiscovery = 241 , McastEdgeForwarding = 242 ,
  OriginVnPath = 243
}
 
enum  Subcode {
  OList = 1 , LabelBlock = 2 , SourceRd = 3 , Esi = 4 ,
  Params = 5 , LeafOList = 6 , SubProtocol = 7
}
 

Public Member Functions

 BgpOListSpec ()
 
 BgpOListSpec (uint8_t subcode)
 
virtual int CompareTo (const BgpAttribute &rhs_attr) const
 
virtual void ToCanonical (BgpAttr *attr)
 
virtual std::string ToString () const
 
- Public Member Functions inherited from BgpAttribute
 BgpAttribute ()
 
 BgpAttribute (uint8_t code, uint8_t flags)
 
 BgpAttribute (uint8_t code, uint8_t subcode, uint8_t flags)
 
virtual size_t EncodeLength () const
 
uint8_t GetEncodeFlags () const
 
- Public Member Functions inherited from ParseObject
virtual ~ParseObject ()
 

Public Attributes

Elements elements
 
- Public Attributes inherited from BgpAttribute
uint8_t code
 
uint8_t subcode
 
uint8_t flags
 

Static Public Attributes

static const int kSize = 0
 
- Static Public Attributes inherited from BgpAttribute
static const uint8_t FLAG_MASK = Optional|Transitive
 

Detailed Description

Definition at line 684 of file bgp_attr.h.

Member Typedef Documentation

◆ Elements

typedef std::vector<BgpOListElem> BgpOListSpec::Elements

Definition at line 693 of file bgp_attr.h.

Constructor & Destructor Documentation

◆ BgpOListSpec() [1/2]

BgpOListSpec::BgpOListSpec ( )
inline

Definition at line 686 of file bgp_attr.h.

◆ BgpOListSpec() [2/2]

BgpOListSpec::BgpOListSpec ( uint8_t  subcode)
inlineexplicit

Definition at line 687 of file bgp_attr.h.

Member Function Documentation

◆ CompareTo()

int BgpOListSpec::CompareTo ( const BgpAttribute rhs_attr) const
virtual

Reimplemented from BgpAttribute.

Definition at line 733 of file bgp_attr.cc.

Here is the call graph for this function:

◆ ToCanonical()

void BgpOListSpec::ToCanonical ( BgpAttr attr)
virtual

Reimplemented from BgpAttribute.

Definition at line 739 of file bgp_attr.cc.

Here is the call graph for this function:

◆ ToString()

string BgpOListSpec::ToString ( ) const
virtual

Reimplemented from BgpAttribute.

Definition at line 749 of file bgp_attr.cc.

Member Data Documentation

◆ elements

Elements BgpOListSpec::elements

Definition at line 694 of file bgp_attr.h.

◆ kSize

const int BgpOListSpec::kSize = 0
static

Definition at line 685 of file bgp_attr.h.


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