diff options
author | Simon Horman <horms@verge.net.au> | 2012-07-30 11:02:59 +0900 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-07-30 21:32:19 -0700 |
commit | 2e3fa633aad59f9687e2b6e3aad3b0a308aa89fc (patch) | |
tree | 505f2bd4cfa8346848cc3464ac89c472d032897e /lib/vconn-provider.h | |
parent | aa319503aa099030d4e4796710b0ebace8907f2b (diff) |
openflow: Add enum ofp_version
Use an enum for ofp_version in ofp-util and ofp-msg.
This in conjunction with the use of switch() statements
allows the compiler to warn when a new ofp_version isn't handled.
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/vconn-provider.h')
-rw-r--r-- | lib/vconn-provider.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/vconn-provider.h b/lib/vconn-provider.h index 29408524..54ec2e6b 100644 --- a/lib/vconn-provider.h +++ b/lib/vconn-provider.h @@ -22,6 +22,7 @@ #include <assert.h> #include "vconn.h" +#include "openflow/openflow-common.h" /* Active virtual connection to an OpenFlow device. */ @@ -32,8 +33,8 @@ struct vconn { struct vconn_class *class; int state; int error; - int min_version; - int version; + enum ofp_version min_version; + enum ofp_version version; ovs_be32 remote_ip; ovs_be16 remote_port; ovs_be32 local_ip; |