From: Ben Pfaff Date: Mon, 2 Mar 2009 20:51:08 +0000 (-0800) Subject: openflow.h: Add new error types and codes. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a01e8663a851a28b5d7f1e1e5631b81b6556785;p=openvswitch openflow.h: Add new error types and codes. --- diff --git a/include/openflow/openflow.h b/include/openflow/openflow.h index 0a6d7874..5d48f791 100644 --- a/include/openflow/openflow.h +++ b/include/openflow/openflow.h @@ -584,7 +584,8 @@ enum ofp_error_type { OFPET_HELLO_FAILED, /* Hello protocol failed. */ OFPET_BAD_REQUEST, /* Request was not understood. */ OFPET_BAD_ACTION, /* Error in action description. */ - OFPET_FLOW_MOD_FAILED /* Problem modifying flow entry. */ + OFPET_FLOW_MOD_FAILED, /* Problem modifying flow entry. */ + OFPET_PORT_MOD_FAILED /* OFPT_PORT_MOD failed. */ }; /* ofp_error_msg 'code' values for OFPET_HELLO_FAILED. 'data' contains an @@ -601,7 +602,10 @@ enum ofp_bad_request_code { OFPBRC_BAD_STAT, /* ofp_stats_request.type not supported. */ OFPBRC_BAD_VENDOR, /* Vendor not supported (in ofp_vendor_header * or ofp_stats_request or ofp_stats_reply). */ - OFPBRC_BAD_SUBTYPE /* Vendor subtype not supported. */ + OFPBRC_BAD_SUBTYPE, /* Vendor subtype not supported. */ + OFPBRC_BAD_LENGTH, /* Wrong request length for type. */ + OFPBRC_BUFFER_EMPTY, /* Specified buffer has already been used. */ + OFPBRC_BAD_COOKIE /* Specified buffer does not exist. */ }; /* ofp_error_msg 'code' values for OFPET_BAD_ACTION. 'data' contains at least @@ -618,7 +622,15 @@ enum ofp_bad_action_code { /* ofp_error_msg 'code' values for OFPET_FLOW_MOD_FAILED. 'data' contains * at least the first 64 bytes of the failed request. */ enum ofp_flow_mod_failed_code { - OFPFMFC_ALL_TABLES_FULL /* Flow not added because of full tables. */ + OFPFMFC_ALL_TABLES_FULL, /* Flow not added because of full tables. */ + OFPFMFC_BAD_COMMAND /* Unknown command. */ +}; + +/* ofp_error_msg 'code' values for OFPET_PORT_MOD_FAILED. 'data' contains + * at least the first 64 bytes of the failed request. */ +enum ofp_port_mod_failed_code { + OFPPMFC_BAD_PORT, /* Specified port does not exist. */ + OFPPMFC_BAD_HW_ADDR, /* Specified hardware address is wrong. */ }; /* OFPT_ERROR: Error message (datapath -> controller). */