4 #include "fluid/util/ethaddr.hh"
5 #include "fluid/util/ipaddr.hh"
6 #include "fluid/ofcommon/action.hh"
24 virtual bool equals(
const Action & other);
25 size_t pack(uint8_t *buffer);
26 of_error unpack(uint8_t *buffer);
30 void port(uint32_t port) {
34 return this->max_len_;
36 void max_len(uint16_t max_len) {
37 this->max_len_ = max_len;
52 virtual bool equals(
const Action & other);
53 size_t pack(uint8_t *buffer);
54 of_error unpack(uint8_t *buffer);
56 return this->vlan_vid_;
58 void vlan_vid(uint16_t vlan_vid) {
59 this->vlan_vid_ = vlan_vid;
74 virtual bool equals(
const Action & other);
75 size_t pack(uint8_t *buffer);
76 of_error unpack(uint8_t *buffer);
78 return this->vlan_pcp_;
80 void vlan_pcp(uint8_t vlan_pcp) {
81 this->vlan_pcp_ = vlan_pcp;
90 size_t pack(uint8_t *buffer);
91 of_error unpack(uint8_t *buffer);
105 virtual bool equals(
const Action & other);
106 size_t pack(uint8_t *buffer);
107 of_error unpack(uint8_t *buffer);
112 return this->dl_addr_;
115 this->dl_addr_ = dl_addr;
127 virtual bool equals(
const Action & other);
128 size_t pack(uint8_t *buffer);
129 of_error unpack(uint8_t *buffer);
134 return this->dl_addr_;
137 this->dl_addr_ = dl_addr;
150 virtual bool equals(
const Action & other);
151 size_t pack(uint8_t *buffer);
152 of_error unpack(uint8_t *buffer);
157 return this->nw_addr_;
160 this->nw_addr_ = nw_addr;
172 virtual bool equals(
const Action & other);
173 size_t pack(uint8_t *buffer);
174 of_error unpack(uint8_t *buffer);
179 return this->nw_addr_;
182 this->nw_addr_ = nw_addr;
194 virtual bool equals(
const Action & other);
195 size_t pack(uint8_t *buffer);
196 of_error unpack(uint8_t *buffer);
201 return this->nw_tos_;
203 void nw_tos(uint8_t nw_tos) {
204 this->nw_tos_ = nw_tos;
216 virtual bool equals(
const Action & other);
217 size_t pack(uint8_t *buffer);
218 of_error unpack(uint8_t *buffer);
223 return this->tp_port_;
225 void tp_port(uint16_t tp_port) {
226 this->tp_port_ = tp_port;
238 virtual bool equals(
const Action & other);
239 size_t pack(uint8_t *buffer);
240 of_error unpack(uint8_t *buffer);
245 return this->tp_port_;
247 void tp_port(uint16_t tp_port) {
248 this->tp_port_ = tp_port;
261 virtual bool equals(
const Action & other);
262 size_t pack(uint8_t *buffer);
263 of_error unpack(uint8_t *buffer);
270 uint32_t queue_id() {
271 return this->queue_id_;
273 void port(uint16_t port) {
276 void queue_id(uint32_t queue_id) {
277 this->queue_id_ = queue_id;
289 virtual bool equals(
const Action & other);
293 size_t pack(uint8_t *buffer);
294 of_error unpack(uint8_t *buffer);
296 return this->vendor_;
298 void vendor(uint32_t vendor) {
299 this->vendor_ = vendor;