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
EtherType
EthernetFrame
EthernetFrame
IPProtocol
IPProtocol
IPv4Header
https://en.wikipedia.org/wiki/Internet_Protocol_version_4
IPv6Header
https://en.wikipedia.org/wiki/IPv6_packet
Ipv6Reference
Ipv6Reference
TcpFlags
Contains TCP flags
TcpHeader
TcpHeader
UdpHeader
Data of a UDP Header

Enums§

IpAddrAtom
Atom of ip_addr parser
Ipv4Atom
Ipv4 failure cause
Ipv6Atom
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§

IpAddrParse
Meta trait for ip_addr combinator
TcpParse
Meta trait for tcp combinator