FastClick

Elements / IPsec

IPsecESPEncap

apply IPSec encapsulation

SYNOPSIS§

IPsecESPEncap(SPI)

Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION§

Adds IPsec ESP header to packet. assign SPI as the security parameters index. Block size is set to 8 bytes. The packet will be padded to be multiples of 8 bytes. Padding uses the default padding scheme specified in RFC 2406: pad[0] = 1, pad[1] = 2, pad[2] = 3, etc.

The ESP header added to the packet includes the 32 bit SPI, 32 bit replay counter, and 64 bit Integrity Vector (IV).

SEE ALSO§

IPsecESPUnencap, IPsecAuthSHA1, IPsecDES

Generated by click-elem2man from ../elements/ipsec/esp.hh:8 on 2026/11/02.