8 #ifndef COFMSG_EXPERIMENTER_STATS_H_
9 #define COFMSG_EXPERIMENTER_STATS_H_ 1
11 #include "rofl/common/openflow/messages/cofmsg_stats.h"
12 #include "rofl/common/openflow/cofgroupfeaturesstats.h"
13 #include "rofl/common/cmemory.h"
29 uint8_t* ofhu_exp_stats;
35 #define ofh_exp_stats ofhu.ofhu_exp_stats
36 #define ofh10_exp_stats ofhu.ofhu10_exp_stats
37 #define ofh12_exp_stats ofhu.ofhu12_exp_stats
47 uint8_t of_version = 0,
51 uint32_t exp_type = 0,
108 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
115 unpack(uint8_t *buf,
size_t buflen);
131 set_exp_id(uint32_t exp_id);
145 set_exp_type(uint32_t exp_type);
152 get_exp_type()
const;
165 os << dynamic_cast<cofmsg const&>( msg );
166 os <<
indent(2) <<
"<cofmsg_experimenter_stats_request >" << std::endl;
167 os <<
indent(4) <<
"<exp-id:" << (int)msg.get_exp_id() <<
" >" << std::endl;
168 os <<
indent(4) <<
"<exp-type:" << (int)msg.get_exp_type() <<
" >" << std::endl;
192 uint8_t* ofhu_exp_stats;
198 #define ofh_exp_stats ofhu.ofhu_exp_stats
199 #define ofh10_exp_stats ofhu.ofhu10_exp_stats
200 #define ofh12_exp_stats ofhu.ofhu12_exp_stats
210 uint8_t of_version = 0,
214 uint32_t exp_type = 0,
271 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
278 unpack(uint8_t *buf,
size_t buflen);
294 set_exp_id(uint32_t exp_id);
308 set_exp_type(uint32_t exp_type);
315 get_exp_type()
const;
328 os << dynamic_cast<cofmsg const&>( msg );
329 os <<
indent(2) <<
"<cofmsg_experimenter_stats_request >" << std::endl;
330 os <<
indent(4) <<
"<exp-id:" << (int)msg.get_exp_id() <<
" >" << std::endl;
331 os <<
indent(4) <<
"<exp-type:" << (int)msg.get_exp_type() <<
" >" << std::endl;
virtual void reset()
Definition: cofmsg_experimenter_stats.cc:79
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_experimenter_stats.cc:168
Definition: cofmsg_stats.h:264
virtual void validate()
Definition: cofmsg_experimenter_stats.cc:178
cofmsg_experimenter_stats_request(uint8_t of_version=0, uint32_t xid=0, uint16_t flags=0, uint32_t exp_id=0, uint32_t exp_type=0, cmemory const &body=cmemory(0))
Definition: cofmsg_experimenter_stats.cc:5
virtual size_t length() const
Definition: cofmsg_experimenter_stats.cc:400
Definition: cofmsg_stats.h:187
virtual ~cofmsg_experimenter_stats_reply()
Definition: cofmsg_experimenter_stats.cc:360
virtual void validate()
Definition: cofmsg_experimenter_stats.cc:467
virtual ~cofmsg_experimenter_stats_request()
Definition: cofmsg_experimenter_stats.cc:71
virtual size_t length() const
Definition: cofmsg_experimenter_stats.cc:111
virtual void reset()
Definition: cofmsg_experimenter_stats.cc:368
C++ abstraction for malloc'ed memory areas.
Definition: cmemory.h:44
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_experimenter_stats.cc:422
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_experimenter_stats.cc:133
Definition: cofmsg_experimenter_stats.h:21
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_experimenter_stats.cc:457
cofmsg_experimenter_stats_reply(uint8_t of_version=0, uint32_t xid=0, uint16_t flags=0, uint32_t exp_id=0, uint32_t exp_type=0, cmemory const &body=cmemory(0))
Definition: cofmsg_experimenter_stats.cc:294
Definition: cofmsg_experimenter_stats.h:184