Merge remote-tracking branch 'origin/topic/awelzel/pcap-reading-configurable-buffer'

* origin/topic/awelzel/pcap-reading-configurable-buffer:
  iosource/pcap: Support configurable buffer size
  util/setvbuf: Respect buf argument
This commit is contained in:
Arne Welzel 2023-10-11 15:20:17 +02:00
commit 94a8cf2a09
10 changed files with 64 additions and 3 deletions

View file

@ -5286,6 +5286,11 @@ export {
## interfaces.
const bufsize = 128 &redef;
## Number of bytes to use for buffering file read operations when reading
## from a PCAP file. Setting this to 0 uses operating system defaults
## as chosen by fopen().
const bufsize_offline_bytes = 128 * 1024 &redef;
## Default timeout for packet sources without file descriptors.
##
## For libpcap based packet sources that do not provide a usable