X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fipsec_types%2Fipsec_types.ba.go;h=94f8f569e08112112332d58034c01fd09def85b8;hb=66b2e881b96d9eff429d8136129f194a1d17da87;hp=4e7e29e7a64b2ff01af24c412c8e5eb1aad19a66;hpb=43cd23926d5eec359d4b554a4330e1aa596c76de;p=govpp.git diff --git a/binapi/ipsec_types/ipsec_types.ba.go b/binapi/ipsec_types/ipsec_types.ba.go index 4e7e29e..94f8f56 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-dev -// VPP: 20.05-release +// binapi-generator: v0.5.0 +// 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 @@ -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 @@ -25,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 @@ -162,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, @@ -182,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, } ) @@ -230,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"`