aboutsummaryrefslogtreecommitdiffstats
path: root/binapi/ipsec_types/ipsec_types.ba.go
diff options
context:
space:
mode:
Diffstat (limited to 'binapi/ipsec_types/ipsec_types.ba.go')
-rw-r--r--binapi/ipsec_types/ipsec_types.ba.go72
1 files changed, 60 insertions, 12 deletions
diff --git a/binapi/ipsec_types/ipsec_types.ba.go b/binapi/ipsec_types/ipsec_types.ba.go
index 149c35f..b8c0848 100644
--- a/binapi/ipsec_types/ipsec_types.ba.go
+++ b/binapi/ipsec_types/ipsec_types.ba.go
@@ -1,21 +1,24 @@
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
-// binapi-generator: v0.4.0-dev
-// VPP: 20.05-release
+// binapi-generator: v0.6.0-dev
+// VPP: 22.02-release
// source: /usr/share/vpp/api/core/ipsec_types.api.json
// Package ipsec_types contains generated bindings for API file ipsec_types.api.
//
// Contents:
// 4 enums
-// 2 structs
+// 4 structs
//
package ipsec_types
import (
- api "git.fd.io/govpp.git/api"
- ip_types "git.fd.io/govpp.git/binapi/ip_types"
"strconv"
+
+ api "go.fd.io/govpp/api"
+ _ "go.fd.io/govpp/binapi/interface_types"
+ ip_types "go.fd.io/govpp/binapi/ip_types"
+ tunnel_types "go.fd.io/govpp/binapi/tunnel_types"
)
// This is a compile-time assertion to ensure that this generated file
@@ -24,6 +27,12 @@ import (
// GoVPP api package needs to be updated.
const _ = api.GoVppAPIPackageIsVersion2
+const (
+ APIFile = "ipsec_types"
+ APIVersion = "3.0.1"
+ VersionCrc = 0x48f74470
+)
+
// IpsecCryptoAlg defines enum 'ipsec_crypto_alg'.
type IpsecCryptoAlg uint32
@@ -161,17 +170,19 @@ const (
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
)
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",
+ 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,
@@ -181,6 +192,7 @@ var (
"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,
}
)
@@ -229,6 +241,42 @@ type IpsecSadEntry struct {
UDPDstPort uint16 `binapi:"u16,name=udp_dst_port,default=4500" json:"udp_dst_port,omitempty"`
}
+// IpsecSadEntryV2 defines type 'ipsec_sad_entry_v2'.
+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"`
+}
+
+// IpsecSadEntryV3 defines type 'ipsec_sad_entry_v3'.
+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"`
+}
+
// Key defines type 'key'.
type Key struct {
Length uint8 `binapi:"u8,name=length" json:"length,omitempty"`