Looks good to me. On May 14, 2013 7:30 PM, "Ethan Jackson" <et...@nicira.com> wrote:
> Used in future commits. > > Signed-off-by: Ethan Jackson <et...@nicira.com> > --- > lib/ofpbuf.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h > index 8b03c7e..0c12162 100644 > --- a/lib/ofpbuf.h > +++ b/lib/ofpbuf.h > @@ -107,6 +107,12 @@ static inline struct ofpbuf *ofpbuf_from_list(const > struct list *list) > } > void ofpbuf_list_delete(struct list *); > > +static inline bool > +ofpbuf_equal(const struct ofpbuf *a, const struct ofpbuf *b) > +{ > + return a->size == b->size && memcmp(a->data, b->data, a->size) == 0; > +} > + > #ifdef __cplusplus > } > #endif > -- > 1.7.9.5 > > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev >
_______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev