8 #ifndef COFBUCKETCOUNTER_H_
9 #define COFBUCKETCOUNTER_H_
15 #include "rofl/common/openflow/openflow.h"
16 #include "rofl/common/openflow/openflow_rofl_exceptions.h"
17 #include "rofl/common/croflexception.h"
18 #include "rofl/common/logging.h"
30 uint64_t packet_count;
39 uint8_t ofp_version = rofl::openflow::OFP_VERSION_UNKNOWN);
73 get_version()
const {
return ofp_version; };
79 set_version(uint8_t ofp_version) { this->ofp_version = ofp_version; };
85 get_packet_count()
const {
return packet_count; };
91 set_packet_count(uint64_t packet_count) { this->packet_count = packet_count; };
97 get_byte_count()
const {
return byte_count; };
103 set_byte_count(uint64_t byte_count) { this->byte_count = byte_count; };
117 pack(uint8_t* buf,
size_t buflen);
123 unpack(uint8_t* buf,
size_t buflen);
130 os <<
"ofp-version: " << (int)bc.ofp_version <<
" ";
132 os <<
"packet-count: 0x" << (
unsigned long long)bc.packet_count <<
" ";
133 os <<
"byte-count: 0x" << (
unsigned long long)bc.byte_count <<
" ";
135 os <<
">" << std::endl;
Definition: cofbucketcounter.h:25
Definition: cofbucketcounter.h:24
Definition: cofbucketcounter.h:27
Definition: cofbucketcounter.h:23
Definition: croflexception.h:27