pdu icon indicating copy to clipboard operation
pdu copied to clipboard

Small, fast, and correct L2/L3/L4 packet parser.

Results 5 pdu issues
Sort by recently updated
recently updated
newest added

Hi! 👋 I'm exploring using Rust to write bpf programs, and this package is a great fit for some of the networking usecases like xdp. I also found https://github.com/uccidibuti/rebpf/blob/37775452ca79b7c232d535e8c989f07d751a612e/examples/basic03_map_counter/src/kern.rs#L40-L57 which...

enhancement

Merged commits from devel up to adding vlan Q-in-Q parsing support. Skipped the following commits since they may contain breaking changes: 7bca390fd1e4a73667d91575db2723c6046cf369 f4aed3da022c451bfcd1cf647f61e18ae138dc28

enhancement

`pub fn buffer(&self) -> &'a [u8]` instead of `pub fn buffer(&'a self) -> &'a [u8]`. &'a is the lifetime of the underlying buffer, not the Pdu struct. Borrowing self as...

this line breaks on my machine (tshark 3.2.3) https://github.com/alexforster/pdu/blob/master/tests/tests.rs#L162 ```text ❯ tshark -n -o ip.defragment:false -o ipv6.defragment:false -o tcp.desegment_tcp_streams:false -T pdml -r /home/sky/git/pdu/tests/pcaps/gre-erspan.pcap | rg frag_offset ``` seemingly `value` is...