summaryrefslogtreecommitdiff
path: root/pcap_io.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-04-22 19:26:11 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-04-22 21:58:21 +0200
commit56d79391b748563cc5075b9d31fe199db8a2d093 (patch)
tree9718b110636556ac844637009e71606e61182eec /pcap_io.h
parentc69c838def37d46008e85fdc2f817fc9fd70c4d5 (diff)
netsniff-ng: Don't set IO prio when reading pcap file
It allows to read pcap file for users who have no permissions to set process IO prio. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Acked-by: Daniel Borkmann <borkmann@iogearbox.net> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'pcap_io.h')
-rw-r--r--pcap_io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap_io.h b/pcap_io.h
index c3fc951..35faa51 100644
--- a/pcap_io.h
+++ b/pcap_io.h
@@ -122,7 +122,7 @@ enum pcap_mode {
};
struct pcap_file_ops {
- void (*init_once_pcap)(void);
+ void (*init_once_pcap)(bool enforce_prio);
int (*pull_fhdr_pcap)(int fd, uint32_t *magic, uint32_t *linktype);
int (*push_fhdr_pcap)(int fd, uint32_t magic, uint32_t linktype);
int (*prepare_access_pcap)(int fd, enum pcap_mode mode, bool jumbo);