ofp-util: Allow encoding of Open Flow 1.2 Port Mod Messages
authorSimon Horman <horms@verge.net.au>
Thu, 9 Aug 2012 08:49:24 +0000 (17:49 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Aug 2012 23:27:57 +0000 (16:27 -0700)
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-util.c

index e8ba0b061667b1e658fbeca5971808d940c49bb6..14f1c0d6a3a1f6900c49154ae0ce187a963ca87e 100644 (file)
@@ -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();
     }