Struct:ttSaIdentity

Jump to: navigation, search
 
#include trsecapi.h
 
typedef struct tsSaIdentity
{
    struct sockaddr_storage siSrcSockAddr;
    struct sockaddr_storage siDstSockAddr;
    ttUser32Bit             siSpi;
    ttUser8Bit              siProto;
}
ttSaIdentity;
typedef ttSaIdentity * ttSaIdentityPtr;
 

Structure Description

ttSaIdentity is the structure to hold the triplet <Destination, IPsec protocol, SPI> which uniquely determines an SA. We also put siSrcSockAddr here; we may need to use the source address to find if we have IKE phase 1 SA associated with that address.


Members

  • siSrcSockAddr
    Stores the IPv4 or IPv6 socket address of the source.
  • siDstSockAddr
    Stores the IPv4 or IPv6 socket address of the destination.
  • siSpi
    The SPI value of SA, in host order
  • siProto
    Indicates the IPsec protocol, can be either TM_IP_AH or TM_IP_ESP