Open topic with navigationDocumentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
ipsecAssociationDatabaseGetSpi
CAPL Functions » TCP/IP API » ipsecAssociationDatabaseGetSpi Valid for: CANoe DE • CANoe4SW DENote
- The function is dependent on the selected stack.
- It is not possible to modify the security association database of the operating system TCP/IP stack.
Function Syntax
Description
With this function, it is possible to create a security association in the security association database of the current network stack. The stack will assign a free SPI to the security association. After the creation, it is possible to modify the security association record with ipsecAssociationSetParameter and update the security association in the database by calling ipsecAssociationDatabaseUpdate.Parameters
- source: Source endpoint of the security association.
- destination: Destination endpoint of the security association.
- protocol: The Ipsec protocol of the security association. The following values are possible:
- UNSPEC: 0
- ESP: 1
- AH: 2
- mode: The IPsec mode of the security association. The following values are possible:
- ANY: 0
- TRANSPORT: 1
- TUNNEL: 2
Return Values
- >0: A valid security association record handle.
- -1: Failed