net-parser-rs 0.3.0

Basic network parser leveraging Rust and nom for safe and efficient packet parsing. Design influenced by pktparse-rs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub mod ethernet;

pub use ethernet::Ethernet as Ethernet;

///
/// Layer2 types that can be parsed
///
#[derive(Clone, Debug)]
pub enum Layer2<'a> {
    Ethernet(ethernet::Ethernet<'a>),
}