Skip to main content

ipsecPolicyGetParameter

Open topic with navigation CAPL Functions » TCP/IP API » ipsecPolicyGetParameter Valid for: CANoe DE • CANoe4SW DE

Note

  • The function is dependent on the selected stack.
  • This functionality cannot be used in connection with the operating system TCP/IP stack.

Function Syntax

Description

Get a parameter from a security policy record.

Parameters

  • policy: Handle to a security policy record object.
  • parameter: Name of the parameter. Possible values are:
    • Source: Returns the source selector.
    • Destination: Returns the destination selector.
    • Protocol: Returns the protocol of the policy. Possible values are:
      • UNSPEC: 0
      • ESP: 1
      • AH: 2
    • Mode: Returns the mode of the policy. Possible values are:
      • ANY: 0
      • TRANSPORT: 1
      • TUNNEL: 2
    • Level: Returns the level of the policy. Possible values are:
      • DEFAULT: 0
      • USE: 1
      • REQUIRE: 2
    • Policytype: Returns the type of the policy. Possible values are:
      • DISCARD: 0
      • NONE: 1
      • IPSEC: 2
      • ENTRUST: 3
      • BYPASS: 4
  • value: The returned value of the parameter.

Return Values

Form 1

  • >0: Success: count of characters returned.
  • -1: Failed

Form 2-3

  • 0: Success
  • -1: Failed

Example