[ovs-git] [openvswitch/ovs] 70bd4e: ofp-parse: Fix match parsing with [x..y]=z format.
GitHub
noreply at github.com
Mon Apr 17 18:42:32 UTC 2017
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 70bd4e6d9ae62ba4ad0e32132a4e5fd3dc57d359
https://github.com/openvswitch/ovs/commit/70bd4e6d9ae62ba4ad0e32132a4e5fd3dc57d359
Author: Jarno Rajahalme <jarno at ovn.org>
Date: 2017-04-17 (Mon, 17 Apr 2017)
Changed paths:
M lib/ofp-parse.c
M tests/ovs-ofctl.at
Log Message:
-----------
ofp-parse: Fix match parsing with [x..y]=z format.
Commit 21b2fa617126 ("ofp-parse: Allow match field names in actions
and brackets in matches.") added support for matching a consecutive
set of bits with the [x..y]=z format, but the copying of the parsed
value ('z') to the match was done from a wrong offset, so that the
actual value matched would be incorrect.
Fix this and add a test case preventing regression in future.
Fixes: 21b2fa617126 ("ofp-parse: Allow match field names in actions and brackets in matches.")
Signed-off-by: Jarno Rajahalme <jarno at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>
More information about the git
mailing list