This constant is needed to use ofp_flow_removed_reason_to_string(),
which is itself public.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: William Tu <u9012063@gmail.com>
#include "openvswitch/match.h"
#include "openvswitch/ofp-protocol.h"
#include "openvswitch/ofpbuf.h"
+#include "openvswitch/type-props.h"
#ifdef __cplusplus
extern "C" {
struct ofputil_table_map;
+#define OFP_FLOW_REMOVED_REASON_BUFSIZE (INT_STRLEN(int) + 1)
const char *ofp_flow_removed_reason_to_string(enum ofp_flow_removed_reason,
char *reasonbuf, size_t bufsize);
/* Returns a string form of 'reason'. The return value is either a statically
* allocated constant string or the 'bufsize'-byte buffer 'reasonbuf'.
* 'bufsize' should be at least OFP_FLOW_REMOVED_REASON_BUFSIZE. */
-#define OFP_FLOW_REMOVED_REASON_BUFSIZE (INT_STRLEN(int) + 1)
const char *
ofp_flow_removed_reason_to_string(enum ofp_flow_removed_reason reason,
char *reasonbuf, size_t bufsize)