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§

Enums§

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§