tfSadbRecordClearAll
Table of Contents >> IPsec/IKE Programmer's Reference >> IPsec/IKE Function Reference
| #include <trsocket.h> |
| int tfSadbRecordClearAll | (ttUser16Bit options); |
Function Description
Call this function to clear all existing IPsec SAs. In some cases, it is necessary to delete all automatic IPsec SAs and leave all manual IPsec SAs active. In this case, the options parameter is set to TM_IPSEC_CLEAR_MANUAL_SAS, else it should be set to TM_16BIT_ZERO.
| This function can be used whether or not IKE Policies are in use (TM_USE_IKE_POLICIES). |
Parameters
- options
- This field is set to determine whether or not manual IPsec SAs should be removed or left active. When this field is TM_16BIT_ZERO, manual IPsec SAs are not removed. When this field is TM_IPSEC_CLEAR_MANUAL_SAS, manual IPsec SAs are removed as well.
Returns
- TM_ENOERROR
- This indicates success.
- TM_EIPSECNOTSTARTED
- This indicates failure because IPsec has not been started.
- TM_ENOENT
- This indicates failure because the kernel could not find any IPsec SAs.
Table of Contents >> IPsec/IKE Programmer's Reference >> IPsec/IKE Function Reference