From: Simon Horman Date: Thu, 9 Aug 2012 08:49:24 +0000 (+0900) Subject: ofp-util: Allow encoding of Open Flow 1.2 Port Mod Messages X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe7c919b20da62734292b74618a84d5a35a5aa4;p=openvswitch ofp-util: Allow encoding of Open Flow 1.2 Port Mod Messages Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- diff --git a/lib/ofp-util.c b/lib/ofp-util.c index e8ba0b06..14f1c0d6 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -2846,7 +2846,8 @@ ofputil_encode_port_mod(const struct ofputil_port_mod *pm, break; } - case OFP11_VERSION: { + case OFP11_VERSION: + case OFP12_VERSION: { struct ofp11_port_mod *opm; b = ofpraw_alloc(OFPRAW_OFPT11_PORT_MOD, ofp_version, 0); @@ -2859,7 +2860,6 @@ ofputil_encode_port_mod(const struct ofputil_port_mod *pm, break; } - case OFP12_VERSION: default: NOT_REACHED(); }