aboutsummaryrefslogtreecommitdiff
path: root/lib/ofp-errors.h
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2012-08-01 16:01:48 +0900
committerBen Pfaff <blp@nicira.com>2012-08-06 22:36:25 -0700
commit9b7e2112b16e8cc3c23be06403ad2e057e5ff682 (patch)
tree172b7e91609cf6598a84cf8aaf06a43aad6c95c8 /lib/ofp-errors.h
parenta0ae0b6e8360116c8843325922c3346ab8f208c7 (diff)
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>
Diffstat (limited to 'lib/ofp-errors.h')
-rw-r--r--lib/ofp-errors.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ofp-errors.h b/lib/ofp-errors.h
index 76b65746..ecf10ba1 100644
--- a/lib/ofp-errors.h
+++ b/lib/ofp-errors.h
@@ -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 *);