History log of /freebsd-current/contrib/libpcap/pcap-bpf.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 6f9cba8f 31-Mar-2023 Joseph Mingrone <jrm@FreeBSD.org>

libpcap: Update to 1.10.3

Local changes:

- In contrib/libpcap/pcap/bpf.h, do not include pcap/dlt.h. Our system
net/dlt.h is pulled in from net/bpf.h.
- sys/net/dlt.h: Incorporate changes from libpcap 1.10.3.
- lib/libpcap/Makefile: Update for libpcap 1.10.3.

Changelog: https://git.tcpdump.org/libpcap/blob/95691ebe7564afa3faa5c6ba0dbd17e351be455a:/CHANGES
Reviewed by: emaste
Obtained from: https://www.tcpdump.org/release/libpcap-1.10.3.tar.gz
Sponsored by: The FreeBSD Foundation


# 57e22627 21-Dec-2019 Cy Schubert <cy@FreeBSD.org>

MFV r353141 (by phillip):

Update libpcap from 1.9.0 to 1.9.1.

MFC after: 2 weeks


# b00ab754 28-May-2018 Hans Petter Selasky <hselasky@FreeBSD.org>

MFV r333789: libpcap 1.9.0 (pre-release)

MFC after: 1 month
Sponsored by: Mellanox Technologies


# ada6f083 13-Feb-2017 Xin LI <delphij@FreeBSD.org>

MFV r313676: libpcap 1.8.1

MFC after: 1 month


# 9c46493e 03-Aug-2016 Jung-uk Kim <jkim@FreeBSD.org>

Fix a style(9) bug.

# a4d10fa9 03-Aug-2016 Jung-uk Kim <jkim@FreeBSD.org>

Support nanosecond time stamps for pcap_dispatch(3) and pcap_loop(3).

# 681ed54c 06-Jan-2015 Xin LI <delphij@FreeBSD.org>

MFV r276759: libpcap 1.6.2.

MFC after: 1 month


# edc89b24 30-May-2013 Xin LI <delphij@FreeBSD.org>

MFV: libpcap 1.4.0.

MFC after: 4 weeks


# 15752fa8 05-Oct-2012 Xin LI <delphij@FreeBSD.org>

MFV: libpcap 1.3.0.

MFC after: 4 weeks


# d1e87331 13-May-2012 Xin LI <delphij@FreeBSD.org>

Merge from vendor branch: update libpcap to 1.2.1.

MFC after: 2 weeks


# e375b204 03-Jun-2011 Christian S.J. Peron <csjp@FreeBSD.org>

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

# a0ee43a1 29-Oct-2010 Rui Paulo <rpaulo@FreeBSD.org>

Merge libpcap-1.1.1.


# b2e0e80d 21-Mar-2009 Rui Paulo <rpaulo@FreeBSD.org>

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

# 2676a4af 21-Mar-2009 Rui Paulo <rpaulo@FreeBSD.org>

Finish merge of zerocopy bpf.

# a8e07101 21-Mar-2009 Rui Paulo <rpaulo@FreeBSD.org>

Merge libpcap 1.0.0.


# 3430dc7c 20-Mar-2009 Rui Paulo <rpaulo@FreeBSD.org>

Flatten vendor/libpcap and remove keyword expansion.

# 154bbe41 16-Sep-2008 Christian S.J. Peron <csjp@FreeBSD.org>

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

# 5357e0fe 15-Oct-2007 Max Laier <mlaier@FreeBSD.org>

Resolve merge conflicts

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

# ef96d74f 15-Oct-2007 Max Laier <mlaier@FreeBSD.org>

Import of libpcap v0.9.8

# 560a54e1 26-Feb-2007 Jung-uk Kim <jkim@FreeBSD.org>

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

# 34c97c7d 04-Sep-2006 Sam Leffler <sam@FreeBSD.org>

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

# 5d18909f 04-Sep-2006 Sam Leffler <sam@FreeBSD.org>

Import of libpcap v0.9.4

# 04679efc 16-Jan-2006 Sam Leffler <sam@FreeBSD.org>

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

MFC after: 3 days

# ee2dd488 10-Jul-2005 Sam Leffler <sam@FreeBSD.org>

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

Approved by: re (scottl)

# 04fb2745 29-May-2005 Sam Leffler <sam@FreeBSD.org>

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

# feb4ecdb 31-Mar-2004 Bruce M Simpson <bms@FreeBSD.org>

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

# 09f33d61 25-Jan-2003 Bill Fenner <fenner@FreeBSD.org>

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

# 0a94d38f 20-Jun-2002 Bill Fenner <fenner@FreeBSD.org>

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

# dc2c7305 02-Apr-2001 Bill Fenner <fenner@FreeBSD.org>

Virgin import of tcpdump.org libpcap v0.6.2

# 8751327c 29-Jan-2000 Bill Fenner <fenner@FreeBSD.org>

Virgin import of tcpdump.org libpcap v0.5

# a4b5b39f 15-Sep-1998 Bill Fenner <fenner@FreeBSD.org>

Virgin import of LBL libpcap v0.4

# 3052b236 26-May-1997 Bill Fenner <fenner@FreeBSD.org>

Virgin import of libpcap 0.3

# 8cf6c252 19-Aug-1996 Paul Traina <pst@FreeBSD.org>

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

# 9c46493e 03-Aug-2016 Jung-uk Kim <jkim@FreeBSD.org>

Fix a style(9) bug.


# a4d10fa9 03-Aug-2016 Jung-uk Kim <jkim@FreeBSD.org>

Support nanosecond time stamps for pcap_dispatch(3) and pcap_loop(3).


# e375b204 03-Jun-2011 Christian S.J. Peron <csjp@FreeBSD.org>

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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# b2e0e80d 21-Mar-2009 Rui Paulo <rpaulo@FreeBSD.org>

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


# 2676a4af 21-Mar-2009 Rui Paulo <rpaulo@FreeBSD.org>

Finish merge of zerocopy bpf.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 154bbe41 16-Sep-2008 Christian S.J. Peron <csjp@FreeBSD.org>

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


# 5357e0fe 15-Oct-2007 Max Laier <mlaier@FreeBSD.org>

Resolve merge conflicts

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


# ef96d74f 15-Oct-2007 Max Laier <mlaier@FreeBSD.org>

Import of libpcap v0.9.8


# 560a54e1 26-Feb-2007 Jung-uk Kim <jkim@FreeBSD.org>

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


# 34c97c7d 04-Sep-2006 Sam Leffler <sam@FreeBSD.org>

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


# 5d18909f 04-Sep-2006 Sam Leffler <sam@FreeBSD.org>

Import of libpcap v0.9.4


# 04679efc 16-Jan-2006 Sam Leffler <sam@FreeBSD.org>

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

MFC after: 3 days


# ee2dd488 10-Jul-2005 Sam Leffler <sam@FreeBSD.org>

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

Approved by: re (scottl)


# 04fb2745 29-May-2005 Sam Leffler <sam@FreeBSD.org>

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


# feb4ecdb 31-Mar-2004 Bruce M Simpson <bms@FreeBSD.org>

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


# 09f33d61 25-Jan-2003 Bill Fenner <fenner@FreeBSD.org>

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


# 0a94d38f 20-Jun-2002 Bill Fenner <fenner@FreeBSD.org>

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


# dc2c7305 02-Apr-2001 Bill Fenner <fenner@FreeBSD.org>

Virgin import of tcpdump.org libpcap v0.6.2


# 8751327c 29-Jan-2000 Bill Fenner <fenner@FreeBSD.org>

Virgin import of tcpdump.org libpcap v0.5


# a4b5b39f 15-Sep-1998 Bill Fenner <fenner@FreeBSD.org>

Virgin import of LBL libpcap v0.4


# 3052b236 26-May-1997 Bill Fenner <fenner@FreeBSD.org>

Virgin import of libpcap 0.3


# 8cf6c252 19-Aug-1996 Paul Traina <pst@FreeBSD.org>

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