git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update sliver-ovs to new ovsdb syntax
[sliver-openvswitch.git]
/
lib
/
ofpbuf.h
diff --git
a/lib/ofpbuf.h
b/lib/ofpbuf.h
index
8b03c7e
..
0c12162
100644
(file)
--- 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