ofp-errors: Remove OFPERR_* values for error categories.
authorJarno Rajahalme <jarno.rajahalme@nsn.com>
Fri, 30 Nov 2012 22:32:12 +0000 (14:32 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 4 Dec 2012 16:25:56 +0000 (08:25 -0800)
commitdf30f9b1cde861e157059d225f46e16826fe13c0
treee945ea84211cc75e33be434da2fa2e3af378cf2c
parentedd70aa7715800f4b109f879e448c8efa40dadd5
ofp-errors: Remove OFPERR_* values for error categories.

The main use of OFPERR_* is to define specific errors, but OFPERR_* also
existed for each possible category of error, to enable partial decoding of
unknown specific errors within a known category.  However, in practice,
it was very easy to misuse the error categories as if they were particular
errors.  This commit removes the error category values, to make that error
impossible.

(If partial decoding of unknown specific errors turns out to have been a
valuable feature, then we can reintroduce it some other way.)

Signed-off-by: Jarno Rajahalme <jarno.rajahalme@nsn.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
build-aux/extract-ofp-errors
lib/ofp-errors.c
lib/ofp-errors.h