diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:11:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:11:16 +0000 |
commit | a68848db159cc1cafa82f9d383432fda459c8745 (patch) | |
tree | 5fd1cd2cd6f298bebbbb0ce5db29fa6de68a2acc /src/input/fpcap.lua | |
parent | Adding debian version 1.1.0+debian-1. (diff) | |
download | dnsjit-a68848db159cc1cafa82f9d383432fda459c8745.tar.xz dnsjit-a68848db159cc1cafa82f9d383432fda459c8745.zip |
Merging upstream version 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) |