History log of /freebsd-10.1-release/contrib/libpcap/pcap-bpf.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 251129 30-May-2013 delphij

MFV: libpcap 1.4.0.

MFC after: 4 weeks


# 241231 05-Oct-2012 delphij

MFV: libpcap 1.3.0.

MFC after: 4 weeks


# 235426 14-May-2012 delphij

Merge from vendor branch: update libpcap to 1.2.1.

MFC after: 2 weeks


# 222654 03-Jun-2011 csjp

Explicitly initialize the packet buffer to NULL after we unmap the zero copy
buffers. This fixes a segfault on exit due to calling free on a bogus pointer.
This should be considered a temporary stop gap fix to avoid the crash. The
complete fix re-shuffles the initializations of some of the clean-up pointers.

The details of the fix can be found in the libpcap git repository:
commit bc8209b71e928870b0f172d43b174ab27ba24394

Proded by: kevlo, rpaulo
MFC after: 2 weeks
Submitted by: Anton Yuzhaninov


# 214518 29-Oct-2010 rpaulo

Merge libpcap-1.1.1.


# 190230 21-Mar-2009 rpaulo

Remove remaining references to BIOCSETBUFMODE ifdefs. We now have
another ifdef for zerocopy bpf.


# 190229 21-Mar-2009 rpaulo

Finish merge of zerocopy bpf.


# 190225 21-Mar-2009 rpaulo

Merge libpcap 1.0.0.


# 183102 16-Sep-2008 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


# 172680 16-Oct-2007 mlaier

Resolve merge conflicts

Approved by: re (kensmith)
Obtained from: tcpdump.org


# 167035 26-Feb-2007 jkim

Add three new ioctl(2) commands for bpf(4).

- BIOCGDIRECTION and BIOCSDIRECTION get or set the setting determining
whether incoming, outgoing, or all packets on the interface should be
returned by BPF. Set to BPF_D_IN to see only incoming packets on the
interface. Set to BPF_D_INOUT to see packets originating locally and
remotely on the interface. Set to BPF_D_OUT to see only outgoing
packets on the interface. This setting is initialized to BPF_D_INOUT
by default. BIOCGSEESENT and BIOCSSEESENT are obsoleted by these but
kept for backward compatibility.

- BIOCFEEDBACK sets packet feedback mode. This allows injected packets
to be fed back as input to the interface when output via the interface is
successful. When BPF_D_INOUT direction is set, injected outgoing packet
is not returned by BPF to avoid duplication. This flag is initialized to
zero by default.

Note that libpcap has been modified to support BPF_D_OUT direction for
pcap_setdirection(3) and PCAP_D_OUT direction is functional now.

Reviewed by: rwatson


# 162020 04-Sep-2006 sam

sigh, put back buffer overflow fix of 1.1.11 that seems to have
not gone into the 0.9.4 release; don't put it on the vendor branch
so we won't lose it on the next import if they continue to lose it


# 162013 04-Sep-2006 sam

This commit was generated by cvs2svn to compensate for changes in r162012,
which included commits to RCS files with non-trunk default branches.


# 162012 04-Sep-2006 sam

Import of libpcap v0.9.4


# 154439 16-Jan-2006 sam

correct dlt buffer alloc; this goes on the vendor branch as it
will be committed there shortly

MFC after: 3 days


# 147894 11-Jul-2005 sam

Virgin import of libpcap v0.9.1 (release) from tcpdump.org

Approved by: re (scottl)


# 146768 29-May-2005 sam

Virgin import of libpcap v0.9.1 (alpha 096) from tcpdump.org


# 127664 31-Mar-2004 bms

Import libpcap 0.8.3, from http://www.tcpdump.org/releases/libpcap-0.8.3.tar.gz


# 109839 25-Jan-2003 fenner

Commit tcpdump.org's multi-DLT support to vendor branch.


# 98530 20-Jun-2002 fenner

Import libpcap 0.7.1, from
http://www.tcpdump.org/release/libpcap-0.7.1.tar.gz


# 75107 03-Apr-2001 fenner

Virgin import of tcpdump.org libpcap v0.6.2


# 56889 29-Jan-2000 fenner

Virgin import of tcpdump.org libpcap v0.5


# 39291 15-Sep-1998 fenner

Virgin import of LBL libpcap v0.4


# 26175 26-May-1997 fenner

Virgin import of libpcap 0.3


# 17683 19-Aug-1996 pst

Virgin import of LBL libpcap version 0.2.1.
Obtained from: ftp://ftp.ee.lbl.gov/libpcap.tar.Z on 19-Aug-1996.