ppp_packet

Module records

Source
Expand description

Utilities for parsing sequential records.

This module provides utilities for parsing sequential records. IGMP message parsing is built using these utilities, as is another set of general utilities for IPv4, TCP, and NDP options parsing, provided in the options submodule.

Modules§

  • Header options for IPv4 and TCP, and NDP.

Structs§

  • Create a bridge to RecordsImplLayout and RecordsImpl from an O that implements LimitedRecordsImplLayout. This is required so we can have a single implementation of parse_with_context and definition of Context that all implementers of LimitedRecordsImpl will get for free.
  • A parsed set of arbitrary sequential records.
  • An iterator over the records contained inside a Records instance.
  • An instance of records serialization.

Traits§

  • Trait that provides implementations to limit the amount of records read from a buffer. Some protocols will have some sort of header preceding the records that will indicate the number of records to follow (e.g. IGMP), while others will have that information inline (e.g. IPv4 options).
  • The context kept while performing records parsing.
  • An implementation of a records parser.
  • Basic associated types used by a RecordsImpl.
  • An implementation of a records serializer.

Type Aliases§