cvs commit: src/contrib/libpcap pcap-bpf.c pcap-int.h pcap.c

Christian S.J. Peron csjp at FreeBSD.org
Tue Sep 16 20:32:44 UTC 2008


csjp        2008-09-16 20:32:29 UTC

  FreeBSD src repository

  Modified files:
    contrib/libpcap      pcap-bpf.c pcap-int.h pcap.c 
  Log:
  SVN rev 183102 on 2008-09-16 20:32:29Z by csjp
  
  Implement zero-copy bpf(4) buffer or "zbuf" support for libpcap.  A slightly
  different version has been committed upstream in the libpcap vendor branch.
  This will allow people to experiment with zero-copy bpf(4) without requiring
  external patches.
  
  Note to enable this functionality:
  
      sysctl net.bpf.zerocopy_enable=1
  
  By default, libpcap will use the legacy buffering method unless this sysctl
  variable is set to 1.
  
  For the details about zero-copy bpf(4) implementation see svn change r177548.
  
  Requested by:           many
  Discussed with:         sam
  In collaboration with:  rwatson
  
  Revision  Changes    Path
  1.5       +310 -36   src/contrib/libpcap/pcap-bpf.c
  1.14      +25 -1     src/contrib/libpcap/pcap-int.h
  1.2       +766 -24   src/contrib/libpcap/pcap.c


More information about the cvs-src mailing list