ofp-print: Print the type of truncated messages, when available.
authorBen Pfaff <blp@nicira.com>
Wed, 23 May 2012 16:33:22 +0000 (09:33 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 20 Jul 2012 20:08:47 +0000 (13:08 -0700)
commitf25b4a812c5353325e6ef3e658f19db040d96039
tree3b9bf8875d442e176a94829b277a66ac358c1bb9
parent0d0c0bb535d0b305aabac5cc6f24e880808ff410
ofp-print: Print the type of truncated messages, when available.

The function ofputil_decode_msg_type_partial() can figure out the type of
a truncated OpenFlow message, if the message is long enough that its type
can be determined, so we should print this information.   This is
especially valuable for printing OFPT_ERROR messages, in which the inner
OpenFlow message is often truncated to 64 bytes.

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