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)[source]#

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()[source]#

Index ID of the protocol.

Return type:

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

Returns:

Index ID of the protocol.

Footnotes