Module packet_formats::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§
- Implementation of IGMP Messages.
Structs§
HeaderPrefix
represents the first 4 octets of every IGMP message.- An IGMP message.
- A builder for IGMP packets.
- Thin wrapper around
u8
that provides maximum response time parsing for IGMP v2. - Thin wrapper around u8 that provides maximum response time parsing for IGMP v3.
Enums§
- IGMP-specific errors.
Traits§
- Trait for treating the max_resp_code field of
HeaderPrefix
. - A marker trait for implementers of
MessageType
. OnlyMessageType
s whoseVariableBody
implementsIgmpNonEmptyBody
(or is()
for empty bodies) can be built usingIgmpPacketBuilder
. - Trait specifying serialization behavior for IGMP messages.
Functions§
- Makes an
u8
code out of anu32
value that can be represented as a floating point. - Parses a code that may be representing a floating point value.
- Peek at an IGMP header to see what message type is present.