From 0d193212d68162b482d1d0a3190d9c07e8140fac Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 10 May 2012 11:24:36 -0700 Subject: [PATCH] ofputil: Accept OFPP_NONE as a valid output port. Ofproto-dpif treats an output to OFPP_NONE as a NOOP, but ofputil treated it as an error. The former behavior seems more natural. Reported-by: Teemu Koponen Signed-off-by: Ethan Jackson --- lib/ofp-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 48be7749..bd078c70 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -3309,6 +3309,7 @@ ofputil_check_output_port(uint16_t port, int max_ports) case OFPP_FLOOD: case OFPP_ALL: case OFPP_CONTROLLER: + case OFPP_NONE: case OFPP_LOCAL: return 0; -- 2.30.2