tcpdump: allow to use BIOCROTZBUF in capability mode
The libpcap library can use a BIOCROTZBUF ioctl when net.bpf.zerocopy_enable sysctl is set. Reported by: olivier@ Tested by: olivier@
This commit is contained in:
parent
224897e572
commit
6456e0dd61
@ -1919,7 +1919,7 @@ main(int argc, char **argv)
|
||||
error("%s", pcap_geterr(pd));
|
||||
#ifdef HAVE_CASPER
|
||||
if (RFileName == NULL && VFileName == NULL) {
|
||||
static const unsigned long cmds[] = { BIOCGSTATS };
|
||||
static const unsigned long cmds[] = { BIOCGSTATS, BIOCROTZBUF };
|
||||
|
||||
/*
|
||||
* The various libpcap devices use a combination of
|
||||
|
Loading…
Reference in New Issue
Block a user