Crate peel_ip [] [src]

Packet parsing for the Internet Protocol Suite

Example usage

use peel_ip::prelude::*;

let mut peel = PeelIp::default();
let input = vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0];
let result = peel.traverse(&input, vec![]).result;
assert_eq!(result.len(), 1);

Modules

layer1

Data Link Layer packets

layer2

Internet Layer packets

layer3

Transport Layer packets

layer4

Application Layer packets

prelude

Provides sensible imports for packet parsers

Traits

NewPeelIp

Trait for default parser tree generation