2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-01 06:45:17 +00:00

ofp-util: Rename OFPUTIL_INVALID to OFPUTIL_MSG_INVALID.

An upcoming commit will introduce new OPFUTIL_* constants for actions.  It
seems best to be able to visually distinguish the contants.  Most of the
existing constants start with a good prefix, but OFPUTIL_INVALID does not,
so rename it.
This commit is contained in:
Ben Pfaff
2011-06-24 13:58:08 -07:00
parent fb115f912b
commit 8f93e93c80
5 changed files with 6 additions and 6 deletions

View File

@@ -225,7 +225,7 @@ lswitch_process_packet(struct lswitch *sw, struct rconn *rconn,
/* Nothing to do. */
break;
case OFPUTIL_INVALID:
case OFPUTIL_MSG_INVALID:
case OFPUTIL_OFPT_HELLO:
case OFPUTIL_OFPT_ERROR:
case OFPUTIL_OFPT_ECHO_REPLY:

View File

@@ -1372,7 +1372,7 @@ ofp_to_string__(const struct ofp_header *oh,
code = ofputil_msg_type_code(type);
switch (code) {
case OFPUTIL_INVALID:
case OFPUTIL_MSG_INVALID:
break;
case OFPUTIL_OFPT_HELLO:

View File

@@ -725,8 +725,8 @@ ofputil_decode_msg_type(const struct ofp_header *oh,
}
if (error) {
static const struct ofputil_msg_type ofputil_invalid_type = {
OFPUTIL_INVALID,
0, "OFPUTIL_INVALID",
OFPUTIL_MSG_INVALID,
0, "OFPUTIL_MSG_INVALID",
0, 0
};

View File

@@ -31,7 +31,7 @@ struct ofpbuf;
/* Basic decoding and length validation of OpenFlow messages. */
enum ofputil_msg_code {
OFPUTIL_INVALID,
OFPUTIL_MSG_INVALID,
/* OFPT_* messages. */
OFPUTIL_OFPT_HELLO,

View File

@@ -2639,7 +2639,7 @@ handle_openflow__(struct ofconn *ofconn, const struct ofpbuf *msg)
case OFPUTIL_OFPST_QUEUE_REQUEST:
return handle_queue_stats_request(ofconn, msg->data);
case OFPUTIL_INVALID:
case OFPUTIL_MSG_INVALID:
case OFPUTIL_OFPT_HELLO:
case OFPUTIL_OFPT_ERROR:
case OFPUTIL_OFPT_FEATURES_REPLY: