From: Justin Pettit Date: Thu, 12 Nov 2009 23:46:35 +0000 (-0800) Subject: ofp-print: Add missing error types X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4785c1e43c418496fe4456e026457048575e81d;p=openvswitch ofp-print: Add missing error types --- diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 63b59ddb..9c1afe44 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -797,7 +797,11 @@ static const struct error_type error_types[] = { ERROR_CODE(OFPET_BAD_REQUEST, OFPBRC_BAD_VERSION), ERROR_CODE(OFPET_BAD_REQUEST, OFPBRC_BAD_TYPE), ERROR_CODE(OFPET_BAD_REQUEST, OFPBRC_BAD_STAT), - ERROR_CODE(OFPET_BAD_REQUEST, OFPBRC_BAD_VERSION), + ERROR_CODE(OFPET_BAD_REQUEST, OFPBRC_BAD_VENDOR), + ERROR_CODE(OFPET_BAD_REQUEST, OFPBRC_BAD_SUBTYPE), + ERROR_CODE(OFPET_BAD_REQUEST, OFPBRC_BAD_LENGTH), + ERROR_CODE(OFPET_BAD_REQUEST, OFPBRC_BUFFER_EMPTY), + ERROR_CODE(OFPET_BAD_REQUEST, OFPBRC_BAD_COOKIE), ERROR_TYPE(OFPET_BAD_ACTION), ERROR_CODE(OFPET_BAD_ACTION, OFPBAC_BAD_TYPE), @@ -805,9 +809,16 @@ static const struct error_type error_types[] = { ERROR_CODE(OFPET_BAD_ACTION, OFPBAC_BAD_VENDOR), ERROR_CODE(OFPET_BAD_ACTION, OFPBAC_BAD_VENDOR_TYPE), ERROR_CODE(OFPET_BAD_ACTION, OFPBAC_BAD_OUT_PORT), + ERROR_CODE(OFPET_BAD_ACTION, OFPBAC_BAD_ARGUMENT), + ERROR_CODE(OFPET_BAD_ACTION, OFPBAC_TOO_MANY), ERROR_TYPE(OFPET_FLOW_MOD_FAILED), - ERROR_CODE(OFPET_FLOW_MOD_FAILED, OFPFMFC_ALL_TABLES_FULL) + ERROR_CODE(OFPET_FLOW_MOD_FAILED, OFPFMFC_ALL_TABLES_FULL), + ERROR_CODE(OFPET_FLOW_MOD_FAILED, OFPFMFC_BAD_COMMAND), + + ERROR_TYPE(OFPET_PORT_MOD_FAILED), + ERROR_CODE(OFPET_PORT_MOD_FAILED, OFPPMFC_BAD_PORT), + ERROR_CODE(OFPET_PORT_MOD_FAILED, OFPPMFC_BAD_HW_ADDR) }; #define N_ERROR_TYPES ARRAY_SIZE(error_types)