lib/ofp-actions: Enforce action consistency.
[sliver-openvswitch.git] / lib / ofp-util.h
index edf7ad2..1f77808 100644 (file)
@@ -89,6 +89,7 @@ enum ofputil_protocol {
     OFPUTIL_P_OF10_NXM_TID = 1 << 3,
 #define OFPUTIL_P_OF10_STD_ANY (OFPUTIL_P_OF10_STD | OFPUTIL_P_OF10_STD_TID)
 #define OFPUTIL_P_OF10_NXM_ANY (OFPUTIL_P_OF10_NXM | OFPUTIL_P_OF10_NXM_TID)
+#define OFPUTIL_P_OF10_ANY (OFPUTIL_P_OF10_STD_ANY | OFPUTIL_P_OF10_NXM_ANY)
 
     /* OpenFlow 1.1 protocol.
      *
@@ -400,7 +401,7 @@ struct ofputil_packet_in {
     /* Information about the OpenFlow flow that triggered the packet-in.
      *
      * A packet-in triggered by a flow table miss has no associated flow.  In
-     * that case, 'cookie' is 0. */
+     * that case, 'cookie' is UINT64_MAX. */
     uint8_t table_id;                    /* OpenFlow table ID. */
     ovs_be64 cookie;                     /* Flow's cookie. */
 };