X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-util.h;h=1c8d6cd2880c9053f3b68ee38f7d66d990afcd28;hb=5014a89d9388d800ee5909acbb23705bb93ac1fc;hp=010c34d170c507517b21a151da87bb210b145dee;hpb=e6603631d3c101620882adb29e34cb09b5234291;p=sliver-openvswitch.git diff --git a/lib/ofp-util.h b/lib/ofp-util.h index 010c34d17..1c8d6cd28 100644 --- a/lib/ofp-util.h +++ b/lib/ofp-util.h @@ -27,6 +27,7 @@ #include "netdev.h" #include "openflow/nicira-ext.h" #include "openvswitch/types.h" +#include "type-props.h" struct ofpbuf; @@ -334,7 +335,10 @@ struct ofpbuf *ofputil_encode_packet_in(const struct ofputil_packet_in *, enum ofputil_protocol protocol, enum nx_packet_in_format); -const char *ofputil_packet_in_reason_to_string(enum ofp_packet_in_reason); +enum { OFPUTIL_PACKET_IN_REASON_BUFSIZE = INT_STRLEN(int) + 1 }; +const char *ofputil_packet_in_reason_to_string(enum ofp_packet_in_reason, + char *reasonbuf, + size_t bufsize); bool ofputil_packet_in_reason_from_string(const char *, enum ofp_packet_in_reason *);