aboutsummaryrefslogtreecommitdiff
path: root/contrib/libpcap
Commit message (Collapse)AuthorAgeFilesLines
* MFV r276759: libpcap 1.6.2.Xin LI2015-01-06173-10257/+11302
|\ | | | | | | | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=276768
* | Add netmap support to libpcap. Tcpdump and other native pcap application can nowLuigi Rizzo2014-10-062-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | run directly on netmap ports using netmap:foo or valeXX:YY device names. Modifications to existing code are small and trivial, the netmap-specific code is all in a new file. Please be aware that in netmap mode the physical interface is disconnected from the host stack, so libpcap will steal the traffic not just make a copy. For the full version of the code (including linux and autotools support) see https://code.google.com/p/netmap-libpcap/ MFC after: 3 days Notes: svn path=/head/; revision=272659
* | Rename definition of IEEE80211_FC1_WEP to IEEE80211_FC1_PROTECTED.Kevin Lo2014-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The origin of WEP comes from IEEE Std 802.11-1997 where it defines whether the frame body of MAC frame has been encrypted using WEP algorithm or not. IEEE Std. 802.11-2007 changes WEP to Protected Frame, indicates whether the frame is protected by a cryptographic encapsulation algorithm. Reviewed by: adrian, rpaulo Notes: svn path=/head/; revision=260444
* | Integrate github revision 0446821e49224c6a29be28760cc9c4cc14f56d8a asSean Bruno2013-10-315-8/+8
| | | | | | | | | | | | | | | | | | | | | | suggested by upstream https://github.com/the-tcpdump-group/libpcap/issues/327 Quiesce assignment warnings by use of const Notes: svn path=/head/; revision=257466
* | Move new pf includes to the pf directory. The pfvar.h remainGleb Smirnoff2013-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | in net, to avoid compatibility breakage for no sake. The future plan is to split most of non-kernel parts of pfvar.h into pf.h, and then make pfvar.h a kernel only include breaking compatibility. Discussed with: bz Notes: svn path=/head/; revision=257215
* | Start splitting pfvar.h into internal and external parts.Gleb Smirnoff2013-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Provide pf_altq.h that has only stuff needed for ALTQ. - Start pf.h, that would have all constant values and eventually non-kernel structures. - Build ALTQ w/o pfvar.h, include if_var.h, that before came via pollution. - Build tcpdump w/o pfvar.h. Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=257186
* | MFV: libpcap 1.4.0.Xin LI2013-05-3054-4050/+8632
|\| | | | | | | | | | | | | MFC after: 4 weeks Notes: svn path=/head/; revision=251129
* | Add tcp header flags ECE and CWR defined in RFC 3168.Hiren Panchasara2013-05-163-2/+6
| | | | | | | | | | | | | | | | | | | | PR: 140349 Submitted by: Alan Amesbury <amesbury@umn.edu> (earlier version) Reviewed by: delphij Approved by: sbruno (mentor) Notes: svn path=/head/; revision=250693
* | Clean some 'svn:executable' properties in the tree.Pedro F. Giffuni2013-01-261-0/+0
| | | | | | | | | | | | | | | | Submitted by: Christoph Mallon MFC after: 3 days Notes: svn path=/head/; revision=245952
* | MFV: libpcap 1.3.0.Xin LI2012-10-0525-6915/+3907
|\| | | | | | | | | | | | | MFC after: 4 weeks Notes: svn path=/head/; revision=241231
* | Fix typo: s/pakcet/packetKevin Lo2012-09-201-1/+1
| | | | | | | | Notes: svn path=/head/; revision=240725
* | Add 3 missing files that was generated but not included with the initialXin LI2012-05-143-0/+267
| | | | | | | | | | | | | | | | | | | | commit. Reported by: buganini via IRC MFC after: 2 weeks Notes: svn path=/head/; revision=235429
* | Merge from vendor branch: update libpcap to 1.2.1.Xin LI2012-05-1476-2553/+6708
|\| | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=235426
* | Incorporate vendor commit ecdc5c0a7f7591a7cd4a:Xin LI2011-06-281-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In userland, sign extend the offset for JA instructions. We currently use that to implement "ip6 protochain", and "pc" might be wider than "pc->k", in which case we need to arrange that "pc->k" be sign-extended, by casting it to bpf_int32. PR: kern/157188 Submitted by: plosher MFC after: 2 weeks Notes: svn path=/head/; revision=223616
* | Explicitly initialize the packet buffer to NULL after we unmap the zero copyChristian S.J. Peron2011-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=222654
* | Merge my change against libpcap trunk revisionXin LI2011-03-111-11/+39
| | | | | | | | | | | | | | | | | | | | | | c65292b04b98d6a76d58c5a54ca8f81463bf24de to support new SIOCGIFDESCR ioctl interface which was too late for libpcap 1.1.1. Reported by: brucec Noticed by: wxs Notes: svn path=/head/; revision=219472
* | Remove more unused files.Rui Paulo2010-10-295-590/+0
| | | | | | | | Notes: svn path=/head/; revision=214521
* | Remove unused files.Rui Paulo2010-10-2948-8225/+0
| | | | | | | | Notes: svn path=/head/; revision=214520
* | Merge libpcap-1.1.1.Rui Paulo2010-10-29203-4500/+19746
|\| | | | | | | Notes: svn path=/head/; revision=214518
* | Revised revision 199201 (add interface description capability as inspiredXin LI2010-01-271-3/+13
| | | | | | | | | | | | | | | | | | | | | | by OpenBSD), based on comments from many, including rwatson, jhb, brooks and others. Sponsored by: iXsystems, Inc. MFC after: 1 month Notes: svn path=/head/; revision=203052
* | Revert revision 199201 for now as it has introduced a kernel vulnerabilityXin LI2009-11-121-12/+4
| | | | | | | | | | | | | | and requires more polishing. Notes: svn path=/head/; revision=199231
* | Add interface description capability as inspired by OpenBSD.Xin LI2009-11-111-4/+12
| | | | | | | | | | | | | | MFC after: 3 months Notes: svn path=/head/; revision=199201
* | Revert previous commit that commented out some bpf functions.Rui Paulo2009-04-115-9/+9
| | | | | | | | | | | | | | | | | | Unconstify arguments of bpf_image(), bpf_filter() and bpf_dump(). This is needed because some ports rely heavely on these arguments (some of them even roll out their own implemenentations of bpf_dump). Notes: svn path=/head/; revision=190944
* | Restore local change to include <sys/bpf.h> inside pcap.h. This fixesRui Paulo2009-04-022-6/+2
| | | | | | | | | | | | | | remaining ports build problems. Notes: svn path=/head/; revision=190640
* | Remove a dangling extern "C" declaration that was missed during theRui Paulo2009-03-311-4/+0
| | | | | | | | | | | | | | | | | | merge. Fixes C++ ports using libpcap (nmap, for example). Submitted by: Daniel Roethlisberger <daniel at roe.ch> Notes: svn path=/head/; revision=190591
* | Fixed indentation for LINKTYPE_ENCVANHULLEBUS Yvan2009-03-241-1/+1
| | | | | | | | | | | | | | Approved by: gnn(mentor) Notes: svn path=/head/; revision=190377
* | bpf_filter() and bpf_validate() can't live here if they already live inRui Paulo2009-03-221-2/+2
| | | | | | | | | | | | | | bpf.h Notes: svn path=/head/; revision=190234
* | Remove remaining references to BIOCSETBUFMODE ifdefs. We now haveRui Paulo2009-03-211-7/+0
| | | | | | | | | | | | | | another ifdef for zerocopy bpf. Notes: svn path=/head/; revision=190230
* | Finish merge of zerocopy bpf.Rui Paulo2009-03-211-156/+0
| | | | | | | | Notes: svn path=/head/; revision=190229
* | Merge libpcap 1.0.0.Rui Paulo2009-03-21156-10691/+25065
|\| | | | | | | Notes: svn path=/head/; revision=190225
| * Flatten vendor/libpcap and remove keyword expansion.Rui Paulo2009-03-2097-54701/+0
| | | | | | | | Notes: svn path=/vendor/libpcap/dist/; revision=190153
* | Add Mac OS X stuff.Rui Paulo2009-03-211-0/+2
| | | | | | | | Notes: svn path=/head/; revision=190213
* | Add a couple more paths.Rui Paulo2009-03-211-0/+2
| | | | | | | | Notes: svn path=/head/; revision=190212
* | Add exclude list for libpcap.Rui Paulo2009-03-211-0/+3
| | | | | | | | Notes: svn path=/head/; revision=190210
* | Added DLT_ENC to map list, so it is now possibleVANHULLEBUS Yvan2009-03-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | to save dumps on enc0 Reviewed by: gnn(mentor) Obtained from: NETASQ MFC after: 1 week Notes: svn path=/head/; revision=189877
* | Implement zero-copy bpf(4) buffer or "zbuf" support for libpcap. A slightlyChristian S.J. Peron2008-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 Notes: svn path=/head/; revision=183102
* | Revert back to including the whole net/bpf.h again.Max Laier2007-10-201-3/+1
| | | | | | | | | | | | | | | | Requested by: sam, nork X-MFC after: now Notes: svn path=/head/; revision=172833
* | Resolve merge conflictsMax Laier2007-10-1612-893/+965
| | | | | | | | | | | | | | | | Approved by: re (kensmith) Obtained from: tcpdump.org Notes: svn path=/head/; revision=172680
* | This commit was generated by cvs2svn to compensate for changes in r172677,Max Laier2007-10-1624-3037/+4903
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=172678
| * Import of libpcap v0.9.8Max Laier2007-10-1634-3478/+5892
| | | | | | | | Notes: svn path=/vendor/libpcap/dist/; revision=172677
* | Add three new ioctl(2) commands for bpf(4).Jung-uk Kim2007-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 Notes: svn path=/head/; revision=167035
* | sigh, put back buffer overflow fix of 1.1.11 that seems to haveSam Leffler2006-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 Notes: svn path=/head/; revision=162020
* | update instructionsSam Leffler2006-09-041-13/+12
| | | | | | | | Notes: svn path=/head/; revision=162016
* | resolve merge conflictsSam Leffler2006-09-047-85/+262
| | | | | | | | | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=162015
* | This commit was generated by cvs2svn to compensate for changes in r162012,Sam Leffler2006-09-0422-293/+3983
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=162013
| * Import of libpcap v0.9.4Sam Leffler2006-09-0429-381/+4246
| | | | | | | | Notes: svn path=/vendor/libpcap/dist/; revision=162012
* | This commit was generated by cvs2svn to compensate for changes in r154439,Sam Leffler2006-01-161-1/+1
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=154440
| * correct dlt buffer alloc; this goes on the vendor branch as itSam Leffler2006-01-161-1/+1
| | | | | | | | | | | | | | | | | | will be committed there shortly MFC after: 3 days Notes: svn path=/vendor/libpcap/dist/; revision=154439
* | resolve merge conflictsSam Leffler2005-07-1110-544/+1556
| | | | | | | | | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=147897
* | This commit was generated by cvs2svn to compensate for changes in r147894,Sam Leffler2005-07-1128-282/+1239
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=147895