tfPolicyAddBundle
Table of Contents >> IPsec/IKE Programmer's Reference >> IPsec/IKE Function Reference
| #include <trsocket.h> |
| int tfPolicyAddBundle | ( |
| ttPolicyEntryPtr plcyPtr, | |
| ttPolicyContentPtr outerContentPtr | |
| ); |
Function Description
tfPolicyAddBundle() adds an outer policy content to the specified policy. The resulting policy will have at least two policy contents. These policy contents must work together to protect the traffic. They are bundled policy contents.
Parameters
- plcyPtr
- The pointer to the policy interested.
- outerContentPtr
- The policy content we are going to add. This content will be linked to the content linked list, and it will become the outmost policy content.
Returns
- TM_ENOERROR
- Policy successfully added.
- Other value
- the call is unsuccessful
| The policy must have already at least one policy content in order to call tfPolicyAddBundle(). Otherwise, call tfPolicyAdd() instead. The IPsec kernel will save a copy of this content - user may free outerContentPtr after the call. The outerContentPtr will be of the same direction attribute as the inner policy content. The outerContentPtr's content flag must not conflict with the inner content flags, for example, you can't add outer policy content to a BYPASS or DISCARD policy. |
Table of Contents >> IPsec/IKE Programmer's Reference >> IPsec/IKE Function Reference