packet_crafter 0.2.0

Simple tools for creating / parsing / manipulating data packets. Calculates checsums and length fields where possible.
Documentation
// from https://en.wikipedia.org/wiki/EtherType#Examples

/// IPv4
pub const ETHERTYPE_IPV4: u16          = 0x0800;
/// ARP
pub const ETHERTYPE_ARP: u16          = 0x0806;
/// Reverse Address Resolution Protocol
pub const ETHERTYPE_RARP: u16          = 0x8035;
/// IPv6
pub const ETHERTYPE_IPV6: u16          = 0x86DD;
/// Link Layer Discovery Protocol
pub const ETHERTYPE_LLDP: u16          = 0x88CC;