Skip to content

Commit

Permalink
openflow: Add OpenFlow 1.4 packet-in reasons.
Browse files Browse the repository at this point in the history
Signed-off-by: Shu Shen <shu.shen@radisys.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
  • Loading branch information
shushen authored and blp committed Nov 13, 2014
1 parent 2fd84d5 commit 424467c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/openflow/openflow-common.h
Expand Up @@ -271,7 +271,10 @@ enum ofp_capabilities {
enum ofp_packet_in_reason {
OFPR_NO_MATCH, /* No matching flow. */
OFPR_ACTION, /* Action explicitly output to controller. */
OFPR_INVALID_TTL /* Packet has invalid TTL. */,
OFPR_INVALID_TTL, /* Packet has invalid TTL. */
OFPR_ACTION_SET, /* Output to controller in action set */
OFPR_GROUP, /* Output to controller in group bucket */
OFPR_PACKET_OUT, /* Output to controller in packet-out */
OFPR_N_REASONS
};

Expand Down
6 changes: 6 additions & 0 deletions lib/ofp-util.c
Expand Up @@ -3606,6 +3606,12 @@ ofputil_packet_in_reason_to_string(enum ofp_packet_in_reason reason,
return "action";
case OFPR_INVALID_TTL:
return "invalid_ttl";
case OFPR_ACTION_SET:
return "action_set";
case OFPR_GROUP:
return "group";
case OFPR_PACKET_OUT:
return "packet_out";

case OFPR_N_REASONS:
default:
Expand Down

0 comments on commit 424467c

Please sign in to comment.