IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


tIPSEC_POLICY_PAIR Struct Reference
[IPsec types]

Policy Pairs. More...


Detailed Description

This data structure is used by the IPsec_Add_Policy() API to map policy selectors to IP security policies.

typedef struct sIPSEC_POLICY_PAIR
{
    unsigned short iSelectorIndex;
    unsigned char  bContentIndex;
    unsigned char  bDirection;
} tIPSEC_POLICY_PAIR ;

The selectors and content referred to here are the arguments to the IPsec_Add_Policy() API.

The relationships between the IP security policy data structures provided by the tIPSEC_POLICY_PAIR are illustrated in the diagram below. Policy bundles are formed where consecutive tIPSEC_POLICY_PAIR contain the same iSelectorIndex values. A policy bundle would be used, for example, when both AH and ESP protocols are to be applied. The protocol transform indicated by the first referenced tIPSEC_POLICY_CONTENT in the bundle is applied to outgoing packets first (inner header), followed by the protocol headers for the subsequent transforms in the bundle.

Note that when both ESP and AH protocols are used, the ESP is normally the inner protocol (listed first in the tIPSEC_POLICY_CONTENT array) and the AH protocol is the outer header (listed after ESP). This normal ordering of headers is a requirement for interfacing to Microsoft Windows (unless you know of someway to rig Windows otherwise).

IPsec_Policy.gif
Since:
SC2x3 V1.00 - CLIB V1.00
See also:
IPsec_Add_Policy()

Data Fields

unsigned short iSelectorIndex
unsigned char bContentIndex
unsigned char bDirection





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:40 2017 by Doxygen 1.6.1