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], Generic[PT]

Abstract base class for IPsec protocol family.

Parameters
  • *args (Any) – Arbitrary positional arguments.

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

Return type

Protocol[PT]

classmethod id()[source]

Index ID of the protocol.

Returns

Index ID of the protocol.

Return type

tuple[Literal[“AH”], Literal[“ESP”]]


*

https://en.wikipedia.org/wiki/IPsec

ESP class is currently NOT implemented.