aboutsummaryrefslogtreecommitdiff
path: root/lib/ofp-errors.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-11-30 14:18:03 -0800
committerBen Pfaff <blp@nicira.com>2012-12-04 08:25:56 -0800
commitedd70aa7715800f4b109f879e448c8efa40dadd5 (patch)
treee76edcbef9dd91bd80a62b19ec44492eb2fe3ea3 /lib/ofp-errors.h
parent15549878535c7331c3952e656a2eb9944d0021bb (diff)
ofp-errors: Correctly encode errors as extensions or not depending on domain.
When ofp-errors was introduced, each OFPERR_* was either an extension or not. However, since then, some Nicira extension error code have been given official error codes in later OpenFlow versions, so now whether an OFPERR_* is an extension depends on the OpenFlow versions. This means that certain errors were encoded incorrectly as extensions in later OpenFlow versions. This commit fixes the problem. This commit also adds a test that should prevent a regression. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/ofp-errors.h')
-rw-r--r--lib/ofp-errors.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ofp-errors.h b/lib/ofp-errors.h
index 5c3df20d..9f6911ca 100644
--- a/lib/ofp-errors.h
+++ b/lib/ofp-errors.h
@@ -583,7 +583,6 @@ const char *ofperr_domain_get_name(enum ofp_version);
bool ofperr_is_valid(enum ofperr);
bool ofperr_is_category(enum ofperr);
-bool ofperr_is_nx_extension(enum ofperr);
bool ofperr_is_encodable(enum ofperr, enum ofp_version);
enum ofperr ofperr_decode(enum ofp_version, uint16_t type, uint16_t code);