tfSadbRecordDeleteByPolicy

Jump to: navigation, search

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


#include <trsocket.h>


int tfSadbRecordDeleteByPolicy (
ttUser32Bit options,
ttPolicyEntryPtr plcyPtr,
ttUser8Bit direction
);


Function Description

Call this function to delete all SA’s that spawned by the specified policy and match the specified direction.



Parameters

  • options
    Zero if the SAD is not locked by the calling procedure, or TM_IPSEC_DATABASE_LOCKED if SAD is already locked by the calling procedure. For manual usage, this is always zero.
  • plcyPtr
    Pointer to the policy of which we want to delete all the spawned SA’s.
  • direction
    This can be TM_IPEC_INBOUND, TM_IPSEC_OUTBOUND or TM_IPSEC_BOTH_DIRECTION. SA’s spawned by this policy, and matching this direction, will be all deleted. If only one direction is specified, the other direction SA’s will be retained.


Returns

  • TM_ENOERROR
    SA were successfully deleted
  • other value
    unsuccessful operation


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