X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-util.h;h=02096b0ba16f3636139aabd7b649c9045cdd1966;hb=772ec52b896380f23b587bea4a5bf18edd22449d;hp=fdca005fb217a155445e9fefc4798300e070d89d;hpb=daa68e9f291f94fb40a58843ddbe8a9cc8c99ec4;p=openvswitch diff --git a/lib/ofp-util.h b/lib/ofp-util.h index fdca005f..02096b0b 100644 --- a/lib/ofp-util.h +++ b/lib/ofp-util.h @@ -22,6 +22,7 @@ #include #include #include "flow.h" +#include "openflow/nicira-ext.h" #include "openvswitch/types.h" struct cls_rule; @@ -38,9 +39,9 @@ int ofputil_netmask_to_wcbits(ovs_be32 netmask); /* Work with OpenFlow 1.0 ofp_match. */ void ofputil_cls_rule_from_match(const struct ofp_match *, - unsigned int priority, int flow_format, + unsigned int priority, enum nx_flow_format, uint64_t cookie, struct cls_rule *); -void ofputil_cls_rule_to_match(const struct cls_rule *, int flow_format, +void ofputil_cls_rule_to_match(const struct cls_rule *, enum nx_flow_format, struct ofp_match *); void normalize_match(struct ofp_match *); char *ofp_match_to_literal_string(const struct ofp_match *match);