ovs-ofctl: Fix "cookie mask" issue in diff-flows command.
authorJustin Pettit <jpettit@nicira.com>
Sat, 31 Dec 2011 01:56:08 +0000 (17:56 -0800)
committerJustin Pettit <jpettit@nicira.com>
Sat, 31 Dec 2011 02:03:32 +0000 (18:03 -0800)
commitecc798abbcc349617d689b189b3429619dccfc4b
treec42aeaafcd984739e169e8b0ca78850145675fbf
parente729e7935e5c77eae1ca4a8040d05626f61cf9a2
ovs-ofctl: Fix "cookie mask" issue in diff-flows command.

Commit e729e79 (Add ability to restrict flow mods and flow stats
requests to cookies.) introduced a cookie_mask field to the
ofputil_flow_stats_request struct that allowed restricting the flows to
a particular cookie pattern.  The diff-flows command uses the
read_flows_from_switch() function, which did not properly initialize
this field, which would cause it to miss flows.  This commit sets the
value to zero, which allows any cookie.

Bug #8984

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Reported-by: Luca Giraudo <lgiraudo@nicira.com>
utilities/ovs-ofctl.c