vonn: Allow snoops to use the OpenFlow version of the controller connection
authorSimon Horman <horms@verge.net.au>
Wed, 7 Nov 2012 08:03:01 +0000 (17:03 +0900)
committerBen Pfaff <blp@nicira.com>
Mon, 12 Nov 2012 17:34:16 +0000 (09:34 -0800)
commite182670b0262e58a982a659dc5248aa5874264e2
tree16a023b65dcbc0385d5386d1fea30152fb77cca9
parent6042457bd537a2b5140e17e4abceacbaafff6b57
vonn: Allow snoops to use the OpenFlow version of the controller connection

Override the allowed versions of the snoop vconn so that
only the version of the controller connection is allowed.
This is because the snoop will see the same messages as the
controller.

Without this change the snoop will try to negotiate a connection
using the default allowed versions, or in other words only
allow OpenFlow 1.0. This breaks snoops for controller connections
using other OpenFlow versions, that is OpenFlow 1.2.

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