aboutsummaryrefslogtreecommitdiff
path: root/contrib/libpcap
Commit message (Collapse)AuthorAgeFilesLines
* MFV r355890:Cy Schubert2019-12-212-2/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix libpcap issue #893: check for invalid IPv4 addresses. This fixes errors such as: tcpdump -i lagg0 net 999.999.999.999 This was originally discovered on a Red Hat 7.7 server and verified to also be a bug on FreeBSD. Obtained from: https://github.com/the-tcpdump-group/libpcap/commit/ \ 07070918d5e81a515315b395f334e52589fe0fb Fixed by: https://github.com/guyharris MFC after: 2 weeks Notes: svn path=/head/; revision=355990
* | MFV r353141 (by phillip):Cy Schubert2019-12-21175-4544/+17653
|\| | | | | | | | | | | | | | | | | Update libpcap from 1.9.0 to 1.9.1. MFC after: 2 weeks Notes: svn path=/head/; revision=355988
* | Re-apply r190640.Hans Petter Selasky2018-05-311-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Restore local change to include <net/bpf.h> inside pcap.h. This fixes ports build problems. - Update local copy of dlt.h with new DLT types. - Revert no longer needed <net/bpf.h> includes which were added as part of r334277. Suggested by: antoine@, delphij@, np@ MFC after: 3 weeks Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=334418
* | Hide unsupported remote capture definitions to avoid breakage in ports.Hans Petter Selasky2018-05-301-0/+2
| | | | | | | | | | | | | | | | | | Suggested by: antoine@ MFC after: 3 weeks Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=334378
* | MFV r333789: libpcap 1.9.0 (pre-release)Hans Petter Selasky2018-05-28199-16155/+26219
|\| | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=334277
* | Clear clang warning:Sean Bruno2017-07-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] Submitted by: Aaron Prieger <aprieger@llnw.com> Reviewed by: dim Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D11166 Notes: svn path=/head/; revision=320616
* | MFV r316124: Fix build when WITHOUT_INET6.Xin LI2017-03-291-7/+7
|\| | | | | | | | | | | | | | | Reported by: Randy Westlund <rwestlun gmail com> MFC after: 3 days Notes: svn path=/head/; revision=316125
* | MFV r313759: license change for a few headers (4 clause BSD to 3 clause BSD).Xin LI2017-02-152-10/+2
|\| | | | | | | | | | | | | | | MFC after: 28 days X-MFC-with: r313695 Notes: svn path=/head/; revision=313760
* | MFV r313676: libpcap 1.8.1Xin LI2017-02-13175-10534/+22895
|\| | | | | | | | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=313695
* | Fix a style(9) bug.Jung-uk Kim2016-08-031-1/+1
| | | | | | | | Notes: svn path=/head/; revision=303734
* | Support nanosecond time stamps for pcap_dispatch(3) and pcap_loop(3).Jung-uk Kim2016-08-031-0/+49
| | | | | | | | Notes: svn path=/head/; revision=303733
* | libpcap: fix for simple NULL pointer dereference.Pedro F. Giffuni2016-04-141-1/+2
| | | | | | | | | | | | | | Found with devel/coccinelle. Notes: svn path=/head/; revision=297983
* | 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