Module igmp

Source
Expand description

Parsing and serialization of Internet Group Management Protocol (IGMP) packets.

This module supports both IGMPv2 and IGMPv3.

The IGMPv2 packet format is defined in RFC 2236 Section 2, and the IGMPv3 packet format is defined in RFC 3376 Section 4.

Modules§

messages
Implementation of IGMP Messages.

Structs§

HeaderPrefix
HeaderPrefix represents the first 4 octets of every IGMP message.
IgmpMessage
An IGMP message.
IgmpPacketBuilder
A builder for IGMP packets.
IgmpResponseTimeV2
Thin wrapper around u8 that provides maximum response time parsing for IGMP v2.
IgmpResponseTimeV3
Thin wrapper around u8 that provides maximum response time parsing for IGMP v3.

Traits§

IgmpMaxRespCode
Trait for treating the max_resp_code field of HeaderPrefix.
IgmpNonEmptyBody
A marker trait for implementers of MessageType. Only MessageTypes whose VariableBody implements IgmpNonEmptyBody (or is () for empty bodies) can be built using IgmpPacketBuilder.
MessageType
Trait specifying serialization behavior for IGMP messages.

Functions§

peek_message_type
Peek at an IGMP header to see what message type is present.