IGMPv1 - Internet Group Management Protocol Version 1

pcapkit.protocols.internet.igmpv1 contains IGMPv1, which implements an extractor for Internet Group Management Protocol version 1 (IGMPv1) [RFC 1112]. It shares its header schema and data model with IGMPv2 – see igmp for both.

class pcapkit.protocols.internet.igmpv1.IGMPv1(file=None, length=None, **kwargs)[source]

Bases: IGMP[IGMP, IGMP]

This class implements Internet Group Management Protocol version 1.

property version: Literal[1]

IGMP version this class reads, 1.

property alias: Literal['IGMP']

Acronym of corresponding protocol.

classmethod id()[source]

Index ID of the protocol.

RFC 1112 names the protocol IGMP, without a version.

String == compares against (cls, *id()), so == 'IGMPv1' is False, while 'IGMPv1' in matches by class.

Return type:

tuple[Literal['IGMP']]

Returns:

Index ID of the protocol.

read(length=None, **kwargs)

Read Internet Group Management Protocol.

Parameters:
  • length (int | None) – Length of packet data.

  • **kwargs (Any) – Arbitrary keyword arguments.

Raises:

ProtocolError – If _classify() does not place the message in version.

Return type:

IGMP

Returns:

Parsed packet data.