interface: add minimal vpp pkt trace for error-drop 88/27488/2
authorDave Barach <dave@barachs.net>
Wed, 10 Jun 2020 21:07:32 +0000 (17:07 -0400)
committerDave Barach <openvpp@barachs.net>
Tue, 16 Jun 2020 11:50:17 +0000 (11:50 +0000)
commit4330c46abb78882fc453b1b682ac4f12a22b5e68
tree408fee677cb70bb723001c60c6b14b53e12fd775
parentcf9bb22a9483b97b00b7dcacc35b37ae0fcaefbe
interface: add minimal vpp pkt trace for error-drop

Provide a minimal trace [ip4/ip6 src/dst address] for dropped pkts
when the user specifies "trace add error-drop XXXX", but does not
trace pkts from the original input node.

This is a wireshark dissector problem. Packets thrown at error-drop
may be well-formed, or not. VPP must not crash, no matter what.

The minimal trace capture and decode could be enhanced. Anyone
interested in doing that must consider all of the corner-cases
involved. This version should be at least somewhat useful.

Note that "pcap trace drop ..." - and the packet generator - seem like
the right tools to use when researching more complex issues.

Type: improvement

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I961ca133980ffa2a1e5707879a443b21442ed894
src/vnet/interface_cli.c
src/vnet/interface_output.c