8 #ifndef COFMSG_METER_MOD_H
9 #define COFMSG_METER_MOD_H 1
11 #include "rofl/common/openflow/messages/cofmsg.h"
12 #include "rofl/common/openflow/cofmeterbands.h"
30 uint8_t of_version = rofl::openflow::OFP_VERSION_UNKNOWN,
34 uint32_t meter_id = 0,
86 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
93 unpack(uint8_t *buf,
size_t buflen);
108 set_command(uint16_t command) { this->command = command; };
114 get_command()
const {
return command; };
120 set_flags(uint16_t flags) { this->flags = flags; };
126 get_flags()
const {
return flags; };
132 set_meter_id(uint32_t meter_id) { this->meter_id = meter_id; };
138 get_meter_id()
const {
return meter_id; };
144 set_meter_bands() {
return meter_bands; };
150 get_meter_bands()
const {
return meter_bands; };
156 os << dynamic_cast<cofmsg const&>( msg );
157 os <<
indent(2) <<
"<cofmsg_meter >" << std::endl;
159 os << msg.meter_bands;
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())
Definition: cofmsg_meter_mod.cc:5
virtual void validate()
Definition: cofmsg_meter_mod.cc:155
virtual size_t length() const
Definition: cofmsg_meter_mod.cc:95
Definition: cofmsg_meter_mod.h:20
virtual ~cofmsg_meter_mod()
Definition: cofmsg_meter_mod.cc:75
Definition: cofmeterbands.h:24
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_meter_mod.cc:145
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_meter_mod.cc:110
C++ abstraction for malloc'ed memory areas.
Definition: cmemory.h:44
virtual void reset()
Definition: cofmsg_meter_mod.cc:83