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:
Mariusz Zaborski 2016-12-06 18:58:42 +00:00
parent edc816d625
commit b02f20f47e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309649

View File

@ -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