ofp-util: New functions for converting protocols to and from versions.
authorBen Pfaff <blp@nicira.com>
Thu, 29 Nov 2012 05:41:05 +0000 (21:41 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 29 Nov 2012 16:04:43 +0000 (08:04 -0800)
commit4f13da568d49b4910cedf45e6c54c43ea318dd18
treef5c121bfb2e8594dec424adcd8ac3492ca5d87c2
parente71bff1bef0252209d01e618a33d80d59e366829
ofp-util: New functions for converting protocols to and from versions.

The values of enum ofputil_protocol have meanings that overlap with
OpenFlow version numbers.  These new functions provide ways to figure out
these overlaps.

These functions will be used for the first time in an upcoming commit.

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