IPsec - Internet Protocol Security#

pcapkit.protocols.internet.ipsec contains IPsec only, which is a base class for Internet Protocol Security (IPsec) protocol family [*], eg. AH and ESP [†].

class pcapkit.protocols.internet.ipsec.IPsec(file=None, length=None, **kwargs)#

Bases: Internet[PT, ST], Generic[PT, ST]

Abstract base class for IPsec protocol family.

Parameters:
  • *args – Arbitrary positional arguments.

  • **kwargs – Arbitrary keyword arguments.

classmethod id()#

Index ID of the protocol.

Return type:

tuple[Literal['AH'], Literal['ESP']]

Returns:

Index ID of the protocol.

Footnotes