Skip to content

Commit 43892b3

Browse files
committed
Prepare release 0.15.0
1 parent 4ad2f2b commit 43892b3

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

CHANGELOG.md

+35
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,41 @@
66

77
### Changed/Fixed
88

9+
## 0.15.0
10+
11+
### Upgrade notes and breaking changes
12+
13+
The PcapNGOption type now uses a `Cow<[u8]>` instead of `&[u8]`. To access raw value,
14+
use `option.value()` or `&option.value` instead of `option.value`.
15+
This allow changing the options when serializing blocks.
16+
17+
The new error types may require to match more variants when handling errors.
18+
19+
The `PcapError::Incomplete` variant now contains a value: the number of missing
20+
bytes, or 0 if unknown.
21+
22+
The `InterfaceDescriptionBlock::if_tsoffset` field is now a i64 (signed).
23+
24+
### Changed/Fixed
25+
26+
- Set MSRV to 1.53.0
27+
- Fix if_tsoffset to be a signed value (#21)
28+
- Add support for Apple-specific process information block (#27)
29+
- Added const for LINUX_SLL2 (#31)
30+
- PcapNGOption:
31+
- Allow PcapNGOption to own data (using a Cow<[u8]>)
32+
- Serialize: use provided if_tsresol and if_tsoffset (#24)
33+
- Add helper methods to allow extracting value from PcapNGOption
34+
- Error handling:
35+
- Add PcapError::UnexpectedEof error type (#28)
36+
- Reader: report how many additional bytes are needed when returning `Incomplete`
37+
- Add new error kind BufferTooSmall, and raise error if buffer capacity is too small (#29)
38+
- Return Eof if reader is exhausted AND bytes have been consumed (#30)
39+
40+
### Thanks
41+
42+
- iczero, Julien Gamba, Bobby Richter
43+
944
## 0.14.1
1045

1146
### Changed/Fixed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pcap-parser"
3-
version = "0.14.1"
3+
version = "0.15.0"
44
description = "Parser for the PCAP/PCAPNG format"
55
license = "MIT/Apache-2.0"
66
keywords = ["pcap","pcapng","parser","nom"]

0 commit comments

Comments
 (0)