diff options
author | Dave Barach <dave@barachs.net> | 2020-06-10 17:07:32 -0400 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-06-16 11:50:17 +0000 |
commit | 4330c46abb78882fc453b1b682ac4f12a22b5e68 (patch) | |
tree | 408fee677cb70bb723001c60c6b14b53e12fd775 /src/vnet/interface_cli.c | |
parent | cf9bb22a9483b97b00b7dcacc35b37ae0fcaefbe (diff) |
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
Diffstat (limited to 'src/vnet/interface_cli.c')
-rw-r--r-- | src/vnet/interface_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/interface_cli.c b/src/vnet/interface_cli.c index 2e5714c3c0f..569e2eb6c54 100644 --- a/src/vnet/interface_cli.c +++ b/src/vnet/interface_cli.c @@ -2046,7 +2046,7 @@ pcap_trace_command_fn (vlib_main_t * vm, int drop_enable = 0; int status = 0; int filter = 0; - u32 sw_if_index = ~0; + u32 sw_if_index = 0; /* default: any interface */ /* Get a line of input. */ if (!unformat_user (input, unformat_line_input, line_input)) |