Public Member Functions | |
| cofmsg_meter_mod (uint8_t of_version=rofl::openflow::OFP_VERSION_UNKNOWN, uint32_t xid=0, uint16_t command=0, uint16_t flags=0, uint32_t meter_id=0, const rofl::openflow::cofmeter_bands &mbs=rofl::openflow::cofmeter_bands()) | |
| cofmsg_meter_mod (const cofmsg_meter_mod &meter) | |
| cofmsg_meter_mod & | operator= (const cofmsg_meter_mod &meter) |
| virtual | ~cofmsg_meter_mod () |
| cofmsg_meter_mod (rofl::cmemory *memarea) | |
| virtual void | reset () |
| virtual size_t | length () const |
| virtual void | pack (uint8_t *buf=(uint8_t *) 0, size_t buflen=0) |
| virtual void | unpack (uint8_t *buf, size_t buflen) |
| virtual void | validate () |
| void | set_command (uint16_t command) |
| uint16_t | get_command () const |
| void | set_flags (uint16_t flags) |
| uint16_t | get_flags () const |
| void | set_meter_id (uint32_t meter_id) |
| uint32_t | get_meter_id () const |
| rofl::openflow::cofmeter_bands & | set_meter_bands () |
|
const rofl::openflow::cofmeter_bands & | get_meter_bands () const |
Public Member Functions inherited from rofl::openflow::cofmsg | |
| cofmsg (uint8_t ofp_version, uint32_t xid, uint8_t type) | |
| cofmsg (size_t size=sizeof(struct openflow::ofp_header)) | |
| cofmsg (cmemory *memarea) | |
| cofmsg (cofmsg const &p) | |
| virtual | ~cofmsg () |
| cofmsg & | operator= (cofmsg const &p) |
| virtual uint8_t * | resize (size_t len) |
| uint8_t * | soframe () const |
| size_t | framelen () const |
| uint8_t * | sobody () const |
| size_t | bodylen () const |
| uint8_t | get_version () const |
| virtual void | set_version (uint8_t ofp_version) |
| uint16_t | get_length () const |
| void | set_length (uint16_t len) |
| uint8_t | get_type () const |
| void | set_type (uint8_t type) |
| uint32_t | get_xid () const |
| void | set_xid (uint32_t xid) |
| std::string | str () const |
Friends | |
| std::ostream & | operator<< (std::ostream &os, cofmsg_meter_mod const &msg) |
Additional Inherited Members | |
Static Public Member Functions inherited from rofl::openflow::cofmsg | |
| static const char * | packet_info (uint8_t ofp_version) |
| static const char * | type2desc (uint8_t ofp_version, uint8_t type) |
Static Public Attributes inherited from rofl::openflow::cofmsg | |
| static std::set< cofmsg * > | cofpacket_list |
Protected Attributes inherited from rofl::openflow::cofmsg | |
| cmemory * | memarea |
| union { | |
| uint8_t * ofhu_generic | |
| struct rofl::openflow::ofp_header * ofhu_header | |
| } | ofh_ofhu |
| cofmsg_meter_mod::cofmsg_meter_mod | ( | uint8_t | of_version = rofl::openflow::OFP_VERSION_UNKNOWN, |
| uint32_t | xid = 0, |
||
| uint16_t | command = 0, |
||
| uint16_t | flags = 0, |
||
| uint32_t | meter_id = 0, |
||
| const rofl::openflow::cofmeter_bands & | mbs = rofl::openflow::cofmeter_bands() |
||
| ) |
constructor
|
virtual |
destructor
|
virtual |
returns length of packet in packed state
Reimplemented from rofl::openflow::cofmsg.
|
virtual |
pack OFpacket content to specified buffer
Reimplemented from rofl::openflow::cofmsg.
|
virtual |
reset packet content
Reimplemented from rofl::openflow::cofmsg.
|
virtual |
unpack OFpacket content from specified buffer
Reimplemented from rofl::openflow::cofmsg.
|
virtual |
parse packet and validate it
Reimplemented from rofl::openflow::cofmsg.
1.8.6