mirror of
https://github.com/openvswitch/ovs
synced 2025-09-02 15:25:22 +00:00
ofp-util: Make ofperr_encode_msg__() use correct Open Flow version
Make ofperr_encode_msg__() use correct Open Flow version in the header of messages. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -21,8 +21,9 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "openflow/openflow.h"
|
||||
|
||||
struct ds;
|
||||
struct ofp_header;
|
||||
struct ofpbuf;
|
||||
|
||||
/* Error codes.
|
||||
@@ -515,7 +516,7 @@ enum ofperr ofperr_from_name(const char *);
|
||||
enum ofperr ofperr_decode_msg(const struct ofp_header *,
|
||||
struct ofpbuf *payload);
|
||||
struct ofpbuf *ofperr_encode_reply(enum ofperr, const struct ofp_header *);
|
||||
struct ofpbuf *ofperr_encode_hello(enum ofperr, const struct ofperr_domain *,
|
||||
struct ofpbuf *ofperr_encode_hello(enum ofperr, enum ofp_version ofp_version,
|
||||
const char *);
|
||||
int ofperr_get_type(enum ofperr, const struct ofperr_domain *);
|
||||
int ofperr_get_code(enum ofperr, const struct ofperr_domain *);
|
||||
|
Reference in New Issue
Block a user