diff options
Diffstat (limited to 'src/common/pcap.cpp')
-rwxr-xr-x | src/common/pcap.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/pcap.cpp b/src/common/pcap.cpp index 8e9bf0ac..f5eb3c41 100755 --- a/src/common/pcap.cpp +++ b/src/common/pcap.cpp @@ -228,6 +228,12 @@ bool LibPCapWriter::Create(char * name) return init(); } +void LibPCapWriter::flush_to_disk() { + if (m_is_open) { + fflush(m_file_handler); + } +} + /** * * Write the libpcap header. |