Crates.io | pktparse |
lib.rs | pktparse |
version | 0.7.1 |
source | src |
created_at | 2016-11-21 17:00:46.21834 |
updated_at | 2021-12-26 16:04:24.676615 |
description | Collection of packet parsers |
homepage | |
repository | https://github.com/bestouff/pktparse-rs |
max_upload_size | |
id | 7327 |
size | 61,841 |
This repository is just a bunch of packet parsing routines made with nom
Admitting your packet.data
is an [u8]
:
if let Done(remaining, eth_frame) = ethernet::parse_ethernet_frame(packet.data) {
if eth_frame.ethertype != EtherType::IPv4 {
continue;
}
if let Done(remaining, ipv4_packet) = ipv4::parse_ipv4_header(remaining) {
For now the list of available parsers is rather short: