ofproto: As of Open Flow 1.1 switch_features has no capabilities field
authorSimon Horman <horms@verge.net.au>
Mon, 30 Jul 2012 02:03:00 +0000 (11:03 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 31 Jul 2012 04:41:45 +0000 (21:41 -0700)
commit210d8d9cc1f46d874b9d3a8dc08f8d7dee8ce41d
tree96a0efca7f9595638aceadb5eb7c528b8b9e3975
parent2e3fa633aad59f9687e2b6e3aad3b0a308aa89fc
ofproto: As of Open Flow 1.1 switch_features has no capabilities field

In Open Flow 1.0 switch_features has a capabilities field.
However, in Open Flow 1.1, 1.2 and 1.3 this field is reserved.
Thus it should not be read on decode and it seems most appropriate
to set as zero on encode.

This patch takes the approach of setting the features field to
all available features for Open Flow 1.1+. I am unsure if it would
be sufficient to just set it to zero.

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