Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add etherparse-defrag #92

Merged
merged 14 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# etherparse

A zero allocation library for parsing & writing a bunch of packet based protocols (EthernetII, IPv4, IPv6, UDP, TCP ...).
A mostly zero allocation library for parsing & writing a bunch of packet based protocols (EthernetII, IPv4, IPv6, UDP, TCP ...).

Currently supported are:
* Ethernet II
Expand All @@ -32,7 +32,7 @@ Etherparse is intended to provide the basic network parsing functions that allow
Some key points are:

* It is completely written in Rust and thoroughly tested.
* Special attention has been paid to not use allocations or syscalls.
* Special attention has been paid to not use allocations or syscalls except in the "defragmentation" code.
* The package is still in development and can & will still change.
* The current focus of development is on the most popular protocols in the internet & transport layer.

Expand Down
2 changes: 1 addition & 1 deletion etherparse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ std = ["arrayvec/std"]
arrayvec = { version = "0.7.2", default-features = false }

[dev-dependencies]
proptest = "1.0.0"
proptest = "1.4.0"

[package.metadata.docs.rs]
all-features = true
Expand Down
1 change: 1 addition & 0 deletions etherparse/src/checksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ pub mod u64_16bit_word {

proptest! {
#[test]
#[cfg_attr(miri, ignore)] // vec allocation reduces miri runspeed too much
fn u32_u16_comparison(
data in proptest::collection::vec(any::<u8>(), 0..0xfffusize)
) {
Expand Down
1 change: 1 addition & 0 deletions etherparse/src/compositions_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ impl ComponentTest {
proptest! {
///Test that all known packet compositions are parsed correctly.
#[test]
#[cfg_attr(miri, ignore)] // vec allocation reduces miri runspeed too much
fn test_compositions(ref eth in ethernet_2_unknown(),
ref vlan_outer in vlan_single_unknown(),
ref vlan_inner in vlan_single_unknown(),
Expand Down
Loading
Loading