X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fopenflow%2Fopenflow-common.h;h=0bca0d26ba9cf3333c956a608fe8f40d0d98428e;hb=c2d967a562aaa57b679c302a5041d5a941154143;hp=202ba1ed69baecd1230b7549867535e7c00eea1f;hpb=aa319503aa099030d4e4796710b0ebace8907f2b;p=sliver-openvswitch.git diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 202ba1ed6..0bca0d26b 100644 --- a/include/openflow/openflow-common.h +++ b/include/openflow/openflow-common.h @@ -71,9 +71,11 @@ /* The most significant bit being set in the version field indicates an * experimental OpenFlow version. */ -#define OFP10_VERSION 0x01 -#define OFP11_VERSION 0x02 -#define OFP12_VERSION 0x03 +enum ofp_version { + OFP10_VERSION = 0x01, + OFP11_VERSION = 0x02, + OFP12_VERSION = 0x03, +}; #define OFP_MAX_TABLE_NAME_LEN 32 #define OFP_MAX_PORT_NAME_LEN 16