8 #ifndef COFMSG_TABLE_STATS_H_
9 #define COFMSG_TABLE_STATS_H_ 1
13 #include "rofl/common/openflow/messages/cofmsg_stats.h"
14 #include "rofl/common/openflow/coftablestats.h"
15 #include "rofl/common/openflow/coftablestatsarray.h"
36 uint8_t of_version = 0,
94 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
101 unpack(uint8_t *buf,
size_t buflen);
113 os << dynamic_cast<cofmsg const&>( msg );
115 os << dynamic_cast<cofmsg_stats const&>( msg );
116 os <<
indent(2) <<
"<cofmsg_table_stats_request >" << std::endl;
122 std::stringstream ss;
123 ss <<
"-Table-Stats-Request- " << cofmsg::str() <<
" ";
140 uint8_t* ofhu_table_stats;
146 #define ofh_table_stats ofhu.ofhu_table_stats
147 #define ofh10_table_stats ofhu.ofhu10_table_stats
148 #define ofh12_table_stats ofhu.ofhu12_table_stats
149 #define ofh13_table_stats ofhu.ofhu13_table_stats
158 uint8_t of_version = 0,
217 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
224 unpack(uint8_t *buf,
size_t buflen);
239 set_table_stats_array() {
return tablestatsarray; };
245 get_table_stats_array()
const {
return tablestatsarray; };
251 os << indent(0) << dynamic_cast<cofmsg_stats const&>( msg );
252 os <<
indent(4) <<
"<cofmsg_table_stats_reply >" << std::endl;
254 os << msg.tablestatsarray;
260 std::stringstream ss;
261 ss <<
"-Table-Stats-Reply- " << cofmsg::str() <<
" ";
cofmsg_table_stats_reply(uint8_t of_version=0, uint32_t xid=0, uint16_t flags=0, rofl::openflow::coftablestatsarray const &table_stats=rofl::openflow::coftablestatsarray())
Definition: cofmsg_table_stats.cc:180
Definition: cofmsg_stats.h:264
virtual void reset()
Definition: cofmsg_table_stats.cc:272
Definition: openflow12.h:1426
Definition: openflow13.h:1250
Definition: openflow10.h:847
virtual void validate()
Definition: cofmsg_table_stats.cc:154
Definition: cofmsg_stats.h:187
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_table_stats.cc:113
virtual ~cofmsg_table_stats_request()
Definition: cofmsg_table_stats.cc:68
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_table_stats.cc:323
cofmsg_table_stats_request(uint8_t of_version=0, uint32_t xid=0, uint16_t flags=0)
Definition: cofmsg_table_stats.cc:5
Definition: cofmsg_table_stats.h:23
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_table_stats.cc:357
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_table_stats.cc:144
Definition: coftablestatsarray.h:19
virtual void validate()
Definition: cofmsg_table_stats.cc:367
virtual ~cofmsg_table_stats_reply()
Definition: cofmsg_table_stats.cc:264
C++ abstraction for malloc'ed memory areas.
Definition: cmemory.h:44
virtual size_t length() const
Definition: cofmsg_table_stats.cc:92
virtual size_t length() const
Definition: cofmsg_table_stats.cc:302
virtual void reset()
Definition: cofmsg_table_stats.cc:76
Definition: cofmsg_table_stats.h:132