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: pcapkit.protocols.internet.ip.IP

Abstract base class for IPsec protocol family.

classmethod id()[source]

Index ID of the protocol.

Returns

Index ID of the protocol.

Return type

Tuple[Literal[‘AH’], Literal[‘ESP’]]

property dst

Destination IP address.

Raises

UnsupportedCall – This protocol doesn’t support dst.

property src

Source IP address.

Raises

UnsupportedCall – This protocol doesn’t support src.


*

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

ESP is currently NOT implemented.