aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorChristian E. Hopps <chopps@chopps.org>2019-09-27 14:35:32 -0400
committerDamjan Marion <dmarion@me.com>2019-12-17 18:40:14 +0000
commit19871f25394fa9a4bfb55006092cbcc28b446c04 (patch)
tree77b064d89d67b50c998a54a3f0e71adb0f9ecbed /src/vppinfra
parent0812aea046209dc990ec704258570f46d3fa74c8 (diff)
pg: don't leak open files in packet-generator
Fix pg code to close it's open file descriptors before zero'ing the pcap_main structure for re-use. Ticket: VPP-1780 Type: fix Signed-off-by: Christian E. Hopps <chopps@chopps.org> Change-Id: I32945c6476ae83b8d210ee67ac78db3e8f786f46
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/pcap_funcs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/pcap_funcs.h b/src/vppinfra/pcap_funcs.h
index a3a3072f955..125c3bd2517 100644
--- a/src/vppinfra/pcap_funcs.h
+++ b/src/vppinfra/pcap_funcs.h
@@ -17,6 +17,7 @@
#define included_vppinfra_pcap_funcs_h
/** Write out data to output file. */
+clib_error_t *pcap_close (pcap_main_t * pm);
clib_error_t *pcap_write (pcap_main_t * pm);
/** Read data from file. */