ovs-ofctl: Bug fix in flow_format()
authorAndy Zhou <azhou@nicira.com>
Tue, 16 Jul 2013 00:25:34 +0000 (17:25 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 16 Jul 2013 17:30:34 +0000 (10:30 -0700)
commiteb19e5f0781cdf3caec1a0ba172fcaf32da5e481
treef3fd75ece593ff59152d2ceaedf3c3b9312d7690
parent57c94f353990e603d9e4259fcf2724491df2a068
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