Don't use error categories as if they were actually errors.
authorJarno Rajahalme <jarno.rajahalme@nsn.com>
Fri, 30 Nov 2012 21:45:08 +0000 (13:45 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 4 Dec 2012 16:25:55 +0000 (08:25 -0800)
commit15549878535c7331c3952e656a2eb9944d0021bb
treed705f34ee1c00f3e4a7b4889e3d77aefe37dcf7a
parent7a7b64289cd96c5019168f7f0905f59e2d078b76
Don't use error categories as if they were actually errors.

The OFPERR_* naming scheme is confusing, because it mixes categories with
specific errors.  Categories can't be encoded for sending to controllers,
so this is a problem.  This commit fixes up the cases where categories
were used as errors, replacing them by real errors types.

Signed-off-by: Jarno Rajahalme <jarno.rajahalme@nsn.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-actions.c
lib/ofp-errors.h
lib/ofp-util.c
tests/ofp-actions.at