int flow_extract(struct ofpbuf *, uint16_t in_port, struct flow *);
void flow_print(FILE *, const struct flow *);
static inline int flow_compare(const struct flow *, const struct flow *);
+static inline bool flow_equal(const struct flow *, const struct flow *);
static inline size_t flow_hash(const struct flow *, uint32_t basis);
static inline int
return memcmp(a, b, sizeof *a);
}
+static inline bool
+flow_equal(const struct flow *a, const struct flow *b)
+{
+ return !flow_compare(a, b);
+}
+
static inline size_t
flow_hash(const struct flow *flow, uint32_t basis)
{