OpenSDN source code
|
#include <load_balance.h>
Classes | |
struct | LoadBalanceAttribute |
Public Types | |
typedef boost::array< uint8_t, kSize > | bytes_type |
Public Member Functions | |
LoadBalance () | |
LoadBalance (const bytes_type &data) | |
LoadBalance (const LoadBalanceAttribute &attr) | |
LoadBalance (const autogen::LoadBalanceType &lb_type) | |
LoadBalance (const BgpPath *path) | |
bool | operator== (const LoadBalance &other) const |
bool | operator!= (const LoadBalance &other) const |
uint8_t | Type () const |
uint8_t | Subtype () const |
const bytes_type & | GetExtCommunity () const |
const uint64_t | GetExtCommunityValue () const |
const LoadBalanceAttribute | ToAttribute () const |
void | FillAttribute (LoadBalanceAttribute *attr) |
const bool | IsDefault () const |
void | ShowAttribute (ShowLoadBalance *show_load_balance) const |
std::string | ToString () const |
void | SetL3SourceAddress (bool flag) |
void | SetL3DestinationAddress (bool flag) |
void | SetL4Protocol (bool flag) |
void | SetL4SourcePort (bool flag) |
void | SetL4DestinationPort (bool flag) |
void | SetSourceBias (bool flag) |
Static Public Member Functions | |
static bool | IsPresent (const BgpPath *path) |
Static Public Attributes | |
static const int | kSize = 8 |
Private Attributes | |
bytes_type | data_ |
Definition at line 41 of file load_balance.h.
typedef boost::array<uint8_t, kSize> LoadBalance::bytes_type |
Definition at line 44 of file load_balance.h.
LoadBalance::LoadBalance | ( | ) |
|
explicit |
Definition at line 88 of file load_balance.cc.
|
explicit |
|
explicit |
|
explicit |
void LoadBalance::FillAttribute | ( | LoadBalanceAttribute * | attr | ) |
|
inline |
Definition at line 119 of file load_balance.h.
|
inline |
Definition at line 120 of file load_balance.h.
const bool LoadBalance::IsDefault | ( | ) | const |
|
static |
bool LoadBalance::operator!= | ( | const LoadBalance & | other | ) | const |
bool LoadBalance::operator== | ( | const LoadBalance & | other | ) | const |
void LoadBalance::SetL3DestinationAddress | ( | bool | flag | ) |
void LoadBalance::SetL3SourceAddress | ( | bool | flag | ) |
void LoadBalance::SetL4DestinationPort | ( | bool | flag | ) |
void LoadBalance::SetL4Protocol | ( | bool | flag | ) |
void LoadBalance::SetL4SourcePort | ( | bool | flag | ) |
void LoadBalance::SetSourceBias | ( | bool | flag | ) |
void LoadBalance::ShowAttribute | ( | ShowLoadBalance * | show_load_balance | ) | const |
|
inline |
Definition at line 118 of file load_balance.h.
const LoadBalance::LoadBalanceAttribute LoadBalance::ToAttribute | ( | ) | const |
string LoadBalance::ToString | ( | ) | const |
|
inline |
Definition at line 117 of file load_balance.h.
|
private |
Definition at line 139 of file load_balance.h.
|
static |
Definition at line 43 of file load_balance.h.