openflow: Add enum ofp_version
authorSimon Horman <horms@verge.net.au>
Mon, 30 Jul 2012 02:02:59 +0000 (11:02 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 31 Jul 2012 04:32:19 +0000 (21:32 -0700)
commit2e3fa633aad59f9687e2b6e3aad3b0a308aa89fc
tree505f2bd4cfa8346848cc3464ac89c472d032897e
parentaa319503aa099030d4e4796710b0ebace8907f2b
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>
include/openflow/openflow-common.h
lib/ofp-msgs.c
lib/ofp-util.c
lib/ofp-util.h
lib/vconn-provider.h
lib/vconn.c
lib/vconn.h
ofproto/ofproto.c