OpenSDN source code
|
#include <esi.h>
Public Types | |
enum | EsiType { CONFIGURED = 0, LACP_BASED = 1, STP_BASED = 2, MAC_BASED = 3, IP_BASED = 4, AS_BASED = 5 } |
Public Member Functions | |
EthernetSegmentId () | |
EthernetSegmentId (const uint8_t *data) | |
EthernetSegmentId (const EthernetSegmentId &rhs) | |
std::string | ToString () const |
EthernetSegmentId & | operator= (const EthernetSegmentId &rhs) |
bool | IsZero () const |
uint8_t | Type () const |
int | CompareTo (const EthernetSegmentId &rhs) const |
bool | operator== (const EthernetSegmentId &rhs) const |
bool | operator!= (const EthernetSegmentId &rhs) const |
bool | operator< (const EthernetSegmentId &rhs) const |
bool | operator> (const EthernetSegmentId &rhs) const |
const uint8_t * | GetData () const |
Static Public Member Functions | |
static EthernetSegmentId | FromString (const std::string &str, boost::system::error_code *errorp=NULL) |
Static Public Attributes | |
static const int | kSize = 10 |
static const EthernetSegmentId | kZeroEsi |
static const EthernetSegmentId | kMaxEsi |
Private Attributes | |
uint8_t | data_ [kSize] |
|
inline |
int EthernetSegmentId::CompareTo | ( | const EthernetSegmentId & | rhs | ) | const |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
string EthernetSegmentId::ToString | ( | ) | const |
|
static |
|
static |