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§
- Ether
Type - EtherType
- Ethernet
Frame - EthernetFrame
- IPProtocol
- IPProtocol
- IPv4
Header - https://en.wikipedia.org/wiki/Internet_Protocol_version_4
- IPv6
Header - https://en.wikipedia.org/wiki/IPv6_packet
- Ipv6
Reference - Ipv6Reference
- TcpFlags
- Contains TCP flags
- TcpHeader
- TcpHeader
- UdpHeader
- Data of a UDP Header
Enums§
- IpAddr
Atom - Atom of ip_addr parser
- Ipv4
Atom - Ipv4 failure cause
- Ipv6
Atom - Aom produced by ipv6_header parser
- Sack
- Sack
- TcpAtom
- Atom produced by TCP
- TcpOption
- Tcp Option
Functions§
- ethernet_
frame - Parser that return a ethernet frame on success https://en.wikipedia.org/wiki/Ethernet_frame
- ipv4_
address - IPv4address = dec-octet “.” dec-octet “.” dec-octet “.” dec-octet
- ipv4_
header - Parse ipv4 header.
- ipv6_
address - 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 ] “::”
- ipv6_
header - Parse IPv6 header
- ipv6_
reference - IPv6reference = “[” IPv6address “]”
- tcp_
header - Parse tcp header
- tcp_
options - Parse tcp option this can be used on the Stream Span.
- udp_
header - UDP header parser
Trait Aliases§
- IpAddr
Parse - Meta trait for ip_addr combinator
- TcpParse
- Meta trait for tcp combinator