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

#include <community.h>

Inheritance diagram for CommunitySpec:
Collaboration diagram for CommunitySpec:

Public Member Functions

 CommunitySpec ()
 
 CommunitySpec (const BgpAttribute &rhs)
 
virtual int CompareTo (const BgpAttribute &rhs_attr) const
 
virtual void ToCanonical (BgpAttr *attr)
 
virtual std::string ToString () const
 
virtual size_t EncodeLength () 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)
 
uint8_t GetEncodeFlags () const
 
- Public Member Functions inherited from ParseObject
virtual ~ParseObject ()
 

Public Attributes

std::vector< uint32_t > communities
 
- Public Attributes inherited from BgpAttribute
uint8_t code
 
uint8_t subcode
 
uint8_t flags
 

Static Public Attributes

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

Additional Inherited Members

- 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, McastEdgeDiscovery = 241, McastEdgeForwarding = 242, OriginVnPath = 243
}
 
enum  Subcode {
  OList = 1, LabelBlock = 2, SourceRd = 3, Esi = 4,
  Params = 5, LeafOList = 6, SubProtocol = 7
}
 

Detailed Description

Definition at line 28 of file community.h.

Constructor & Destructor Documentation

CommunitySpec::CommunitySpec ( )
inline

Definition at line 31 of file community.h.

CommunitySpec::CommunitySpec ( const BgpAttribute rhs)
inlineexplicit

Definition at line 32 of file community.h.

Member Function Documentation

virtual int CommunitySpec::CompareTo ( const BgpAttribute rhs_attr) const
inlinevirtual

Reimplemented from BgpAttribute.

Definition at line 34 of file community.h.

Here is the call graph for this function:

size_t CommunitySpec::EncodeLength ( ) const
virtual

Reimplemented from BgpAttribute.

Definition at line 74 of file community.cc.

void CommunitySpec::ToCanonical ( BgpAttr attr)
virtual

Reimplemented from BgpAttribute.

Definition at line 40 of file community.cc.

Here is the call graph for this function:

string CommunitySpec::ToString ( ) const
virtual

Reimplemented from BgpAttribute.

Definition at line 44 of file community.cc.

Member Data Documentation

std::vector<uint32_t> CommunitySpec::communities

Definition at line 33 of file community.h.

const uint8_t CommunitySpec::kFlags = Optional | Transitive
static

Definition at line 30 of file community.h.

const int CommunitySpec::kSize = -1
static

Definition at line 29 of file community.h.


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