summaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-09-09 16:38:17 -0400
committerDamjan Marion <dmarion@me.com>2019-09-10 14:51:02 +0000
commitb97641c79f4aaf0069268c550f263167ddea2b34 (patch)
tree26c8401461d0f99aab3895a03f32844b16fa6d35 /src/vnet/interface.h
parent61a89f2b614184eeced3f67affed959897d4da18 (diff)
misc: clean up "pcap [rx|tx] trace" debug CLI
Separate debug CLI arg parsing from the underlying action function. Fixes a number of subtle ordering dependencies, and will allow us to add a binary API to control the feature at some point in the future. Type: refactor Ticket: VPP-1770 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: Id0dbeda06dad20e756c941c691e2088ce3c50ec7
Diffstat (limited to 'src/vnet/interface.h')
-rw-r--r--src/vnet/interface.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vnet/interface.h b/src/vnet/interface.h
index e6418f9c273..42aada453c1 100644
--- a/src/vnet/interface.h
+++ b/src/vnet/interface.h
@@ -893,6 +893,18 @@ void vnet_register_format_buffer_opaque_helper
void vnet_register_format_buffer_opaque2_helper
(vnet_buffer_opquae_formatter_t fn);
+typedef struct
+{
+ u8 *filename;
+ int enable;
+ int status;
+ u32 packets_to_capture;
+ vlib_rx_or_tx_t rxtx;
+ u32 sw_if_index;
+} vnet_pcap_dispatch_trace_args_t;
+
+int vnet_pcap_dispatch_trace_configure (vnet_pcap_dispatch_trace_args_t *);
+
#endif /* included_vnet_interface_h */
/*