Documentation ¶
Overview ¶
Package ipsec_types contains generated bindings for API file ipsec_types.api.
Contents:
4 enums 4 structs
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IpsecCryptoAlg_name = map[uint32]string{ 0: "IPSEC_API_CRYPTO_ALG_NONE", 1: "IPSEC_API_CRYPTO_ALG_AES_CBC_128", 2: "IPSEC_API_CRYPTO_ALG_AES_CBC_192", 3: "IPSEC_API_CRYPTO_ALG_AES_CBC_256", 4: "IPSEC_API_CRYPTO_ALG_AES_CTR_128", 5: "IPSEC_API_CRYPTO_ALG_AES_CTR_192", 6: "IPSEC_API_CRYPTO_ALG_AES_CTR_256", 7: "IPSEC_API_CRYPTO_ALG_AES_GCM_128", 8: "IPSEC_API_CRYPTO_ALG_AES_GCM_192", 9: "IPSEC_API_CRYPTO_ALG_AES_GCM_256", 10: "IPSEC_API_CRYPTO_ALG_DES_CBC", 11: "IPSEC_API_CRYPTO_ALG_3DES_CBC", } IpsecCryptoAlg_value = map[string]uint32{ "IPSEC_API_CRYPTO_ALG_NONE": 0, "IPSEC_API_CRYPTO_ALG_AES_CBC_128": 1, "IPSEC_API_CRYPTO_ALG_AES_CBC_192": 2, "IPSEC_API_CRYPTO_ALG_AES_CBC_256": 3, "IPSEC_API_CRYPTO_ALG_AES_CTR_128": 4, "IPSEC_API_CRYPTO_ALG_AES_CTR_192": 5, "IPSEC_API_CRYPTO_ALG_AES_CTR_256": 6, "IPSEC_API_CRYPTO_ALG_AES_GCM_128": 7, "IPSEC_API_CRYPTO_ALG_AES_GCM_192": 8, "IPSEC_API_CRYPTO_ALG_AES_GCM_256": 9, "IPSEC_API_CRYPTO_ALG_DES_CBC": 10, "IPSEC_API_CRYPTO_ALG_3DES_CBC": 11, } )
View Source
var ( IpsecIntegAlg_name = map[uint32]string{ 0: "IPSEC_API_INTEG_ALG_NONE", 1: "IPSEC_API_INTEG_ALG_MD5_96", 2: "IPSEC_API_INTEG_ALG_SHA1_96", 3: "IPSEC_API_INTEG_ALG_SHA_256_96", 4: "IPSEC_API_INTEG_ALG_SHA_256_128", 5: "IPSEC_API_INTEG_ALG_SHA_384_192", 6: "IPSEC_API_INTEG_ALG_SHA_512_256", } IpsecIntegAlg_value = map[string]uint32{ "IPSEC_API_INTEG_ALG_NONE": 0, "IPSEC_API_INTEG_ALG_MD5_96": 1, "IPSEC_API_INTEG_ALG_SHA1_96": 2, "IPSEC_API_INTEG_ALG_SHA_256_96": 3, "IPSEC_API_INTEG_ALG_SHA_256_128": 4, "IPSEC_API_INTEG_ALG_SHA_384_192": 5, "IPSEC_API_INTEG_ALG_SHA_512_256": 6, } )
View Source
var ( IpsecProto_name = map[uint32]string{ 50: "IPSEC_API_PROTO_ESP", 51: "IPSEC_API_PROTO_AH", } IpsecProto_value = map[string]uint32{ "IPSEC_API_PROTO_ESP": 50, "IPSEC_API_PROTO_AH": 51, } )
View Source
var ( IpsecSadFlags_name = map[uint32]string{ 0: "IPSEC_API_SAD_FLAG_NONE", 1: "IPSEC_API_SAD_FLAG_USE_ESN", 2: "IPSEC_API_SAD_FLAG_USE_ANTI_REPLAY", 4: "IPSEC_API_SAD_FLAG_IS_TUNNEL", 8: "IPSEC_API_SAD_FLAG_IS_TUNNEL_V6", 16: "IPSEC_API_SAD_FLAG_UDP_ENCAP", 64: "IPSEC_API_SAD_FLAG_IS_INBOUND", 128: "IPSEC_API_SAD_FLAG_ASYNC", } IpsecSadFlags_value = map[string]uint32{ "IPSEC_API_SAD_FLAG_NONE": 0, "IPSEC_API_SAD_FLAG_USE_ESN": 1, "IPSEC_API_SAD_FLAG_USE_ANTI_REPLAY": 2, "IPSEC_API_SAD_FLAG_IS_TUNNEL": 4, "IPSEC_API_SAD_FLAG_IS_TUNNEL_V6": 8, "IPSEC_API_SAD_FLAG_UDP_ENCAP": 16, "IPSEC_API_SAD_FLAG_IS_INBOUND": 64, "IPSEC_API_SAD_FLAG_ASYNC": 128, } )
Functions ¶
This section is empty.
Types ¶
type IpsecCryptoAlg ¶
type IpsecCryptoAlg uint32
IpsecCryptoAlg defines enum 'ipsec_crypto_alg'.
const ( IPSEC_API_CRYPTO_ALG_NONE IpsecCryptoAlg = 0 IPSEC_API_CRYPTO_ALG_AES_CBC_128 IpsecCryptoAlg = 1 IPSEC_API_CRYPTO_ALG_AES_CBC_192 IpsecCryptoAlg = 2 IPSEC_API_CRYPTO_ALG_AES_CBC_256 IpsecCryptoAlg = 3 IPSEC_API_CRYPTO_ALG_AES_CTR_128 IpsecCryptoAlg = 4 IPSEC_API_CRYPTO_ALG_AES_CTR_192 IpsecCryptoAlg = 5 IPSEC_API_CRYPTO_ALG_AES_CTR_256 IpsecCryptoAlg = 6 IPSEC_API_CRYPTO_ALG_AES_GCM_128 IpsecCryptoAlg = 7 IPSEC_API_CRYPTO_ALG_AES_GCM_192 IpsecCryptoAlg = 8 IPSEC_API_CRYPTO_ALG_AES_GCM_256 IpsecCryptoAlg = 9 IPSEC_API_CRYPTO_ALG_DES_CBC IpsecCryptoAlg = 10 IPSEC_API_CRYPTO_ALG_3DES_CBC IpsecCryptoAlg = 11 )
func (IpsecCryptoAlg) String ¶
func (x IpsecCryptoAlg) String() string
type IpsecIntegAlg ¶
type IpsecIntegAlg uint32
IpsecIntegAlg defines enum 'ipsec_integ_alg'.
const ( IPSEC_API_INTEG_ALG_NONE IpsecIntegAlg = 0 IPSEC_API_INTEG_ALG_MD5_96 IpsecIntegAlg = 1 IPSEC_API_INTEG_ALG_SHA1_96 IpsecIntegAlg = 2 IPSEC_API_INTEG_ALG_SHA_256_96 IpsecIntegAlg = 3 IPSEC_API_INTEG_ALG_SHA_256_128 IpsecIntegAlg = 4 IPSEC_API_INTEG_ALG_SHA_384_192 IpsecIntegAlg = 5 IPSEC_API_INTEG_ALG_SHA_512_256 IpsecIntegAlg = 6 )
func (IpsecIntegAlg) String ¶
func (x IpsecIntegAlg) String() string
type IpsecProto ¶
type IpsecProto uint32
IpsecProto defines enum 'ipsec_proto'.
const ( IPSEC_API_PROTO_ESP IpsecProto = 50 IPSEC_API_PROTO_AH IpsecProto = 51 )
func (IpsecProto) String ¶
func (x IpsecProto) String() string
type IpsecSadEntry ¶
type IpsecSadEntry struct { SadID uint32 `binapi:"u32,name=sad_id" json:"sad_id,omitempty"` Spi uint32 `binapi:"u32,name=spi" json:"spi,omitempty"` Protocol IpsecProto `binapi:"ipsec_proto,name=protocol" json:"protocol,omitempty"` CryptoAlgorithm IpsecCryptoAlg `binapi:"ipsec_crypto_alg,name=crypto_algorithm" json:"crypto_algorithm,omitempty"` CryptoKey Key `binapi:"key,name=crypto_key" json:"crypto_key,omitempty"` IntegrityAlgorithm IpsecIntegAlg `binapi:"ipsec_integ_alg,name=integrity_algorithm" json:"integrity_algorithm,omitempty"` IntegrityKey Key `binapi:"key,name=integrity_key" json:"integrity_key,omitempty"` Flags IpsecSadFlags `binapi:"ipsec_sad_flags,name=flags" json:"flags,omitempty"` TunnelSrc ip_types.Address `binapi:"address,name=tunnel_src" json:"tunnel_src,omitempty"` TunnelDst ip_types.Address `binapi:"address,name=tunnel_dst" json:"tunnel_dst,omitempty"` TxTableID uint32 `binapi:"u32,name=tx_table_id" json:"tx_table_id,omitempty"` Salt uint32 `binapi:"u32,name=salt" json:"salt,omitempty"` UDPSrcPort uint16 `binapi:"u16,name=udp_src_port,default=4500" json:"udp_src_port,omitempty"` UDPDstPort uint16 `binapi:"u16,name=udp_dst_port,default=4500" json:"udp_dst_port,omitempty"` }
IpsecSadEntry defines type 'ipsec_sad_entry'.
type IpsecSadEntryV2 ¶
type IpsecSadEntryV2 struct { SadID uint32 `binapi:"u32,name=sad_id" json:"sad_id,omitempty"` Spi uint32 `binapi:"u32,name=spi" json:"spi,omitempty"` Protocol IpsecProto `binapi:"ipsec_proto,name=protocol" json:"protocol,omitempty"` CryptoAlgorithm IpsecCryptoAlg `binapi:"ipsec_crypto_alg,name=crypto_algorithm" json:"crypto_algorithm,omitempty"` CryptoKey Key `binapi:"key,name=crypto_key" json:"crypto_key,omitempty"` IntegrityAlgorithm IpsecIntegAlg `binapi:"ipsec_integ_alg,name=integrity_algorithm" json:"integrity_algorithm,omitempty"` IntegrityKey Key `binapi:"key,name=integrity_key" json:"integrity_key,omitempty"` Flags IpsecSadFlags `binapi:"ipsec_sad_flags,name=flags" json:"flags,omitempty"` TunnelSrc ip_types.Address `binapi:"address,name=tunnel_src" json:"tunnel_src,omitempty"` TunnelDst ip_types.Address `binapi:"address,name=tunnel_dst" json:"tunnel_dst,omitempty"` TunnelFlags tunnel_types.TunnelEncapDecapFlags `binapi:"tunnel_encap_decap_flags,name=tunnel_flags" json:"tunnel_flags,omitempty"` Dscp ip_types.IPDscp `binapi:"ip_dscp,name=dscp" json:"dscp,omitempty"` TxTableID uint32 `binapi:"u32,name=tx_table_id" json:"tx_table_id,omitempty"` Salt uint32 `binapi:"u32,name=salt" json:"salt,omitempty"` UDPSrcPort uint16 `binapi:"u16,name=udp_src_port,default=4500" json:"udp_src_port,omitempty"` UDPDstPort uint16 `binapi:"u16,name=udp_dst_port,default=4500" json:"udp_dst_port,omitempty"` }
IpsecSadEntryV2 defines type 'ipsec_sad_entry_v2'.
type IpsecSadEntryV3 ¶
type IpsecSadEntryV3 struct { SadID uint32 `binapi:"u32,name=sad_id" json:"sad_id,omitempty"` Spi uint32 `binapi:"u32,name=spi" json:"spi,omitempty"` Protocol IpsecProto `binapi:"ipsec_proto,name=protocol" json:"protocol,omitempty"` CryptoAlgorithm IpsecCryptoAlg `binapi:"ipsec_crypto_alg,name=crypto_algorithm" json:"crypto_algorithm,omitempty"` CryptoKey Key `binapi:"key,name=crypto_key" json:"crypto_key,omitempty"` IntegrityAlgorithm IpsecIntegAlg `binapi:"ipsec_integ_alg,name=integrity_algorithm" json:"integrity_algorithm,omitempty"` IntegrityKey Key `binapi:"key,name=integrity_key" json:"integrity_key,omitempty"` Flags IpsecSadFlags `binapi:"ipsec_sad_flags,name=flags" json:"flags,omitempty"` Tunnel tunnel_types.Tunnel `binapi:"tunnel,name=tunnel" json:"tunnel,omitempty"` Salt uint32 `binapi:"u32,name=salt" json:"salt,omitempty"` UDPSrcPort uint16 `binapi:"u16,name=udp_src_port,default=4500" json:"udp_src_port,omitempty"` UDPDstPort uint16 `binapi:"u16,name=udp_dst_port,default=4500" json:"udp_dst_port,omitempty"` }
IpsecSadEntryV3 defines type 'ipsec_sad_entry_v3'.
type IpsecSadFlags ¶
type IpsecSadFlags uint32
IpsecSadFlags defines enum 'ipsec_sad_flags'.
const ( IPSEC_API_SAD_FLAG_NONE IpsecSadFlags = 0 IPSEC_API_SAD_FLAG_USE_ESN IpsecSadFlags = 1 IPSEC_API_SAD_FLAG_USE_ANTI_REPLAY IpsecSadFlags = 2 IPSEC_API_SAD_FLAG_IS_TUNNEL IpsecSadFlags = 4 IPSEC_API_SAD_FLAG_IS_TUNNEL_V6 IpsecSadFlags = 8 IPSEC_API_SAD_FLAG_UDP_ENCAP IpsecSadFlags = 16 IPSEC_API_SAD_FLAG_IS_INBOUND IpsecSadFlags = 64 IPSEC_API_SAD_FLAG_ASYNC IpsecSadFlags = 128 )
func (IpsecSadFlags) String ¶
func (x IpsecSadFlags) String() string
Click to show internal directories.
Click to hide internal directories.