diff options
author | Ben Pfaff <blp@nicira.com> | 2015-01-22 09:07:46 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-01-22 09:08:27 -0800 |
commit | 20e4ec1a2b723ca9cc3a63aa147a33414b294616 (patch) | |
tree | 54f48b4b686359d9f3089ce4fc9555fc5fc78ffb /lib | |
parent | 4ba15221632ea8b3e2fa25357bc45089cd3a3271 (diff) | |
download | openvswitch-20e4ec1a2b723ca9cc3a63aa147a33414b294616.tar.gz |
ofp-errors: Use OFPERR_OFPBRC_IS_SLAVE to reject slave controllers.
This error code was just overlooked before.
Reported-by: Anup Khadka <khadka.py@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ofp-errors.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ofp-errors.h b/lib/ofp-errors.h index a4d4c5c5a..aff207562 100644 --- a/lib/ofp-errors.h +++ b/lib/ofp-errors.h @@ -106,6 +106,12 @@ enum ofperr { /* Expected: 0x0,3,5 in OF1.1 means both OFPBIC_BAD_EXPERIMENTER and * OFPBIC_BAD_EXP_TYPE. */ + /* Expected: 0x0,1,5 in OF1.0 means both OFPBRC_EPERM and + * OFPBRC_IS_SLAVE. */ + + /* Expected: 0x0,1,5 in OF1.1 means both OFPBRC_EPERM and + * OFPBRC_IS_SLAVE. */ + /* ## ------------------ ## */ /* ## OFPET_HELLO_FAILED ## */ /* ## ------------------ ## */ @@ -154,7 +160,7 @@ enum ofperr { * code defined the specification. ] */ OFPERR_OFPBRC_BAD_TABLE_ID, - /* OF1.2+(1,10). Denied because controller is slave. */ + /* OF1.0-1.1(1,5), OF1.2+(1,10). Denied because controller is slave. */ OFPERR_OFPBRC_IS_SLAVE, /* NX1.0-1.1(1,514), OF1.2+(1,11). Invalid port. [ A non-standard error |