diff options
author | Anders Broman <anders.broman@ericsson.com> | 2019-01-03 15:51:56 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-03-10 12:34:55 +0000 |
commit | a55111610a296f69b9e066c59a9f3bc16f1f542a (patch) | |
tree | 982b9260e8663e861c85bb81e30bfe1ee9b823d5 /wsutil/file_util.h | |
parent | 101fed9420eeeefd8a2033d67a466c7c4c2231f8 (diff) |
Dumpcap: Set a bigger IO buffer (64KiB).
Set a bigger IO buffer to avoid syscall overhead.
See https://github.com/the-tcpdump-group/libpcap/issues/792
Change-Id: If370da5ab2b70a9d0c925dd7c4c5c135c675c3f6
Reviewed-on: https://code.wireshark.org/review/31326
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil/file_util.h')
-rw-r--r-- | wsutil/file_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wsutil/file_util.h b/wsutil/file_util.h index 435bacd0f3..565b9d46e3 100644 --- a/wsutil/file_util.h +++ b/wsutil/file_util.h @@ -36,6 +36,9 @@ extern "C" { #include <sys/stat.h> /* for stat() and struct stat */ +/* We set a larger IO Buffer size for the capture files */ +#define IO_BUF_SIZE (64 * 1024) + /* * Visual C++ on Win32 systems doesn't define these. (Old UNIX systems don't * define them either.) |