| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\|
| |
| |
| |
| |
| |
| |
| |
| | |
Update libpcap from 1.9.0 to 1.9.1.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=355988
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Suggested by: antoine@
MFC after: 3 weeks
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=334378
|
|\|
| |
| |
| |
| |
| |
| |
| | |
MFC after: 1 month
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=334277
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\|
| |
| |
| |
| |
| |
| |
| | |
Reported by: Randy Westlund <rwestlun gmail com>
MFC after: 3 days
Notes:
svn path=/head/; revision=316125
|
|\|
| |
| |
| |
| |
| |
| |
| | |
MFC after: 28 days
X-MFC-with: r313695
Notes:
svn path=/head/; revision=313760
|
|\|
| |
| |
| |
| |
| |
| | |
MFC after: 1 month
Notes:
svn path=/head/; revision=313695
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=303734
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=303733
|
| |
| |
| |
| |
| |
| |
| | |
Found with devel/coccinelle.
Notes:
svn path=/head/; revision=297983
|
|\|
| |
| |
| |
| |
| |
| | |
MFC after: 1 month
Notes:
svn path=/head/; revision=276768
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
|\|
| |
| |
| |
| |
| |
| | |
MFC after: 4 weeks
Notes:
svn path=/head/; revision=251129
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
PR: 140349
Submitted by: Alan Amesbury <amesbury@umn.edu> (earlier version)
Reviewed by: delphij
Approved by: sbruno (mentor)
Notes:
svn path=/head/; revision=250693
|
| |
| |
| |
| |
| |
| |
| |
| | |
Submitted by: Christoph Mallon
MFC after: 3 days
Notes:
svn path=/head/; revision=245952
|
|\|
| |
| |
| |
| |
| |
| | |
MFC after: 4 weeks
Notes:
svn path=/head/; revision=241231
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=240725
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
commit.
Reported by: buganini via IRC
MFC after: 2 weeks
Notes:
svn path=/head/; revision=235429
|
|\|
| |
| |
| |
| |
| |
| | |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=235426
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=214521
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=214520
|
|\|
| |
| |
| | |
Notes:
svn path=/head/; revision=214518
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
and requires more polishing.
Notes:
svn path=/head/; revision=199231
|
| |
| |
| |
| |
| |
| |
| | |
MFC after: 3 months
Notes:
svn path=/head/; revision=199201
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
remaining ports build problems.
Notes:
svn path=/head/; revision=190640
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
merge. Fixes C++ ports using libpcap (nmap, for example).
Submitted by: Daniel Roethlisberger <daniel at roe.ch>
Notes:
svn path=/head/; revision=190591
|
| |
| |
| |
| |
| |
| |
| | |
Approved by: gnn(mentor)
Notes:
svn path=/head/; revision=190377
|
| |
| |
| |
| |
| |
| |
| | |
bpf.h
Notes:
svn path=/head/; revision=190234
|
| |
| |
| |
| |
| |
| |
| | |
another ifdef for zerocopy bpf.
Notes:
svn path=/head/; revision=190230
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=190229
|
|\|
| |
| |
| | |
Notes:
svn path=/head/; revision=190225
|
| |
| |
| |
| | |
Notes:
svn path=/vendor/libpcap/dist/; revision=190153
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=190213
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=190212
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=190210
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
to save dumps on enc0
Reviewed by: gnn(mentor)
Obtained from: NETASQ
MFC after: 1 week
Notes:
svn path=/head/; revision=189877
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| | |
Requested by: sam, nork
X-MFC after: now
Notes:
svn path=/head/; revision=172833
|
| |
| |
| |
| |
| |
| |
| |
| | |
Approved by: re (kensmith)
Obtained from: tcpdump.org
Notes:
svn path=/head/; revision=172680
|