ovs-ofctl: Bug fix in flow_format()
authorAndy Zhou <azhou@nicira.com>
Tue, 16 Jul 2013 00:25:34 +0000 (17:25 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 17 Jul 2013 21:06:50 +0000 (14:06 -0700)
commit61dafbfbdb58b1bfe51e089381c874e55f2d529a
treef6b6f091aeca262f748f0bc2c6554dcaa049752d
parentef651003a8a872e55835ba4fc5feaff2c9780b82
ovs-ofctl: Bug fix in flow_format()

Fix a corner case bug where ARP packet with ARP opcode value of 1 would cause
tp_src and tp_dst to appear in the output string.

This bug caused some output from flow_format() to not be accepted by
'ovs-appctl ofproto/trace'

Added test coverage by using ARP opcode 1 in one unit test case, that
would have exposed the bug.

Bug #18334

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/match.c
tests/ofp-print.at