- Added an implementation of
AsFd
onCapture<Active>
on non-Windows.
- Add
want_pktap
onCapture<Inactive>
for Mac OS.
- Rust Edition is now
2021
. - MSRV is now
1.63.0
.
- Binding for
pcap_loop
added. It can be accessed via thefor_each
call on Activated captures.
capture-stream
support added for Windows.
lending-iter
UNSTABLE feature that introduces lending iterator using GATs.
- Examples in the docs have been fixed.
- Public API declared stable.
SendQueue::queue_sg()
can add scattered packets, as a slice ofstd::io::IoSlice
s, toSendQueue
s.
- Rename
sendqueue::Sync
tosendqueue::SendSync
to avoid collision withSync
in std's prelude. - Build script will fall back to
pkg-config
if available andLIBPCAP_LIBDIR
hasn't been explicitly set.
- MSRV is now
1.46.0
.
- doc will now include all features.
- Support for sendqueues on Windows.
PacketStream::capture_mut
to still be able to inject packets when usingPacketStream
.Capture::iter()
that return an iterator that use a codec likeCapture::stream()
.Packet<Dead>::dead_with_precision
to enable creating a pcap with nanosecond precision.flags
field toDevice
.
BpfProgram
no longer haveClone
implementation see #261
- MSRV is now
1.41.0
. PacketStream
has been moved from modstream
to theroot
of the crate.PacketCodec
has been moved from modstream
to theroot
of the crate.PacketCodec::decode()
no longer returns aResult
.PacketCodec::Type
has been renamed toPacketCodec::Item
.Device::lookup
now returnsResult<Option<Device>, Error>
rather thanResult<Device, Error>
.Ok(None)
means that the lookup succeeded, but no suitable devices were available. This is consistent with libpcap.Capture
andSavefile
no longer implement theSync
trait. The underlyinglibpcap
library does not promise thread-safe access for the same capture object from multiple threads.- Switched from
winapi
towindows-sys
for Windows builds.windows-sys
requires rustc 1.46.0. Capture::next
have been renamenext_packet
to avoid any confusion withIterator::next
.
- mod
stream
is no longer public. docs-rs
feature.full
feature.stream::SelectableFd
andstream::PacketStream::new
as they were only meant to be used internally.
capture-stream
requires rustc version 1.49.0 due to dependency ontokio
.
- Support for device addresses.
savefile.flush
support.
- Updated dependency
tokio
from version 0.2 to 1.0. capture-stream
requires rustc version 1.45.0 due to dependency ontokio
.
- Fix docs.rs build.
Derive(Clone)
toDevice
struct (#100).- Build-time
libpcap
version detection. - Support for immediate mode.
- Const value for Linktype (#145).
- Support for BPF compile.
- Opt into Rust 2018.
- Now minimum supported rustc version is 1.40.0.
- Updated dependency from deprecated
tokio-core
totokio
0.2. - Updated dependency
futures
from version 0.1 to 0.3. - Feature
tokio
renamed tocapture-stream
because Cargo does not allow features and dependencies to have the same name. PCAP_LIBDIR
renamed toLIBPCAP_LIBDIR
to distinguish thepcap
crate from thelibpcap
library.- All methods that construct objects out of a
RawFd
are now unsafe. - All methods that take a raw pointer are now unsafe. Some of these functions
were renamed from
new
tofrom_handle
to underline this.
- Feature flags
pcap-savefile-append
,pcap-fopen-offline-precision
(replaced by build-timelibpcap
version detection).
No Changelog entries for <= 0.7.0.