summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/pcap_funcs.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-08-29 18:01:30 -0400
committerFlorin Coras <florin.coras@gmail.com>2019-09-09 15:16:03 +0000
commit4c19bfd93f1daaff181fd072ca24acce5b000705 (patch)
tree3cc92f80784eaab76181dabcbd5d2c4c5d13338b /src/vppinfra/pcap_funcs.h
parent30d28bdfd8aca4d6d3c70482ad9ebfdb753610aa (diff)
vlib: clean up the "pcap dispatch 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-1762 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I1240fe3f61a0acf5ee9faed60d6ad3386e72e569 (cherry picked from commit e5948fb49a6eeaf437323cc1043a350cd33bcd47)
Diffstat (limited to 'src/vppinfra/pcap_funcs.h')
-rw-r--r--src/vppinfra/pcap_funcs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vppinfra/pcap_funcs.h b/src/vppinfra/pcap_funcs.h
index 364f4be2333..a3a3072f955 100644
--- a/src/vppinfra/pcap_funcs.h
+++ b/src/vppinfra/pcap_funcs.h
@@ -22,6 +22,9 @@ clib_error_t *pcap_write (pcap_main_t * pm);
/** Read data from file. */
clib_error_t *pcap_read (pcap_main_t * pm);
+/** Close the file created by pcap_write function. */
+clib_error_t *pcap_close (pcap_main_t * pm);
+
/**
* @brief Add packet
*