tfSadbRecordDeleteByPolicy
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