ofp-util: Flow Dump Protocol for OpenFlow 12
authorSimon Horman <horms@verge.net.au>
Tue, 20 Nov 2012 01:50:39 +0000 (10:50 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 20 Nov 2012 04:40:32 +0000 (20:40 -0800)
Allow only OpenFlow 12 as a flow dump protocol.

The implementation of set_protocol_for_flow_dump ensures that
this will only be selected if an OpenFlow12 connection has
been negotiated.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-util.c

index 1a9d6110ee3e203166a6e59eb6fa7c8069d9d9e6..e335ff8608e70b7534c65001816bd64b5b541188 100644 (file)
@@ -588,6 +588,7 @@ static const struct proto_abbrev proto_abbrevs[] = {
 #define N_PROTO_ABBREVS ARRAY_SIZE(proto_abbrevs)
 
 enum ofputil_protocol ofputil_flow_dump_protocols[] = {
+    OFPUTIL_P_OF12_OXM,
     OFPUTIL_P_OF10_NXM,
     OFPUTIL_P_OF10_STD,
 };