8 #ifndef COFPACKETQUEUELIST_H_
9 #define COFPACKETQUEUELIST_H_ 1
14 #include "rofl/common/openflow/cofpacketqueue.h"
26 uint8_t of_version = rofl::openflow::OFP_VERSION_UNKNOWN);
52 get_version()
const {
return ofp_version; };
58 set_version(uint8_t ofp_version) { this->ofp_version = ofp_version; };
63 const std::map<uint32_t, std::map<uint32_t, cofpacket_queue> >&
64 get_packet_queues()
const {
return pqueues; };
69 std::map<uint32_t, std::map<uint32_t, cofpacket_queue> >&
70 set_packet_queues() {
return pqueues; };
84 add_pqueue(uint32_t port_no, uint32_t queue_id);
90 set_pqueue(uint32_t port_no, uint32_t queue_id);
96 get_pqueue(uint32_t port_no, uint32_t queue_id)
const;
102 drop_pqueue(uint32_t port_no, uint32_t queue_id);
108 has_pqueue(uint32_t port_no, uint32_t queue_id)
const;
123 uint8_t *buf,
size_t buflen);
130 uint8_t *buf,
size_t buflen);
139 unsigned int count = 0;
140 for (std::map<uint32_t, std::map<uint32_t, cofpacket_queue> >::const_iterator
141 it = pql.pqueues.begin(); it != pql.pqueues.end(); ++it) {
142 count += it->second.size();
144 os <<
rofl::indent(0) <<
"<cofpacket_queues #queues: " << count <<
" >" << std::endl;
145 for (std::map<uint32_t, std::map<uint32_t, cofpacket_queue> >::const_iterator
146 it = pql.pqueues.begin(); it != pql.pqueues.end(); ++it) {
147 for (std::map<uint32_t, cofpacket_queue>::const_iterator
148 jt = it->second.begin(); jt != it->second.end(); ++jt) {
158 std::map<uint32_t, std::map<uint32_t, cofpacket_queue> > pqueues;
Definition: cofpacketqueue.h:27
Definition: cofpacketqueues.h:19