diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:11:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:11:12 +0000 |
commit | b72837827d9290c7ec50b9e4b9e1a0f194ddccca (patch) | |
tree | 8df663325413d0f92086d740638555de6b779df7 /src/input/fpcap.lua | |
parent | Adding upstream version 1.1.0+debian. (diff) | |
download | dnsjit-b72837827d9290c7ec50b9e4b9e1a0f194ddccca.tar.xz dnsjit-b72837827d9290c7ec50b9e4b9e1a0f194ddccca.zip |
Adding upstream version 1.2.1.upstream/1.2.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/input/fpcap.lua')
-rw-r--r-- | src/input/fpcap.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input/fpcap.lua b/src/input/fpcap.lua index 2fc2906..b50fc11 100644 --- a/src/input/fpcap.lua +++ b/src/input/fpcap.lua @@ -100,6 +100,15 @@ function Fpcap:produce() return C.input_fpcap_producer(self.obj), self.obj end +-- Use +-- .B posix_fadvise() +-- to indicate sequential reading (if supported), may increase performance. +-- MUST be called before +-- .BR open() . +function Fpcap:fadvise_sequential() + self.obj.use_fadvise = 1 +end + -- Open a PCAP file for processing and read the PCAP header. -- Returns 0 on success. function Fpcap:open(file) |