X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-util.h;h=782e512a2c75c2aa9f9107c16c659396b0828075;hb=7d78f21c057ff50a823220d809ac38c3d907243c;hp=7c2803461d33375d3bf0ef8aa8d6f8f1d17dde05;hpb=d73728e6bc30c8e6b393699ef78eb7919b1c68c5;p=sliver-openvswitch.git diff --git a/lib/ofp-util.h b/lib/ofp-util.h index 7c2803461..782e512a2 100644 --- a/lib/ofp-util.h +++ b/lib/ofp-util.h @@ -1137,4 +1137,27 @@ void ofputil_append_group_desc_reply(const struct ofputil_group_desc *, struct list *replies); struct ofpbuf *ofputil_encode_group_desc_request(enum ofp_version); +struct ofputil_bundle_ctrl_msg { + uint32_t bundle_id; + uint16_t type; + uint16_t flags; +}; + +struct ofputil_bundle_add_msg { + uint32_t bundle_id; + uint16_t flags; + const struct ofp_header *msg; +}; + +enum ofperr ofputil_decode_bundle_ctrl(const struct ofp_header *, + struct ofputil_bundle_ctrl_msg *); + +struct ofpbuf *ofputil_encode_bundle_ctrl_reply(const struct ofp_header *, + struct ofputil_bundle_ctrl_msg *); + +struct ofpbuf *ofputil_encode_bundle_add(enum ofp_version ofp_version, + struct ofputil_bundle_add_msg *msg); + +enum ofperr ofputil_decode_bundle_add(const struct ofp_header *, + struct ofputil_bundle_add_msg *); #endif /* ofp-util.h */