Crate binator_network
source ·Expand description
Part of this work have been inspired by pktparse that is the nom version. It was used to test binator but still provide some basic network parsing.
Structs§
- EtherType
- EthernetFrame
- IPProtocol
- Ipv6Reference
- Contains TCP flags
- TcpHeader
- Data of a UDP Header
Enums§
- Atom of ip_addr parser
- Ipv4 failure cause
- Aom produced by ipv6_header parser
- Sack
- Atom produced by TCP
- Tcp Option
Functions§
- Parser that return a ethernet frame on success https://en.wikipedia.org/wiki/Ethernet_frame
- IPv4address = dec-octet “.” dec-octet “.” dec-octet “.” dec-octet
- Parse ipv4 header.
- IPv6address = 6( h16 “:” ) ls32 / “::” 5( h16 “:” ) ls32 / [ h16 ] “::” 4( h16 “:” ) ls32 / [ *1( h16 “:” ) h16 ] “::” 3( h16 “:” ) ls32 / [ *2( h16 “:” ) h16 ] “::” 2( h16 “:” ) ls32 / [ *3( h16 “:” ) h16 ] “::” h16 “:” ls32 / [ *4( h16 “:” ) h16 ] “::” ls32 / [ *5( h16 “:” ) h16 ] “::” h16 / [ *6( h16 “:” ) h16 ] “::”
- Parse IPv6 header
- IPv6reference = “[” IPv6address “]”
- Parse tcp header
- Parse tcp option this can be used on the Stream Span.
- UDP header parser
Trait Aliases§
- Meta trait for ip_addr combinator
- Meta trait for tcp combinator