|
| cofport (uint8_t of_version=openflow::OFP_VERSION_UNKNOWN) |
|
| cofport (uint8_t ofp_version, uint8_t *buf, size_t buflen) |
|
| cofport (cofport const &port) |
|
cofport & | operator= (cofport const &port) |
|
void | pack (uint8_t *buf, size_t buflen) |
| Copies content of this cmemory instance to specified buffer.
|
|
void | unpack (uint8_t *buf, size_t buflen) |
| Copies content of specified buffer into this cmemory instance .
|
|
size_t | length () const |
|
rofl::openflow::cofport_stats_reply & | get_port_stats () |
|
uint8_t | get_version () const |
|
uint32_t | get_port_no () const |
|
void | set_port_no (uint32_t port_no) |
|
cmacaddr | get_hwaddr () const |
|
void | set_hwaddr (cmacaddr const &maddr) |
|
std::string | get_name () const |
|
void | set_name (std::string name) |
|
uint32_t | get_config () const |
|
void | set_config (uint32_t config) |
|
uint32_t | get_state () const |
|
void | set_state (uint32_t state) |
|
uint32_t | get_curr () const |
|
void | set_curr (uint32_t curr) |
|
uint32_t | get_advertised () const |
|
void | set_advertised (uint32_t advertised) |
|
uint32_t | get_supported () const |
|
void | set_supported (uint32_t supported) |
|
uint32_t | get_peer () const |
|
void | set_peer (uint32_t peer) |
|
uint32_t | get_curr_speed () const |
|
void | set_curr_speed (uint32_t curr_speed) |
|
uint32_t | get_max_speed () const |
|
void | set_max_speed (uint32_t max_speed) |
|
virtual void | link_state_set_blocked () |
|
virtual void | link_state_clr_blocked () |
|
virtual bool | link_state_is_blocked () const |
|
virtual void | link_state_set_live () |
|
virtual void | link_state_clr_live () |
|
virtual bool | link_state_is_live () const |
|
virtual void | link_state_set_link_down () |
|
virtual void | link_state_clr_link_down () |
|
virtual bool | link_state_is_link_down () const |
|
virtual void | link_state_phy_down () |
|
virtual void | link_state_phy_up () |
|
bool | link_state_phy_is_up () const |
|
bool | config_is_port_down () const |
|
virtual void | recv_port_mod (uint32_t config, uint32_t mask, uint32_t advertise) |
|
| cmemory (size_t len=CMEMORY_DEFAULT_SIZE) |
| Constructor. Allocates a new memory area with specified size (default: 1024 bytes). More...
|
|
| cmemory (uint8_t *data, size_t datalen) |
| Constructor. Allocates a new memory area and clones specified buffer. More...
|
|
| cmemory (cmemory const &m) |
| Copy constructor. More...
|
|
virtual | ~cmemory () |
| Destructor. Calls C-function free() for allocated memory area.
|
|
cmemory & | operator= (cmemory const &m) |
| Assignment operator. More...
|
|
uint8_t & | operator[] (size_t index) const |
| Index operator. More...
|
|
bool | operator== (cmemory const &m) const |
| Comparison operator. More...
|
|
bool | operator!= (cmemory const &m) const |
| Comparison operator (unequal). More...
|
|
bool | operator< (cmemory const &m) const |
| Less than operator. More...
|
|
bool | operator> (cmemory const &m) const |
| Less than operator. More...
|
|
cmemory | operator& (cmemory const &m) const |
| AND operator. More...
|
|
cmemory & | operator+= (cmemory const &m) |
| Append operator with assignment to this cmemory instance. More...
|
|
cmemory | operator+ (cmemory const &m) |
| Append operator with assignment to temporary cmemory instance. More...
|
|
uint8_t * | somem () const |
| Returns pointer to start of allocated memory area.
|
|
size_t | memlen () const |
| Returns length of allocated memory area.
|
|
virtual void | assign (uint8_t *buf, size_t buflen) |
| Overwrites memory area with plain buffer specified. Resizes internal memory as necessary. More...
|
|
uint8_t * | insert (uint8_t *ptr, size_t len) |
| Inserts len bytes at pointer ptr into allocated memory area. More...
|
|
uint8_t * | insert (unsigned int offset, size_t len) |
| Inserts len bytes at start of allocated memory area plus offset. More...
|
|
void | remove (uint8_t *ptr, size_t len) |
| Removes len bytes starting at pointer ptr from allocated memory area. More...
|
|
void | remove (unsigned int offset, size_t len) |
| Removes len bytes starting at offset relative to the allocated memory area. More...
|
|
unsigned int | find_first_of (uint8_t value, unsigned int start) |
| Returns index of first byte with value "value" found in allocated memory area starting at offset "start". More...
|
|
void | clear () |
| Clears the allocated memory area by setting all bytes to 0.
|
|
virtual std::string | toString () const |
| map onto std::string instance
|
|
virtual bool | empty () const |
| Returns boolean value empty/non empty.
|
|