Struct smoltcp::wire::IgmpPacket [−][src]
Expand description
A read/write wrapper around an Internet Group Management Protocol v1/v2 packet buffer.
Implementations
Internet Group Management Protocol v1/v2 defined in RFC 2236.
Imbue a raw octet buffer with IGMPv2 packet structure.
Shorthand for a combination of new_unchecked and check_len.
Ensure that no accessor method will panic if called.
Returns Err(Error::Truncated)
if the buffer is too short.
Consume the packet, returning the underlying buffer.
Return the maximum response time, using the encoding specified in RFC 3376: 4.1.1. Max Resp Code.
Return the source address field.
Set the message type field.
Set the maximum response time, using the encoding specified in [RFC 3376]: 4.1.1. Max Resp Code.
Set the checksum field.
Set the group address field
Compute and fill in the header checksum.