4 #include "fluid/ofcommon/action.hh"
5 #include "of13match.hh"
15 const uint16_t set_order_;
21 virtual bool equals(
const Action & other);
22 uint16_t set_order()
const {
23 return this->set_order_;
25 size_t pack(uint8_t *buffer);
26 of_error unpack(uint8_t *buffer);
33 void port(uint32_t port) {
37 return this->max_len_;
39 void max_len(uint16_t max_len) {
40 this->max_len_ = max_len;
46 const uint16_t set_order_;
51 uint16_t set_order()
const {
52 return this->set_order_;
54 size_t pack(uint8_t *buffer);
55 of_error unpack(uint8_t *buffer);
63 const uint16_t set_order_;
68 uint16_t set_order()
const {
69 return this->set_order_;
71 size_t pack(uint8_t *buffer);
72 of_error unpack(uint8_t *buffer);
81 const uint16_t set_order_;
87 virtual bool equals(
const Action & other);
88 uint16_t set_order()
const {
89 return this->set_order_;
91 size_t pack(uint8_t *buffer);
92 of_error unpack(uint8_t *buffer);
94 return this->mpls_ttl_;
96 void mpls_ttl(uint8_t mpls_ttl) {
97 this->mpls_ttl_ = mpls_ttl;
106 const uint16_t set_order_;
111 uint16_t set_order()
const {
112 return this->set_order_;
114 size_t pack(uint8_t *buffer);
115 of_error unpack(uint8_t *buffer);
124 const uint16_t set_order_;
130 virtual bool equals(
const Action & other);
131 uint16_t set_order()
const {
132 return this->set_order_;
134 size_t pack(uint8_t *buffer);
135 of_error unpack(uint8_t *buffer);
139 uint16_t ethertype() {
140 return this->ethertype_;
142 void ethertype(uint16_t ethertype) {
143 this->ethertype_ = ethertype;
149 const uint16_t set_order_;
154 uint16_t set_order()
const {
155 return this->set_order_;
157 size_t pack(uint8_t *buffer);
158 of_error unpack(uint8_t *buffer);
167 const uint16_t set_order_;
173 virtual bool equals(
const Action & other);
174 uint16_t set_order()
const {
175 return this->set_order_;
177 size_t pack(uint8_t *buffer);
178 of_error unpack(uint8_t *buffer);
182 uint16_t ethertype() {
183 return this->ethertype_;
185 void ethertype(uint16_t ethertype) {
186 this->ethertype_ = ethertype;
193 const uint16_t set_order_;
199 virtual bool equals(
const Action & other);
200 uint16_t set_order()
const {
201 return this->set_order_;
203 size_t pack(uint8_t *buffer);
204 of_error unpack(uint8_t *buffer);
208 uint16_t ethertype() {
209 return this->ethertype_;
211 void ethertype(uint16_t ethertype) {
212 this->ethertype_ = ethertype;
219 const uint16_t set_order_;
225 virtual bool equals(
const Action & other);
226 uint16_t set_order()
const {
227 return this->set_order_;
229 size_t pack(uint8_t *buffer);
230 of_error unpack(uint8_t *buffer);
234 uint32_t queue_id() {
235 return this->queue_id_;
237 void queue_id(uint32_t queue_id) {
238 this->queue_id_ = queue_id;
245 const uint16_t set_order_;
251 virtual bool equals(
const Action & other);
252 uint16_t set_order()
const {
253 return this->set_order_;
255 size_t pack(uint8_t *buffer);
256 of_error unpack(uint8_t *buffer);
260 uint32_t group_id() {
261 return this->group_id_;
263 void group_id(uint32_t group_id) {
264 this->group_id_ = group_id;
271 const uint16_t set_order_;
278 virtual bool equals(
const Action & other);
279 uint16_t set_order()
const {
280 return this->set_order_;
282 size_t pack(uint8_t *buffer);
283 of_error unpack(uint8_t *buffer);
288 return this->nw_ttl_;
290 void nw_ttl(uint8_t nw_ttl) {
291 this->nw_ttl_ = nw_ttl;
297 const uint16_t set_order_;
302 uint16_t set_order()
const {
303 return this->set_order_;
305 size_t pack(uint8_t *buffer);
306 of_error unpack(uint8_t *buffer);
315 const uint16_t set_order_;
321 virtual bool equals(
const Action & other);
323 uint16_t set_order()
const {
324 return this->set_order_;
326 size_t pack(uint8_t *buffer);
327 of_error unpack(uint8_t *buffer);
332 void field(
OXMTLV* field);
339 const uint16_t set_order_;
345 virtual bool equals(
const Action & other);
346 uint16_t set_order()
const {
347 return this->set_order_;
349 size_t pack(uint8_t *buffer);
350 of_error unpack(uint8_t *buffer);
354 uint16_t ethertype() {
355 return this->ethertype_;
357 void ethertype(uint16_t ethertype) {
358 this->ethertype_ = ethertype;
364 const uint16_t set_order_;
369 uint16_t set_order()
const {
370 return this->set_order_;
372 size_t pack(uint8_t *buffer);
373 of_error unpack(uint8_t *buffer);
381 uint32_t experimenter_;
387 virtual bool equals(
const Action & other);
388 size_t pack(uint8_t *buffer);
389 of_error unpack(uint8_t *buffer);
393 uint32_t experimenter() {
394 return this->experimenter_;
396 void experimenter(uint32_t experimenter) {
397 this->experimenter_ = experimenter;