From 424467c6dbd7d52212e4c97b8dca538e00f4ab77 Mon Sep 17 00:00:00 2001 From: Shu Shen Date: Wed, 12 Nov 2014 16:29:59 -0800 Subject: openflow: Add OpenFlow 1.4 packet-in reasons. Signed-off-by: Shu Shen Signed-off-by: Ben Pfaff --- include/openflow/openflow-common.h | 5 ++++- lib/ofp-util.c | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 0915c9154..4a7486bd3 100644 --- a/include/openflow/openflow-common.h +++ b/include/openflow/openflow-common.h @@ -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 }; diff --git a/lib/ofp-util.c b/lib/ofp-util.c index a2b2556b3..94047fa49 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -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: -- cgit v1.2.1