svn commit: r314560 - stable/10/contrib/tcpdump

Ed Maste emaste at FreeBSD.org
Thu Mar 2 17:17:07 UTC 2017


Author: emaste
Date: Thu Mar  2 17:17:06 2017
New Revision: 314560
URL: https://svnweb.freebsd.org/changeset/base/314560

Log:
  MFC r309649 (oshogbo): tcpdump: allow to use BIOCROTZBUF in capability mode
  
  The libpcap library can use a BIOCROTZBUF ioctl when net.bpf.zerocopy_enable
  sysctl is set.
  
  PR:		217490

Modified:
  stable/10/contrib/tcpdump/tcpdump.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/tcpdump/tcpdump.c
==============================================================================
--- stable/10/contrib/tcpdump/tcpdump.c	Thu Mar  2 17:09:14 2017	(r314559)
+++ stable/10/contrib/tcpdump/tcpdump.c	Thu Mar  2 17:17:06 2017	(r314560)
@@ -1554,7 +1554,7 @@ main(int argc, char **argv)
 		error("%s", pcap_geterr(pd));
 #ifdef __FreeBSD__
 	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


More information about the svn-src-stable-10 mailing list