X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-util.h;h=909467f87ba0bc2d3d97b7fa0767d7cc5c8be89b;hb=d60a2b538a2411019e401a0756c8c0aa1f3b6e98;hp=ecd77cc4629fe04928f932fa96447b4847bdec5c;hpb=0ff2282245a87f253843bf357988d7230139888f;p=sliver-openvswitch.git diff --git a/lib/ofp-util.h b/lib/ofp-util.h index ecd77cc46..909467f87 100644 --- a/lib/ofp-util.h +++ b/lib/ofp-util.h @@ -90,6 +90,8 @@ enum ofputil_msg_code { struct ofputil_msg_type; int ofputil_decode_msg_type(const struct ofp_header *, const struct ofputil_msg_type **); +int ofputil_decode_msg_type_partial(const struct ofp_header *, size_t length, + const struct ofputil_msg_type **); enum ofputil_msg_code ofputil_msg_type_code(const struct ofputil_msg_type *); const char *ofputil_msg_type_name(const struct ofputil_msg_type *); @@ -277,6 +279,9 @@ struct ofpbuf *make_unbuffered_packet_out(const struct ofpbuf *packet, uint16_t in_port, uint16_t out_port); struct ofpbuf *make_echo_request(void); struct ofpbuf *make_echo_reply(const struct ofp_header *rq); + +const char *ofputil_frag_handling_to_string(enum ofp_config_flags); +bool ofputil_frag_handling_from_string(const char *, enum ofp_config_flags *); /* Actions. */