diff options
Diffstat (limited to '')
-rw-r--r-- | src/output/pcap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/output/pcap.c b/src/output/pcap.c index 2b2aaa8..ede9881 100644 --- a/src/output/pcap.c +++ b/src/output/pcap.c @@ -82,6 +82,15 @@ void output_pcap_close(output_pcap_t* self) } } +int output_pcap_have_errors(output_pcap_t* self) +{ + mlassert_self(); + if (self->dumper) { + return ferror(pcap_dump_file(self->dumper)); + } + return 0; +} + static void _receive(output_pcap_t* self, const core_object_t* obj) { struct pcap_pkthdr hdr; |