test-classifier: Use `in_port.ofp_port`, instead of `in_port`.
authorWilliam Tu <u9012063@gmail.com>
Fri, 11 Dec 2015 01:58:13 +0000 (17:58 -0800)
committerBen Pfaff <blp@ovn.org>
Wed, 23 Dec 2015 07:05:44 +0000 (23:05 -0800)
commitefe2037e15bba110286e6e6edeb163730d069d84
tree9eb6f51b489e98e345de130e5c6b3738b4b1ca9b
parent06f41fc4846f29ad46ab4e730a21dc9f2f5315d1
test-classifier: Use `in_port.ofp_port`, instead of `in_port`.

The test uses 16-bit ofp_port_t, however the struct flow member
`in_port` is 32-bit, causing a memcpy to read uninitialized data.
We should restrict the test to the `ofp_port` member of the `in_port`
union

Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Co-authored-by: Daniele Di Proietto <diproiettod@vmware.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
tests/test-classifier.c