ofp-util: Add version bitmap support to hello messages.
[openvswitch] / lib / ofp-util.h
index ad9f2bbbde4cd529f66f0ae04278f532fceab4cd..4bd5a0014e98d3ccc2b14395cc1ae2a3ddd84d60 100644 (file)
@@ -124,6 +124,10 @@ enum ofputil_protocol ofputil_protocols_from_string(const char *s);
 const char *ofputil_version_to_string(enum ofp_version ofp_version);
 uint32_t ofputil_versions_from_string(const char *s);
 
+bool ofputil_decode_hello(const struct ofp_header *,
+                          uint32_t *allowed_versions);
+struct ofpbuf *ofputil_encode_hello(uint32_t version_bitmap);
+
 struct ofpbuf *ofputil_encode_set_protocol(enum ofputil_protocol current,
                                            enum ofputil_protocol want,
                                            enum ofputil_protocol *next);