ofp-parse: Separate fields properly.
authorJesse Gross <jesse@nicira.com>
Tue, 1 Sep 2015 01:05:44 +0000 (18:05 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 9 Sep 2015 16:43:24 +0000 (09:43 -0700)
commitbc78455bdbabd5f16abde1d0b4d63d488286f2e3
treef83b3f4a0a1d327f0c7b2728b2f975bddcd868df
parent9e3ddd45eb4b40e2e73c230e20f41e09e51e73f3
ofp-parse: Separate fields properly.

Currently, each token in an OpenFlow match field is treated separately -
whether this is a name, a value, or a single identifier. However, this
means that attempting to get a value may result in grabbing the next
token if no value exists. This avoids that problem by breaking the match
string down into its components and then individually separating it into
name/value pairs if appropriate.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ofp-parse.c