summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap
Commit message (Collapse)AuthorAgeFilesLines
* Implement zero-copy bpf(4) buffer or "zbuf" support for libpcap. A slightlycsjp2008-09-163-37/+354
| | | | | | | | | | | | | | | | | | | 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
* Revert back to including the whole net/bpf.h again.mlaier2007-10-201-3/+1
| | | | | Requested by: sam, nork X-MFC after: now
* Resolve merge conflictsmlaier2007-10-1612-893/+965
| | | | | Approved by: re (kensmith) Obtained from: tcpdump.org
* This commit was generated by cvs2svn to compensate for changes in r172677,mlaier2007-10-1624-3037/+4903
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import of libpcap v0.9.8mlaier2007-10-1634-3478/+5892
| |
* | Add three new ioctl(2) commands for bpf(4).jkim2007-02-261-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | sigh, put back buffer overflow fix of 1.1.11 that seems to havesam2006-09-041-1/+3
| | | | | | | | | | 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
* | update instructionssam2006-09-041-13/+12
| |
* | resolve merge conflictssam2006-09-047-85/+262
| | | | | | | | MFC after: 1 month
* | This commit was generated by cvs2svn to compensate for changes in r162012,sam2006-09-0422-293/+3983
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of libpcap v0.9.4sam2006-09-0429-381/+4246
| |
* | This commit was generated by cvs2svn to compensate for changes in r154439,sam2006-01-161-1/+1
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * correct dlt buffer alloc; this goes on the vendor branch as itsam2006-01-161-1/+1
| | | | | | | | | | | | will be committed there shortly MFC after: 3 days
* | resolve merge conflictssam2005-07-1110-544/+1556
| | | | | | | | Approved by: re (scottl)
* | This commit was generated by cvs2svn to compensate for changes in r147894,sam2005-07-1128-282/+1239
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of libpcap v0.9.1 (release) from tcpdump.orgsam2005-07-1138-730/+2803
| | | | | | | | Approved by: re (scottl)
* | resolve merge conflictssam2005-05-2910-895/+600
| | | | | | | | Reviewed by: bms (earlier version)
* | This commit was generated by cvs2svn to compensate for changes in r146768,sam2005-05-2943-1058/+6642
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of libpcap v0.9.1 (alpha 096) from tcpdump.orgsam2005-05-2953-1344/+7271
| |
* | pcap clients should use strlcpy() from the base system libc by default also.bms2004-03-311-7/+0
| |
* | snprintf() and vsnprintf() are part of our base system libc, thereforebms2004-03-311-10/+0
| | | | | | | | | | | | | | | | | | pcap should not fall back to its own implementations in the absence of HAVE_SNPRINTF and HAVE_VSNPRINTF defines when compiled and installed as part of the world. This should fix builds of pflogd and packages depending on the base system libpcap. Reported by: Andrzej Tobola
* | Correct imported pcap.h for FreeBSD builds.bms2004-03-311-7/+1
| |
* | Merge of libpcap 0.8.3 from tcpdump.org.bms2004-03-3111-918/+2781
| |
* | This commit was generated by cvs2svn to compensate for changes in r127664,bms2004-03-3154-3070/+13564
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import libpcap 0.8.3, from http://www.tcpdump.org/releases/libpcap-0.8.3.tar.gzbms2004-03-3164-3499/+16463
| |
* | Remove a reference to part of the pcap API not yet merged.green2003-11-041-10/+0
| |
* | * Modify libpcap to work a bit better with our 802.11 code. This meansgreen2003-11-042-10/+55
| | | | | | | | | | | | | | | | | | | | | | | | tcpdump -y ieee802_11 will work in the basic senses, including the code compilation for filters (where you may specify "link[]" to refer to parts of the 802.11 header, as well as treat it like a normal Ethernet header). Previously, it was just too far off to do anything useful for us. * While I'm here, fix some compile problems that will result from lex and yacc namespace polution when linking with -lpcap. The namespace is now "pcapyy*" instead of "yy*", and it tests fine with world and some external applications that may or may not use "yy*".
* | Merge multi-DLT support.fenner2003-01-264-0/+41
| |
* | This commit was generated by cvs2svn to compensate for changes in r109839,fenner2003-01-263-1/+72
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Commit tcpdump.org's multi-DLT support to vendor branch.fenner2003-01-267-1/+113
| |
* | Merge libpcap 0.7.1fenner2002-06-219-106/+1270
| | | | | | | | MFC after: 2 weeks
* | This commit was generated by cvs2svn to compensate for changes in r98530,fenner2002-06-2132-840/+3224
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import libpcap 0.7.1, fromfenner2002-06-2142-949/+4511
| | | | | | | | http://www.tcpdump.org/release/libpcap-0.7.1.tar.gz
* | Correct email address for bug reports and patch submissions.obrien2002-02-081-1/+3
| | | | | | | | Submitted by: Marco Molteni <molter@tin.it>
* | Merge libpcap 0.6.2fenner2001-04-0311-277/+982
| |
* | This commit was generated by cvs2svn to compensate for changes in r75107,fenner2001-04-0339-1046/+5096
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of tcpdump.org libpcap v0.6.2fenner2001-04-0351-1317/+6213
| |
* | When pcap_compile() detects an error, it longjmp()'s out of thearchie2001-01-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | scanner/parser. FreeBSD recently made 'flex' its default implementation of 'lex'. One of the incompatibilities of 'flex' vs. 'lex' is that if you longjmp() out of the scanner, you must call yyrestart() before doing another scan (as documented in flex(1)). So add an invocation to yyrestart() in lex_init(). This change should be backwards compatible with the original 'lex'. PR: bin/24116
* | This commit was generated by cvs2svn to compensate for changes in r63696,fenner2000-07-201-2/+3
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import rev 1.26 of tcpdump.org's inet.c -- don't freefenner2000-07-201-2/+3
| | | | | | | | the buffer before it's used.
| * Import of updated file for 0.5 releasefenner2000-03-041-5/+15
| |
* | Fix make world breakage.archie2000-07-191-1/+1
| | | | | | | | Broken by: me
* | Merge updated file for 0.5 release: handle "ip host foo" andfenner2000-03-041-4/+14
| | | | | | | | | | | | | | "ip6 host foo" when foo has both IP and IP6 addresses. PR: bin/17083 Approved by: jkh
* | Merge libpcap 0.5fenner2000-01-3010-53/+1153
| |
* | This commit was generated by cvs2svn to compensate for changes in r56889,fenner2000-01-3032-179/+506
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of tcpdump.org libpcap v0.5fenner2000-01-3042-210/+1629
| |
* | Merge libpcap version 0.4fenner1998-09-155-28/+95
| | | | | | | | PR: bin/7877
* | This commit was generated by cvs2svn to compensate for changes in r39291,fenner1998-09-1519-245/+737
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of LBL libpcap v0.4fenner1998-09-1525-379/+1140
| |
* | None of the header files for the packet capture libraryphk1998-08-073-0/+30
| | | | | | | | | | | | | | | | are suitable to include in a C++ file. PR: 7229 Reviewed by: phk Submitted by: Craig Spannring <cts@internetcds.com>
OpenPOWER on IntegriCloud