8 #ifndef COFPACKETQUEUE_H_
9 #define COFPACKETQUEUE_H_ 1
13 #include "rofl/common/cmemory.h"
14 #include "rofl/common/croflexception.h"
15 #include "rofl/common/openflow/openflow.h"
16 #include "rofl/common/openflow/openflow_rofl_exceptions.h"
17 #include "rofl/common/openflow/cofqueueprops.h"
34 uint8_t of_version = rofl::openflow::OFP_VERSION_UNKNOWN,
36 uint32_t queue_id = 0,
77 uint8_t *buf,
size_t buflen);
85 uint8_t *buf,
size_t buflen);
94 get_version()
const {
return ofp_version; };
100 set_version(uint8_t ofp_version) {
101 this->ofp_version = ofp_version;
102 queue_props.set_version(ofp_version);
109 get_queue_id()
const {
return queue_id; };
117 uint32_t queue_id) { this->queue_id = queue_id; };
124 get_port_no()
const {
return port_no; };
132 uint32_t port_no) { this->port_no = port_no; };
138 get_queue_props()
const {
return queue_props; };
144 set_queue_props() {
return queue_props; };
150 os <<
rofl::indent(0) <<
"<cofpacket_queue version: " << (int)pq.get_version() <<
" "
151 <<
"length: " << pq.length() <<
" "
154 os <<
rofl::indent(2) <<
"<port-no: 0x" << (
unsigned int)pq.get_port_no() <<
" >" << std::endl;
155 os <<
rofl::indent(2) <<
"<queue-id: 0x" << (
unsigned int)pq.get_queue_id() <<
" >" << std::endl;
158 os << pq.queue_props;
167 mutable uint16_t len;
Definition: cofpacketqueue.h:24
Definition: cofpacketqueue.h:27
Definition: cofpacketqueue.h:23
Definition: cofqueueprops.h:20
Definition: croflexception.h:27