OpenSDN source code
SecurityGroup4ByteAs Class Reference

#include <security_group.h>

Public Types

typedef boost::array< uint8_t, kSizebytes_type
 

Public Member Functions

 SecurityGroup4ByteAs (as_t asn, uint32_t id)
 
 SecurityGroup4ByteAs (const bytes_type &data)
 
as_t as_number () const
 
uint32_t security_group_id () const
 
bool IsGlobal () const
 
const bytes_typeGetExtCommunity () const
 
const uint64_t GetExtCommunityValue () const
 
std::string ToString ()
 

Static Public Attributes

static const int kSize = 8
 
static const uint32_t kMinGlobalId = 1
 
static const uint32_t kMaxGlobalId = 7999999
 

Private Attributes

bytes_type data_
 

Detailed Description

Definition at line 43 of file security_group.h.

Member Typedef Documentation

◆ bytes_type

typedef boost::array<uint8_t, kSize> SecurityGroup4ByteAs::bytes_type

Definition at line 48 of file security_group.h.

Constructor & Destructor Documentation

◆ SecurityGroup4ByteAs() [1/2]

SecurityGroup4ByteAs::SecurityGroup4ByteAs ( as_t  asn,
uint32_t  id 
)

Definition at line 57 of file security_group.cc.

Here is the call graph for this function:

◆ SecurityGroup4ByteAs() [2/2]

SecurityGroup4ByteAs::SecurityGroup4ByteAs ( const bytes_type data)
explicit

Definition at line 64 of file security_group.cc.

Member Function Documentation

◆ as_number()

as_t SecurityGroup4ByteAs::as_number ( ) const

Definition at line 68 of file security_group.cc.

Here is the call graph for this function:

◆ GetExtCommunity()

const bytes_type& SecurityGroup4ByteAs::GetExtCommunity ( ) const
inline

Definition at line 57 of file security_group.h.

◆ GetExtCommunityValue()

const uint64_t SecurityGroup4ByteAs::GetExtCommunityValue ( ) const
inline

Definition at line 61 of file security_group.h.

Here is the call graph for this function:

◆ IsGlobal()

bool SecurityGroup4ByteAs::IsGlobal ( ) const

Definition at line 86 of file security_group.cc.

Here is the call graph for this function:

◆ security_group_id()

uint32_t SecurityGroup4ByteAs::security_group_id ( ) const

Definition at line 77 of file security_group.cc.

Here is the call graph for this function:

◆ ToString()

string SecurityGroup4ByteAs::ToString ( )

Definition at line 91 of file security_group.cc.

Here is the call graph for this function:

Member Data Documentation

◆ data_

bytes_type SecurityGroup4ByteAs::data_
private

Definition at line 67 of file security_group.h.

◆ kMaxGlobalId

const uint32_t SecurityGroup4ByteAs::kMaxGlobalId = 7999999
static

Definition at line 47 of file security_group.h.

◆ kMinGlobalId

const uint32_t SecurityGroup4ByteAs::kMinGlobalId = 1
static

Definition at line 46 of file security_group.h.

◆ kSize

const int SecurityGroup4ByteAs::kSize = 8
static

Definition at line 45 of file security_group.h.


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