aboutsummaryrefslogtreecommitdiffstats
path: root/binapi/ipsec_types
diff options
context:
space:
mode:
authormhalaj1 <matus.halaj@pantheon.tech>2021-08-26 13:10:48 +0200
committermhalaj1 <matus.halaj@pantheon.tech>2021-08-26 13:10:48 +0200
commitdebc52dea8a81417bb08ca5bb934c7876b6d65e0 (patch)
tree23909430d78d6b77c2b414814e843708a6bab08e /binapi/ipsec_types
parentc0da1f2999a6b08d003c0fed1a23e1ca60dd1571 (diff)
regenerate binapi
Signed-off-by: mhalaj1 <matus.halaj@pantheon.tech> Change-Id: I9bb6a5ca00aa542128bde0bfbbba7b57b9f16ed2
Diffstat (limited to 'binapi/ipsec_types')
-rw-r--r--binapi/ipsec_types/ipsec_types.ba.go61
1 files changed, 51 insertions, 10 deletions
diff --git a/binapi/ipsec_types/ipsec_types.ba.go b/binapi/ipsec_types/ipsec_types.ba.go
index aa83d09..5dd5e1d 100644
--- a/binapi/ipsec_types/ipsec_types.ba.go
+++ b/binapi/ipsec_types/ipsec_types.ba.go
@@ -1,14 +1,14 @@
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
-// binapi-generator: v0.4.0
-// VPP: 20.05.1-release
+// binapi-generator: v0.3.5-56-gc0da1f2-dirty
+// VPP: 21.06-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
@@ -16,7 +16,9 @@ import (
"strconv"
api "git.fd.io/govpp.git/api"
+ _ "git.fd.io/govpp.git/binapi/interface_types"
ip_types "git.fd.io/govpp.git/binapi/ip_types"
+ tunnel_types "git.fd.io/govpp.git/binapi/tunnel_types"
)
// This is a compile-time assertion to ensure that this generated file
@@ -162,17 +164,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,
@@ -182,6 +186,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,
}
)
@@ -230,6 +235,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"`