tfSadbRecordSetOptions

Jump to: navigation, search

Table of Contents >> IPsec/IKE Programmer's Reference >> IPsec/IKE Function Reference


#include <trsocket.h>


void tfSadbRecordSetOptions (
ttSadbRecordPtr sadbPtr,
ttUser16Bit optionType,
ttUser8Bit optionValue
);


Function Description

This function is called to set some option value for a Security Association.


Parameters

  • sadbPtr
    Pointer to the SA
  • optionType
    Option type to set. Valid option types are:
TM_IPSEC_SADB_NOREKEYING:
indicates that we don’t want to rekey this SA. When SA expires, just delete it. Any non zero optionValue will enable this option, a zero optionValue will disable this option.
TM_IPSEC_SADB_NOEXPIRING:
Indicates that we don’t want to rekey nor delete this SA. Whenever SA expires, we just renew the timer. Any non-zero optionValue will enable this option; a zero optionValue will disable this option.
  • optionValue
    Typically 1 or 0, see the description of optionType.


Returns

  • None


Table of Contents >> IPsec/IKE Programmer's Reference >> IPsec/IKE Function Reference