X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fopenflow%2Fopenflow-common.h;fp=include%2Fopenflow%2Fopenflow-common.h;h=4ab378046b00feaf78e71302945bd9686dee9cc1;hb=e1152397ae5307cd7a082361ab81fa73076368f5;hp=3c456ba14b8228fb7ab7e73036eeb8cf2311b9f7;hpb=7011767c3497ed1dc05f2bdee96a09b4bc050439;p=openvswitch diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 3c456ba1..4ab37804 100644 --- a/include/openflow/openflow-common.h +++ b/include/openflow/openflow-common.h @@ -195,6 +195,20 @@ enum ofp_packet_in_reason { OFPR_N_REASONS }; +enum ofp_flow_mod_command { + OFPFC_ADD, /* New flow. */ + OFPFC_MODIFY, /* Modify all matching flows. */ + OFPFC_MODIFY_STRICT, /* Modify entry strictly matching wildcards */ + OFPFC_DELETE, /* Delete all matching flows. */ + OFPFC_DELETE_STRICT /* Strictly match wildcards and priority. */ +}; + +enum ofp_flow_mod_flags { + OFPFF_SEND_FLOW_REM = 1 << 0, /* Send flow removed message when flow + * expires or is deleted. */ + OFPFF_CHECK_OVERLAP = 1 << 1, /* Check for overlapping entries first. */ +}; + /* Action structure for OFPAT10_SET_VLAN_VID and OFPAT11_SET_VLAN_VID. */ struct ofp_action_vlan_vid { ovs_be16 type; /* Type. */