4 #define OFPAT10_ACTION(ENUM, STRUCT, NAME)
6 OFPAT10_ACTION(OFPAT10_OUTPUT, ofp10_action_output, "output")
7 OFPAT10_ACTION(OFPAT10_SET_VLAN_VID, ofp_action_vlan_vid, "mod_vlan_vid")
8 OFPAT10_ACTION(OFPAT10_SET_VLAN_PCP, ofp_action_vlan_pcp, "mod_vlan_pcp")
9 OFPAT10_ACTION(OFPAT10_STRIP_VLAN, ofp_action_header, "strip_vlan")
10 OFPAT10_ACTION(OFPAT10_SET_DL_SRC, ofp_action_dl_addr, "mod_dl_src")
11 OFPAT10_ACTION(OFPAT10_SET_DL_DST, ofp_action_dl_addr, "mod_dl_dst")
12 OFPAT10_ACTION(OFPAT10_SET_NW_SRC, ofp_action_nw_addr, "mod_nw_src")
13 OFPAT10_ACTION(OFPAT10_SET_NW_DST, ofp_action_nw_addr, "mod_nw_dst")
14 OFPAT10_ACTION(OFPAT10_SET_NW_TOS, ofp_action_nw_tos, "mod_nw_tos")
15 OFPAT10_ACTION(OFPAT10_SET_TP_SRC, ofp_action_tp_port, "mod_tp_src")
16 OFPAT10_ACTION(OFPAT10_SET_TP_DST, ofp_action_tp_port, "mod_tp_dst")
17 OFPAT10_ACTION(OFPAT10_ENQUEUE, ofp_action_enqueue, "enqueue")
19 #ifndef OFPAT11_ACTION
20 #define OFPAT11_ACTION(ENUM, STRUCT, NAME)
22 OFPAT11_ACTION(OFPAT11_OUTPUT, ofp11_action_output, "output")
23 OFPAT11_ACTION(OFPAT11_SET_VLAN_VID, ofp_action_vlan_vid, "mod_vlan_vid")
24 OFPAT11_ACTION(OFPAT11_SET_VLAN_PCP, ofp_action_vlan_pcp, "mod_vlan_pcp")
25 OFPAT11_ACTION(OFPAT11_SET_DL_SRC, ofp_action_dl_addr, "mod_dl_src")
26 OFPAT11_ACTION(OFPAT11_SET_DL_DST, ofp_action_dl_addr, "mod_dl_dst")
27 OFPAT11_ACTION(OFPAT11_SET_NW_SRC, ofp_action_nw_addr, "mod_nw_src")
28 OFPAT11_ACTION(OFPAT11_SET_NW_DST, ofp_action_nw_addr, "mod_nw_dst")
29 OFPAT11_ACTION(OFPAT11_SET_NW_TOS, ofp_action_nw_tos, "mod_nw_tos")
30 //OFPAT11_ACTION(OFPAT11_SET_NW_ECN, ofp11_action_nw_ecn, "mod_nw_ecn")
31 OFPAT11_ACTION(OFPAT11_SET_TP_SRC, ofp_action_tp_port, "mod_tp_src")
32 OFPAT11_ACTION(OFPAT11_SET_TP_DST, ofp_action_tp_port, "mod_tp_dst")
33 //OFPAT11_ACTION(OFPAT11_PUSH_VLAN, ofp11_action_push, "push_vlan")
34 //OFPAT11_ACTION(OFPAT11_POP_VLAN, ofp_action_header, "pop_vlan")
35 //OFPAT11_ACTION(OFPAT11_SET_QUEUE, ofp11_action_set_queue, "set_queue")
36 //OFPAT11_ACTION(OFPAT11_SET_NW_TTL, ofp11_action_nw_ttl, "set_nw_ttl")
37 //OFPAT11_ACTION(OFPAT11_DEC_NW_TTL, ofp_action_header, "dec_ttl")
39 #ifndef OFPAT12_ACTION
40 #define OFPAT12_ACTION(ENUM, STRUCT, NAME)
42 //OFPAT12_ACTION(OFPAT12_OUTPUT, , "output")
43 //OFPAT12_ACTION(OFPAT12_COPY_TTL_OUT, ofp_action_header, "copy_ttl_out")
44 //OFPAT12_ACTION(OFPAT12_COPY_TTL_IN, ofp_action_header, "copy_ttl_in")
45 //OFPAT12_ACTION(OFPAT12_SET_MPLS_TTL, , "set_mpls_ttl")
46 //OFPAT12_ACTION(OFPAT12_DEC_MPLS_TTL, ofp_action_header, "dec_mpls_ttl")
47 //OFPAT12_ACTION(OFPAT12_PUSH_VLAN, , "push_vlan")
48 //OFPAT12_ACTION(OFPAT12_POP_VLAN, ofp_action_header, "pop_vlan")
49 //OFPAT12_ACTION(OFPAT12_PUSH_MPLS, , "push_mpls")
50 //OFPAT12_ACTION(OFPAT12_POP_MPLS, , "pop_mpls")
51 //OFPAT12_ACTION(OFPAT12_SET_QUEUE, , "set_queue")
52 //OFPAT12_ACTION(OFPAT12_GROUP, , "group")
53 //OFPAT12_ACTION(OFPAT12_SET_NW_TTL, , "set_nw_ttl")
54 //OFPAT12_ACTION(OFPAT12_DEC_NW_TTL, ofp_action_header, "dec_ttl")
55 //Use non-NULL name for OFPAT12_SET_FIELD once the code for
56 //the OFPUTIL_OFPAT12_SET_FIELD case in parse_named_action() is implemented
57 //OFPAT12_ACTION(OFPAT12_SET_FIELD, ofp12_action_set_field, "set_field")
58 OFPAT12_ACTION(OFPAT12_SET_FIELD, ofp12_action_set_field, NULL)
59 //OFPAT12_ACTION(OFPAT12_EXPERIMENTER, , )
62 #define NXAST_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME)
64 NXAST_ACTION(NXAST_RESUBMIT, nx_action_resubmit, 0, "resubmit")
65 NXAST_ACTION(NXAST_SET_TUNNEL, nx_action_set_tunnel, 0, "set_tunnel")
66 NXAST_ACTION(NXAST_SET_QUEUE, nx_action_set_queue, 0, "set_queue")
67 NXAST_ACTION(NXAST_POP_QUEUE, nx_action_pop_queue, 0, "pop_queue")
68 NXAST_ACTION(NXAST_REG_MOVE, nx_action_reg_move, 0, "move")
69 NXAST_ACTION(NXAST_REG_LOAD, nx_action_reg_load, 0, "load")
70 NXAST_ACTION(NXAST_NOTE, nx_action_note, 1, "note")
71 NXAST_ACTION(NXAST_SET_TUNNEL64, nx_action_set_tunnel64, 0, "set_tunnel64")
72 NXAST_ACTION(NXAST_MULTIPATH, nx_action_multipath, 0, "multipath")
73 NXAST_ACTION(NXAST_AUTOPATH__DEPRECATED,nx_action_autopath, 0, "autopath")
74 NXAST_ACTION(NXAST_BUNDLE, nx_action_bundle, 1, "bundle")
75 NXAST_ACTION(NXAST_BUNDLE_LOAD, nx_action_bundle, 1, "bundle_load")
76 NXAST_ACTION(NXAST_RESUBMIT_TABLE, nx_action_resubmit, 0, NULL)
77 NXAST_ACTION(NXAST_OUTPUT_REG, nx_action_output_reg, 0, NULL)
78 NXAST_ACTION(NXAST_LEARN, nx_action_learn, 1, "learn")
79 NXAST_ACTION(NXAST_EXIT, nx_action_header, 0, "exit")
80 NXAST_ACTION(NXAST_DEC_TTL, nx_action_header, 0, "dec_ttl")
81 NXAST_ACTION(NXAST_FIN_TIMEOUT, nx_action_fin_timeout, 0, "fin_timeout")
82 NXAST_ACTION(NXAST_CONTROLLER, nx_action_controller, 0, "controller")
83 NXAST_ACTION(NXAST_DEC_TTL_CNT_IDS, nx_action_cnt_ids, 1, NULL)