ipsec

package
v0.0.0-...-f91f7f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ipsec is a generated VPP binary API for 'ipsec' module.

It consists of:

 9 enums
 6 aliases
10 types
 1 union
30 messages
15 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "ipsec"
	// APIVersion is the API version of this module.
	APIVersion = "3.0.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0xdc202cb1
)

Variables

View Source
var AddressFamily_name = map[uint32]string{
	0: "ADDRESS_IP4",
	1: "ADDRESS_IP6",
}
View Source
var AddressFamily_value = map[string]uint32{
	"ADDRESS_IP4": 0,
	"ADDRESS_IP6": 1,
}
View Source
var IPDscp_name = map[uint8]string{
	0:  "IP_API_DSCP_CS0",
	8:  "IP_API_DSCP_CS1",
	10: "IP_API_DSCP_AF11",
	12: "IP_API_DSCP_AF12",
	14: "IP_API_DSCP_AF13",
	16: "IP_API_DSCP_CS2",
	18: "IP_API_DSCP_AF21",
	20: "IP_API_DSCP_AF22",
	22: "IP_API_DSCP_AF23",
	24: "IP_API_DSCP_CS3",
	26: "IP_API_DSCP_AF31",
	28: "IP_API_DSCP_AF32",
	30: "IP_API_DSCP_AF33",
	32: "IP_API_DSCP_CS4",
	34: "IP_API_DSCP_AF41",
	36: "IP_API_DSCP_AF42",
	38: "IP_API_DSCP_AF43",
	40: "IP_API_DSCP_CS5",
	46: "IP_API_DSCP_EF",
	48: "IP_API_DSCP_CS6",
	50: "IP_API_DSCP_CS7",
}
View Source
var IPDscp_value = map[string]uint8{
	"IP_API_DSCP_CS0":  0,
	"IP_API_DSCP_CS1":  8,
	"IP_API_DSCP_AF11": 10,
	"IP_API_DSCP_AF12": 12,
	"IP_API_DSCP_AF13": 14,
	"IP_API_DSCP_CS2":  16,
	"IP_API_DSCP_AF21": 18,
	"IP_API_DSCP_AF22": 20,
	"IP_API_DSCP_AF23": 22,
	"IP_API_DSCP_CS3":  24,
	"IP_API_DSCP_AF31": 26,
	"IP_API_DSCP_AF32": 28,
	"IP_API_DSCP_AF33": 30,
	"IP_API_DSCP_CS4":  32,
	"IP_API_DSCP_AF41": 34,
	"IP_API_DSCP_AF42": 36,
	"IP_API_DSCP_AF43": 38,
	"IP_API_DSCP_CS5":  40,
	"IP_API_DSCP_EF":   46,
	"IP_API_DSCP_CS6":  48,
	"IP_API_DSCP_CS7":  50,
}
View Source
var IPEcn_name = map[uint8]string{
	0: "IP_API_ECN_NONE",
	1: "IP_API_ECN_ECT0",
	2: "IP_API_ECN_ECT1",
	3: "IP_API_ECN_CE",
}
View Source
var IPEcn_value = map[string]uint8{
	"IP_API_ECN_NONE": 0,
	"IP_API_ECN_ECT0": 1,
	"IP_API_ECN_ECT1": 2,
	"IP_API_ECN_CE":   3,
}
View Source
var IPProto_name = map[uint32]string{
	0:   "IP_API_PROTO_HOPOPT",
	1:   "IP_API_PROTO_ICMP",
	2:   "IP_API_PROTO_IGMP",
	6:   "IP_API_PROTO_TCP",
	17:  "IP_API_PROTO_UDP",
	47:  "IP_API_PROTO_GRE",
	50:  "IP_API_PROTO_AH",
	51:  "IP_API_PROTO_ESP",
	88:  "IP_API_PROTO_EIGRP",
	89:  "IP_API_PROTO_OSPF",
	132: "IP_API_PROTO_SCTP",
	255: "IP_API_PROTO_RESERVED",
}
View Source
var IPProto_value = map[string]uint32{
	"IP_API_PROTO_HOPOPT":   0,
	"IP_API_PROTO_ICMP":     1,
	"IP_API_PROTO_IGMP":     2,
	"IP_API_PROTO_TCP":      6,
	"IP_API_PROTO_UDP":      17,
	"IP_API_PROTO_GRE":      47,
	"IP_API_PROTO_AH":       50,
	"IP_API_PROTO_ESP":      51,
	"IP_API_PROTO_EIGRP":    88,
	"IP_API_PROTO_OSPF":     89,
	"IP_API_PROTO_SCTP":     132,
	"IP_API_PROTO_RESERVED": 255,
}
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",
}
View Source
var 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",
}
View Source
var 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{
	1: "IPSEC_API_PROTO_ESP",
	2: "IPSEC_API_PROTO_AH",
}
View Source
var IpsecProto_value = map[string]uint32{
	"IPSEC_API_PROTO_ESP": 1,
	"IPSEC_API_PROTO_AH":  2,
}
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",
}
View Source
var 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,
}
View Source
var IpsecSpdAction_name = map[uint32]string{
	0: "IPSEC_API_SPD_ACTION_BYPASS",
	1: "IPSEC_API_SPD_ACTION_DISCARD",
	2: "IPSEC_API_SPD_ACTION_RESOLVE",
	3: "IPSEC_API_SPD_ACTION_PROTECT",
}
View Source
var IpsecSpdAction_value = map[string]uint32{
	"IPSEC_API_SPD_ACTION_BYPASS":  0,
	"IPSEC_API_SPD_ACTION_DISCARD": 1,
	"IPSEC_API_SPD_ACTION_RESOLVE": 2,
	"IPSEC_API_SPD_ACTION_PROTECT": 3,
}

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type Address

type Address struct {
	Af AddressFamily
	Un AddressUnion
}

Address represents VPP binary API type 'address'.

func (*Address) GetTypeName

func (*Address) GetTypeName() string

type AddressFamily

type AddressFamily uint32

AddressFamily represents VPP binary API enum 'address_family'.

const (
	ADDRESS_IP4 AddressFamily = 0
	ADDRESS_IP6 AddressFamily = 1
)

func (AddressFamily) String

func (x AddressFamily) String() string

type AddressUnion

type AddressUnion struct {
	XXX_UnionData [16]byte
}

AddressUnion represents VPP binary API union 'address_union'.

func AddressUnionIP4

func AddressUnionIP4(a IP4Address) (u AddressUnion)

func AddressUnionIP6

func AddressUnionIP6(a IP6Address) (u AddressUnion)

func (*AddressUnion) GetIP4

func (u *AddressUnion) GetIP4() (a IP4Address)

func (*AddressUnion) GetIP6

func (u *AddressUnion) GetIP6() (a IP6Address)

func (*AddressUnion) GetTypeName

func (*AddressUnion) GetTypeName() string

func (*AddressUnion) SetIP4

func (u *AddressUnion) SetIP4(a IP4Address)

func (*AddressUnion) SetIP6

func (u *AddressUnion) SetIP6(a IP6Address)

type AddressWithPrefix

type AddressWithPrefix Prefix

AddressWithPrefix represents VPP binary API alias 'address_with_prefix'.

type IP4Address

type IP4Address [4]uint8

IP4Address represents VPP binary API alias 'ip4_address'.

type IP4AddressWithPrefix

type IP4AddressWithPrefix IP4Prefix

IP4AddressWithPrefix represents VPP binary API alias 'ip4_address_with_prefix'.

type IP4Prefix

type IP4Prefix struct {
	Address IP4Address
	Len     uint8
}

IP4Prefix represents VPP binary API type 'ip4_prefix'.

func (*IP4Prefix) GetTypeName

func (*IP4Prefix) GetTypeName() string

type IP6Address

type IP6Address [16]uint8

IP6Address represents VPP binary API alias 'ip6_address'.

type IP6AddressWithPrefix

type IP6AddressWithPrefix IP6Prefix

IP6AddressWithPrefix represents VPP binary API alias 'ip6_address_with_prefix'.

type IP6Prefix

type IP6Prefix struct {
	Address IP6Address
	Len     uint8
}

IP6Prefix represents VPP binary API type 'ip6_prefix'.

func (*IP6Prefix) GetTypeName

func (*IP6Prefix) GetTypeName() string

type IPDscp

type IPDscp uint8

IPDscp represents VPP binary API enum 'ip_dscp'.

const (
	IP_API_DSCP_CS0  IPDscp = 0
	IP_API_DSCP_CS1  IPDscp = 8
	IP_API_DSCP_AF11 IPDscp = 10
	IP_API_DSCP_AF12 IPDscp = 12
	IP_API_DSCP_AF13 IPDscp = 14
	IP_API_DSCP_CS2  IPDscp = 16
	IP_API_DSCP_AF21 IPDscp = 18
	IP_API_DSCP_AF22 IPDscp = 20
	IP_API_DSCP_AF23 IPDscp = 22
	IP_API_DSCP_CS3  IPDscp = 24
	IP_API_DSCP_AF31 IPDscp = 26
	IP_API_DSCP_AF32 IPDscp = 28
	IP_API_DSCP_AF33 IPDscp = 30
	IP_API_DSCP_CS4  IPDscp = 32
	IP_API_DSCP_AF41 IPDscp = 34
	IP_API_DSCP_AF42 IPDscp = 36
	IP_API_DSCP_AF43 IPDscp = 38
	IP_API_DSCP_CS5  IPDscp = 40
	IP_API_DSCP_EF   IPDscp = 46
	IP_API_DSCP_CS6  IPDscp = 48
	IP_API_DSCP_CS7  IPDscp = 50
)

func (IPDscp) String

func (x IPDscp) String() string

type IPEcn

type IPEcn uint8

IPEcn represents VPP binary API enum 'ip_ecn'.

const (
	IP_API_ECN_NONE IPEcn = 0
	IP_API_ECN_ECT0 IPEcn = 1
	IP_API_ECN_ECT1 IPEcn = 2
	IP_API_ECN_CE   IPEcn = 3
)

func (IPEcn) String

func (x IPEcn) String() string

type IPProto

type IPProto uint32

IPProto represents VPP binary API enum 'ip_proto'.

const (
	IP_API_PROTO_HOPOPT   IPProto = 0
	IP_API_PROTO_ICMP     IPProto = 1
	IP_API_PROTO_IGMP     IPProto = 2
	IP_API_PROTO_TCP      IPProto = 6
	IP_API_PROTO_UDP      IPProto = 17
	IP_API_PROTO_GRE      IPProto = 47
	IP_API_PROTO_AH       IPProto = 50
	IP_API_PROTO_ESP      IPProto = 51
	IP_API_PROTO_EIGRP    IPProto = 88
	IP_API_PROTO_OSPF     IPProto = 89
	IP_API_PROTO_SCTP     IPProto = 132
	IP_API_PROTO_RESERVED IPProto = 255
)

func (IPProto) String

func (x IPProto) String() string

type InterfaceIndex

type InterfaceIndex uint32

InterfaceIndex represents VPP binary API alias 'interface_index'.

type IpsecBackendDetails

type IpsecBackendDetails struct {
	Name     []byte `struc:"[128]byte"`
	Protocol IpsecProto
	Index    uint8
	Active   uint8
}

IpsecBackendDetails represents VPP binary API message 'ipsec_backend_details'.

func (*IpsecBackendDetails) GetCrcString

func (*IpsecBackendDetails) GetCrcString() string

func (*IpsecBackendDetails) GetMessageName

func (*IpsecBackendDetails) GetMessageName() string

func (*IpsecBackendDetails) GetMessageType

func (*IpsecBackendDetails) GetMessageType() api.MessageType

func (*IpsecBackendDetails) Reset

func (m *IpsecBackendDetails) Reset()

type IpsecBackendDump

type IpsecBackendDump struct{}

IpsecBackendDump represents VPP binary API message 'ipsec_backend_dump'.

func (*IpsecBackendDump) GetCrcString

func (*IpsecBackendDump) GetCrcString() string

func (*IpsecBackendDump) GetMessageName

func (*IpsecBackendDump) GetMessageName() string

func (*IpsecBackendDump) GetMessageType

func (*IpsecBackendDump) GetMessageType() api.MessageType

func (*IpsecBackendDump) Reset

func (m *IpsecBackendDump) Reset()

type IpsecCryptoAlg

type IpsecCryptoAlg uint32

IpsecCryptoAlg represents VPP binary API 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 represents VPP binary API 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 IpsecInterfaceAddDelSpd

type IpsecInterfaceAddDelSpd struct {
	IsAdd     uint8
	SwIfIndex uint32
	SpdID     uint32
}

IpsecInterfaceAddDelSpd represents VPP binary API message 'ipsec_interface_add_del_spd'.

func (*IpsecInterfaceAddDelSpd) GetCrcString

func (*IpsecInterfaceAddDelSpd) GetCrcString() string

func (*IpsecInterfaceAddDelSpd) GetMessageName

func (*IpsecInterfaceAddDelSpd) GetMessageName() string

func (*IpsecInterfaceAddDelSpd) GetMessageType

func (*IpsecInterfaceAddDelSpd) GetMessageType() api.MessageType

func (*IpsecInterfaceAddDelSpd) Reset

func (m *IpsecInterfaceAddDelSpd) Reset()

type IpsecInterfaceAddDelSpdReply

type IpsecInterfaceAddDelSpdReply struct {
	Retval int32
}

IpsecInterfaceAddDelSpdReply represents VPP binary API message 'ipsec_interface_add_del_spd_reply'.

func (*IpsecInterfaceAddDelSpdReply) GetCrcString

func (*IpsecInterfaceAddDelSpdReply) GetCrcString() string

func (*IpsecInterfaceAddDelSpdReply) GetMessageName

func (*IpsecInterfaceAddDelSpdReply) GetMessageName() string

func (*IpsecInterfaceAddDelSpdReply) GetMessageType

func (*IpsecInterfaceAddDelSpdReply) GetMessageType() api.MessageType

func (*IpsecInterfaceAddDelSpdReply) Reset

func (m *IpsecInterfaceAddDelSpdReply) Reset()

type IpsecProto

type IpsecProto uint32

IpsecProto represents VPP binary API enum 'ipsec_proto'.

const (
	IPSEC_API_PROTO_ESP IpsecProto = 1
	IPSEC_API_PROTO_AH  IpsecProto = 2
)

func (IpsecProto) String

func (x IpsecProto) String() string

type IpsecSaDetails

type IpsecSaDetails struct {
	Entry          IpsecSadEntry
	SwIfIndex      uint32
	Salt           uint32
	SeqOutbound    uint64
	LastSeqInbound uint64
	ReplayWindow   uint64
	TotalDataSize  uint64
}

IpsecSaDetails represents VPP binary API message 'ipsec_sa_details'.

func (*IpsecSaDetails) GetCrcString

func (*IpsecSaDetails) GetCrcString() string

func (*IpsecSaDetails) GetMessageName

func (*IpsecSaDetails) GetMessageName() string

func (*IpsecSaDetails) GetMessageType

func (*IpsecSaDetails) GetMessageType() api.MessageType

func (*IpsecSaDetails) Reset

func (m *IpsecSaDetails) Reset()

type IpsecSaDump

type IpsecSaDump struct {
	SaID uint32
}

IpsecSaDump represents VPP binary API message 'ipsec_sa_dump'.

func (*IpsecSaDump) GetCrcString

func (*IpsecSaDump) GetCrcString() string

func (*IpsecSaDump) GetMessageName

func (*IpsecSaDump) GetMessageName() string

func (*IpsecSaDump) GetMessageType

func (*IpsecSaDump) GetMessageType() api.MessageType

func (*IpsecSaDump) Reset

func (m *IpsecSaDump) Reset()

type IpsecSadEntry

type IpsecSadEntry struct {
	SadID              uint32
	Spi                uint32
	Protocol           IpsecProto
	CryptoAlgorithm    IpsecCryptoAlg
	CryptoKey          Key
	IntegrityAlgorithm IpsecIntegAlg
	IntegrityKey       Key
	Flags              IpsecSadFlags
	TunnelSrc          Address
	TunnelDst          Address
	TxTableID          uint32
	Salt               uint32
}

IpsecSadEntry represents VPP binary API type 'ipsec_sad_entry'.

func (*IpsecSadEntry) GetTypeName

func (*IpsecSadEntry) GetTypeName() string

type IpsecSadEntryAddDel

type IpsecSadEntryAddDel struct {
	IsAdd uint8
	Entry IpsecSadEntry
}

IpsecSadEntryAddDel represents VPP binary API message 'ipsec_sad_entry_add_del'.

func (*IpsecSadEntryAddDel) GetCrcString

func (*IpsecSadEntryAddDel) GetCrcString() string

func (*IpsecSadEntryAddDel) GetMessageName

func (*IpsecSadEntryAddDel) GetMessageName() string

func (*IpsecSadEntryAddDel) GetMessageType

func (*IpsecSadEntryAddDel) GetMessageType() api.MessageType

func (*IpsecSadEntryAddDel) Reset

func (m *IpsecSadEntryAddDel) Reset()

type IpsecSadEntryAddDelReply

type IpsecSadEntryAddDelReply struct {
	Retval    int32
	StatIndex uint32
}

IpsecSadEntryAddDelReply represents VPP binary API message 'ipsec_sad_entry_add_del_reply'.

func (*IpsecSadEntryAddDelReply) GetCrcString

func (*IpsecSadEntryAddDelReply) GetCrcString() string

func (*IpsecSadEntryAddDelReply) GetMessageName

func (*IpsecSadEntryAddDelReply) GetMessageName() string

func (*IpsecSadEntryAddDelReply) GetMessageType

func (*IpsecSadEntryAddDelReply) GetMessageType() api.MessageType

func (*IpsecSadEntryAddDelReply) Reset

func (m *IpsecSadEntryAddDelReply) Reset()

type IpsecSadFlags

type IpsecSadFlags uint32

IpsecSadFlags represents VPP binary API 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
)

func (IpsecSadFlags) String

func (x IpsecSadFlags) String() string

type IpsecSelectBackend

type IpsecSelectBackend struct {
	Protocol IpsecProto
	Index    uint8
}

IpsecSelectBackend represents VPP binary API message 'ipsec_select_backend'.

func (*IpsecSelectBackend) GetCrcString

func (*IpsecSelectBackend) GetCrcString() string

func (*IpsecSelectBackend) GetMessageName

func (*IpsecSelectBackend) GetMessageName() string

func (*IpsecSelectBackend) GetMessageType

func (*IpsecSelectBackend) GetMessageType() api.MessageType

func (*IpsecSelectBackend) Reset

func (m *IpsecSelectBackend) Reset()

type IpsecSelectBackendReply

type IpsecSelectBackendReply struct {
	Retval int32
}

IpsecSelectBackendReply represents VPP binary API message 'ipsec_select_backend_reply'.

func (*IpsecSelectBackendReply) GetCrcString

func (*IpsecSelectBackendReply) GetCrcString() string

func (*IpsecSelectBackendReply) GetMessageName

func (*IpsecSelectBackendReply) GetMessageName() string

func (*IpsecSelectBackendReply) GetMessageType

func (*IpsecSelectBackendReply) GetMessageType() api.MessageType

func (*IpsecSelectBackendReply) Reset

func (m *IpsecSelectBackendReply) Reset()

type IpsecSpdAction

type IpsecSpdAction uint32

IpsecSpdAction represents VPP binary API enum 'ipsec_spd_action'.

const (
	IPSEC_API_SPD_ACTION_BYPASS  IpsecSpdAction = 0
	IPSEC_API_SPD_ACTION_DISCARD IpsecSpdAction = 1
	IPSEC_API_SPD_ACTION_RESOLVE IpsecSpdAction = 2
	IPSEC_API_SPD_ACTION_PROTECT IpsecSpdAction = 3
)

func (IpsecSpdAction) String

func (x IpsecSpdAction) String() string

type IpsecSpdAddDel

type IpsecSpdAddDel struct {
	IsAdd uint8
	SpdID uint32
}

IpsecSpdAddDel represents VPP binary API message 'ipsec_spd_add_del'.

func (*IpsecSpdAddDel) GetCrcString

func (*IpsecSpdAddDel) GetCrcString() string

func (*IpsecSpdAddDel) GetMessageName

func (*IpsecSpdAddDel) GetMessageName() string

func (*IpsecSpdAddDel) GetMessageType

func (*IpsecSpdAddDel) GetMessageType() api.MessageType

func (*IpsecSpdAddDel) Reset

func (m *IpsecSpdAddDel) Reset()

type IpsecSpdAddDelReply

type IpsecSpdAddDelReply struct {
	Retval int32
}

IpsecSpdAddDelReply represents VPP binary API message 'ipsec_spd_add_del_reply'.

func (*IpsecSpdAddDelReply) GetCrcString

func (*IpsecSpdAddDelReply) GetCrcString() string

func (*IpsecSpdAddDelReply) GetMessageName

func (*IpsecSpdAddDelReply) GetMessageName() string

func (*IpsecSpdAddDelReply) GetMessageType

func (*IpsecSpdAddDelReply) GetMessageType() api.MessageType

func (*IpsecSpdAddDelReply) Reset

func (m *IpsecSpdAddDelReply) Reset()

type IpsecSpdDetails

type IpsecSpdDetails struct {
	Entry IpsecSpdEntry
}

IpsecSpdDetails represents VPP binary API message 'ipsec_spd_details'.

func (*IpsecSpdDetails) GetCrcString

func (*IpsecSpdDetails) GetCrcString() string

func (*IpsecSpdDetails) GetMessageName

func (*IpsecSpdDetails) GetMessageName() string

func (*IpsecSpdDetails) GetMessageType

func (*IpsecSpdDetails) GetMessageType() api.MessageType

func (*IpsecSpdDetails) Reset

func (m *IpsecSpdDetails) Reset()

type IpsecSpdDump

type IpsecSpdDump struct {
	SpdID uint32
	SaID  uint32
}

IpsecSpdDump represents VPP binary API message 'ipsec_spd_dump'.

func (*IpsecSpdDump) GetCrcString

func (*IpsecSpdDump) GetCrcString() string

func (*IpsecSpdDump) GetMessageName

func (*IpsecSpdDump) GetMessageName() string

func (*IpsecSpdDump) GetMessageType

func (*IpsecSpdDump) GetMessageType() api.MessageType

func (*IpsecSpdDump) Reset

func (m *IpsecSpdDump) Reset()

type IpsecSpdEntry

type IpsecSpdEntry struct {
	SpdID              uint32
	Priority           int32
	IsOutbound         uint8
	SaID               uint32
	Policy             IpsecSpdAction
	Protocol           uint8
	RemoteAddressStart Address
	RemoteAddressStop  Address
	LocalAddressStart  Address
	LocalAddressStop   Address
	RemotePortStart    uint16
	RemotePortStop     uint16
	LocalPortStart     uint16
	LocalPortStop      uint16
}

IpsecSpdEntry represents VPP binary API type 'ipsec_spd_entry'.

func (*IpsecSpdEntry) GetTypeName

func (*IpsecSpdEntry) GetTypeName() string

type IpsecSpdEntryAddDel

type IpsecSpdEntryAddDel struct {
	IsAdd uint8
	Entry IpsecSpdEntry
}

IpsecSpdEntryAddDel represents VPP binary API message 'ipsec_spd_entry_add_del'.

func (*IpsecSpdEntryAddDel) GetCrcString

func (*IpsecSpdEntryAddDel) GetCrcString() string

func (*IpsecSpdEntryAddDel) GetMessageName

func (*IpsecSpdEntryAddDel) GetMessageName() string

func (*IpsecSpdEntryAddDel) GetMessageType

func (*IpsecSpdEntryAddDel) GetMessageType() api.MessageType

func (*IpsecSpdEntryAddDel) Reset

func (m *IpsecSpdEntryAddDel) Reset()

type IpsecSpdEntryAddDelReply

type IpsecSpdEntryAddDelReply struct {
	Retval    int32
	StatIndex uint32
}

IpsecSpdEntryAddDelReply represents VPP binary API message 'ipsec_spd_entry_add_del_reply'.

func (*IpsecSpdEntryAddDelReply) GetCrcString

func (*IpsecSpdEntryAddDelReply) GetCrcString() string

func (*IpsecSpdEntryAddDelReply) GetMessageName

func (*IpsecSpdEntryAddDelReply) GetMessageName() string

func (*IpsecSpdEntryAddDelReply) GetMessageType

func (*IpsecSpdEntryAddDelReply) GetMessageType() api.MessageType

func (*IpsecSpdEntryAddDelReply) Reset

func (m *IpsecSpdEntryAddDelReply) Reset()

type IpsecSpdInterfaceDetails

type IpsecSpdInterfaceDetails struct {
	SpdIndex  uint32
	SwIfIndex uint32
}

IpsecSpdInterfaceDetails represents VPP binary API message 'ipsec_spd_interface_details'.

func (*IpsecSpdInterfaceDetails) GetCrcString

func (*IpsecSpdInterfaceDetails) GetCrcString() string

func (*IpsecSpdInterfaceDetails) GetMessageName

func (*IpsecSpdInterfaceDetails) GetMessageName() string

func (*IpsecSpdInterfaceDetails) GetMessageType

func (*IpsecSpdInterfaceDetails) GetMessageType() api.MessageType

func (*IpsecSpdInterfaceDetails) Reset

func (m *IpsecSpdInterfaceDetails) Reset()

type IpsecSpdInterfaceDump

type IpsecSpdInterfaceDump struct {
	SpdIndex      uint32
	SpdIndexValid uint8
}

IpsecSpdInterfaceDump represents VPP binary API message 'ipsec_spd_interface_dump'.

func (*IpsecSpdInterfaceDump) GetCrcString

func (*IpsecSpdInterfaceDump) GetCrcString() string

func (*IpsecSpdInterfaceDump) GetMessageName

func (*IpsecSpdInterfaceDump) GetMessageName() string

func (*IpsecSpdInterfaceDump) GetMessageType

func (*IpsecSpdInterfaceDump) GetMessageType() api.MessageType

func (*IpsecSpdInterfaceDump) Reset

func (m *IpsecSpdInterfaceDump) Reset()

type IpsecSpdsDetails

type IpsecSpdsDetails struct {
	SpdID     uint32
	Npolicies uint32
}

IpsecSpdsDetails represents VPP binary API message 'ipsec_spds_details'.

func (*IpsecSpdsDetails) GetCrcString

func (*IpsecSpdsDetails) GetCrcString() string

func (*IpsecSpdsDetails) GetMessageName

func (*IpsecSpdsDetails) GetMessageName() string

func (*IpsecSpdsDetails) GetMessageType

func (*IpsecSpdsDetails) GetMessageType() api.MessageType

func (*IpsecSpdsDetails) Reset

func (m *IpsecSpdsDetails) Reset()

type IpsecSpdsDump

type IpsecSpdsDump struct{}

IpsecSpdsDump represents VPP binary API message 'ipsec_spds_dump'.

func (*IpsecSpdsDump) GetCrcString

func (*IpsecSpdsDump) GetCrcString() string

func (*IpsecSpdsDump) GetMessageName

func (*IpsecSpdsDump) GetMessageName() string

func (*IpsecSpdsDump) GetMessageType

func (*IpsecSpdsDump) GetMessageType() api.MessageType

func (*IpsecSpdsDump) Reset

func (m *IpsecSpdsDump) Reset()

type IpsecTunnelIfAddDel

type IpsecTunnelIfAddDel struct {
	IsAdd              uint8
	Esn                uint8
	AntiReplay         uint8
	LocalIP            Address
	RemoteIP           Address
	LocalSpi           uint32
	RemoteSpi          uint32
	CryptoAlg          uint8
	LocalCryptoKeyLen  uint8
	LocalCryptoKey     []byte `struc:"[128]byte"`
	RemoteCryptoKeyLen uint8
	RemoteCryptoKey    []byte `struc:"[128]byte"`
	IntegAlg           uint8
	LocalIntegKeyLen   uint8
	LocalIntegKey      []byte `struc:"[128]byte"`
	RemoteIntegKeyLen  uint8
	RemoteIntegKey     []byte `struc:"[128]byte"`
	Renumber           uint8
	ShowInstance       uint32
	UDPEncap           uint8
	TxTableID          uint32
	Salt               uint32
}

IpsecTunnelIfAddDel represents VPP binary API message 'ipsec_tunnel_if_add_del'.

func (*IpsecTunnelIfAddDel) GetCrcString

func (*IpsecTunnelIfAddDel) GetCrcString() string

func (*IpsecTunnelIfAddDel) GetMessageName

func (*IpsecTunnelIfAddDel) GetMessageName() string

func (*IpsecTunnelIfAddDel) GetMessageType

func (*IpsecTunnelIfAddDel) GetMessageType() api.MessageType

func (*IpsecTunnelIfAddDel) Reset

func (m *IpsecTunnelIfAddDel) Reset()

type IpsecTunnelIfAddDelReply

type IpsecTunnelIfAddDelReply struct {
	Retval    int32
	SwIfIndex uint32
}

IpsecTunnelIfAddDelReply represents VPP binary API message 'ipsec_tunnel_if_add_del_reply'.

func (*IpsecTunnelIfAddDelReply) GetCrcString

func (*IpsecTunnelIfAddDelReply) GetCrcString() string

func (*IpsecTunnelIfAddDelReply) GetMessageName

func (*IpsecTunnelIfAddDelReply) GetMessageName() string

func (*IpsecTunnelIfAddDelReply) GetMessageType

func (*IpsecTunnelIfAddDelReply) GetMessageType() api.MessageType

func (*IpsecTunnelIfAddDelReply) Reset

func (m *IpsecTunnelIfAddDelReply) Reset()

type IpsecTunnelIfSetSa

type IpsecTunnelIfSetSa struct {
	SwIfIndex  uint32
	SaID       uint32
	IsOutbound uint8
}

IpsecTunnelIfSetSa represents VPP binary API message 'ipsec_tunnel_if_set_sa'.

func (*IpsecTunnelIfSetSa) GetCrcString

func (*IpsecTunnelIfSetSa) GetCrcString() string

func (*IpsecTunnelIfSetSa) GetMessageName

func (*IpsecTunnelIfSetSa) GetMessageName() string

func (*IpsecTunnelIfSetSa) GetMessageType

func (*IpsecTunnelIfSetSa) GetMessageType() api.MessageType

func (*IpsecTunnelIfSetSa) Reset

func (m *IpsecTunnelIfSetSa) Reset()

type IpsecTunnelIfSetSaReply

type IpsecTunnelIfSetSaReply struct {
	Retval int32
}

IpsecTunnelIfSetSaReply represents VPP binary API message 'ipsec_tunnel_if_set_sa_reply'.

func (*IpsecTunnelIfSetSaReply) GetCrcString

func (*IpsecTunnelIfSetSaReply) GetCrcString() string

func (*IpsecTunnelIfSetSaReply) GetMessageName

func (*IpsecTunnelIfSetSaReply) GetMessageName() string

func (*IpsecTunnelIfSetSaReply) GetMessageType

func (*IpsecTunnelIfSetSaReply) GetMessageType() api.MessageType

func (*IpsecTunnelIfSetSaReply) Reset

func (m *IpsecTunnelIfSetSaReply) Reset()

type IpsecTunnelProtect

type IpsecTunnelProtect struct {
	SwIfIndex InterfaceIndex
	SaOut     uint32
	NSaIn     uint8 `struc:"sizeof=SaIn"`
	SaIn      []uint32
}

IpsecTunnelProtect represents VPP binary API type 'ipsec_tunnel_protect'.

func (*IpsecTunnelProtect) GetTypeName

func (*IpsecTunnelProtect) GetTypeName() string

type IpsecTunnelProtectDel

type IpsecTunnelProtectDel struct {
	SwIfIndex InterfaceIndex
}

IpsecTunnelProtectDel represents VPP binary API message 'ipsec_tunnel_protect_del'.

func (*IpsecTunnelProtectDel) GetCrcString

func (*IpsecTunnelProtectDel) GetCrcString() string

func (*IpsecTunnelProtectDel) GetMessageName

func (*IpsecTunnelProtectDel) GetMessageName() string

func (*IpsecTunnelProtectDel) GetMessageType

func (*IpsecTunnelProtectDel) GetMessageType() api.MessageType

func (*IpsecTunnelProtectDel) Reset

func (m *IpsecTunnelProtectDel) Reset()

type IpsecTunnelProtectDelReply

type IpsecTunnelProtectDelReply struct {
	Retval int32
}

IpsecTunnelProtectDelReply represents VPP binary API message 'ipsec_tunnel_protect_del_reply'.

func (*IpsecTunnelProtectDelReply) GetCrcString

func (*IpsecTunnelProtectDelReply) GetCrcString() string

func (*IpsecTunnelProtectDelReply) GetMessageName

func (*IpsecTunnelProtectDelReply) GetMessageName() string

func (*IpsecTunnelProtectDelReply) GetMessageType

func (*IpsecTunnelProtectDelReply) GetMessageType() api.MessageType

func (*IpsecTunnelProtectDelReply) Reset

func (m *IpsecTunnelProtectDelReply) Reset()

type IpsecTunnelProtectDetails

type IpsecTunnelProtectDetails struct {
	Tun IpsecTunnelProtect
}

IpsecTunnelProtectDetails represents VPP binary API message 'ipsec_tunnel_protect_details'.

func (*IpsecTunnelProtectDetails) GetCrcString

func (*IpsecTunnelProtectDetails) GetCrcString() string

func (*IpsecTunnelProtectDetails) GetMessageName

func (*IpsecTunnelProtectDetails) GetMessageName() string

func (*IpsecTunnelProtectDetails) GetMessageType

func (*IpsecTunnelProtectDetails) GetMessageType() api.MessageType

func (*IpsecTunnelProtectDetails) Reset

func (m *IpsecTunnelProtectDetails) Reset()

type IpsecTunnelProtectDump

type IpsecTunnelProtectDump struct {
	SwIfIndex InterfaceIndex
}

IpsecTunnelProtectDump represents VPP binary API message 'ipsec_tunnel_protect_dump'.

func (*IpsecTunnelProtectDump) GetCrcString

func (*IpsecTunnelProtectDump) GetCrcString() string

func (*IpsecTunnelProtectDump) GetMessageName

func (*IpsecTunnelProtectDump) GetMessageName() string

func (*IpsecTunnelProtectDump) GetMessageType

func (*IpsecTunnelProtectDump) GetMessageType() api.MessageType

func (*IpsecTunnelProtectDump) Reset

func (m *IpsecTunnelProtectDump) Reset()

type IpsecTunnelProtectUpdate

type IpsecTunnelProtectUpdate struct {
	Tunnel IpsecTunnelProtect
}

IpsecTunnelProtectUpdate represents VPP binary API message 'ipsec_tunnel_protect_update'.

func (*IpsecTunnelProtectUpdate) GetCrcString

func (*IpsecTunnelProtectUpdate) GetCrcString() string

func (*IpsecTunnelProtectUpdate) GetMessageName

func (*IpsecTunnelProtectUpdate) GetMessageName() string

func (*IpsecTunnelProtectUpdate) GetMessageType

func (*IpsecTunnelProtectUpdate) GetMessageType() api.MessageType

func (*IpsecTunnelProtectUpdate) Reset

func (m *IpsecTunnelProtectUpdate) Reset()

type IpsecTunnelProtectUpdateReply

type IpsecTunnelProtectUpdateReply struct {
	Retval int32
}

IpsecTunnelProtectUpdateReply represents VPP binary API message 'ipsec_tunnel_protect_update_reply'.

func (*IpsecTunnelProtectUpdateReply) GetCrcString

func (*IpsecTunnelProtectUpdateReply) GetCrcString() string

func (*IpsecTunnelProtectUpdateReply) GetMessageName

func (*IpsecTunnelProtectUpdateReply) GetMessageName() string

func (*IpsecTunnelProtectUpdateReply) GetMessageType

func (*IpsecTunnelProtectUpdateReply) GetMessageType() api.MessageType

func (*IpsecTunnelProtectUpdateReply) Reset

func (m *IpsecTunnelProtectUpdateReply) Reset()

type Key

type Key struct {
	Length uint8
	Data   []byte `struc:"[128]byte"`
}

Key represents VPP binary API type 'key'.

func (*Key) GetTypeName

func (*Key) GetTypeName() string

type Mprefix

type Mprefix struct {
	Af               AddressFamily
	GrpAddressLength uint16
	GrpAddress       AddressUnion
	SrcAddress       AddressUnion
}

Mprefix represents VPP binary API type 'mprefix'.

func (*Mprefix) GetTypeName

func (*Mprefix) GetTypeName() string

type Prefix

type Prefix struct {
	Address Address
	Len     uint8
}

Prefix represents VPP binary API type 'prefix'.

func (*Prefix) GetTypeName

func (*Prefix) GetTypeName() string

type PrefixMatcher

type PrefixMatcher struct {
	Le uint8
	Ge uint8
}

PrefixMatcher represents VPP binary API type 'prefix_matcher'.

func (*PrefixMatcher) GetTypeName

func (*PrefixMatcher) GetTypeName() string

type RPCService

type RPCService interface {
	DumpIpsecBackend(ctx context.Context, in *IpsecBackendDump) (RPCService_DumpIpsecBackendClient, error)
	DumpIpsecSa(ctx context.Context, in *IpsecSaDump) (RPCService_DumpIpsecSaClient, error)
	DumpIpsecSpd(ctx context.Context, in *IpsecSpdDump) (RPCService_DumpIpsecSpdClient, error)
	DumpIpsecSpdInterface(ctx context.Context, in *IpsecSpdInterfaceDump) (RPCService_DumpIpsecSpdInterfaceClient, error)
	DumpIpsecSpds(ctx context.Context, in *IpsecSpdsDump) (RPCService_DumpIpsecSpdsClient, error)
	DumpIpsecTunnelProtect(ctx context.Context, in *IpsecTunnelProtectDump) (RPCService_DumpIpsecTunnelProtectClient, error)
	IpsecInterfaceAddDelSpd(ctx context.Context, in *IpsecInterfaceAddDelSpd) (*IpsecInterfaceAddDelSpdReply, error)
	IpsecSadEntryAddDel(ctx context.Context, in *IpsecSadEntryAddDel) (*IpsecSadEntryAddDelReply, error)
	IpsecSelectBackend(ctx context.Context, in *IpsecSelectBackend) (*IpsecSelectBackendReply, error)
	IpsecSpdAddDel(ctx context.Context, in *IpsecSpdAddDel) (*IpsecSpdAddDelReply, error)
	IpsecSpdEntryAddDel(ctx context.Context, in *IpsecSpdEntryAddDel) (*IpsecSpdEntryAddDelReply, error)
	IpsecTunnelIfAddDel(ctx context.Context, in *IpsecTunnelIfAddDel) (*IpsecTunnelIfAddDelReply, error)
	IpsecTunnelIfSetSa(ctx context.Context, in *IpsecTunnelIfSetSa) (*IpsecTunnelIfSetSaReply, error)
	IpsecTunnelProtectDel(ctx context.Context, in *IpsecTunnelProtectDel) (*IpsecTunnelProtectDelReply, error)
	IpsecTunnelProtectUpdate(ctx context.Context, in *IpsecTunnelProtectUpdate) (*IpsecTunnelProtectUpdateReply, error)
}

RPCService represents RPC service API for ipsec module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpIpsecBackendClient

type RPCService_DumpIpsecBackendClient interface {
	Recv() (*IpsecBackendDetails, error)
}

type RPCService_DumpIpsecSaClient

type RPCService_DumpIpsecSaClient interface {
	Recv() (*IpsecSaDetails, error)
}

type RPCService_DumpIpsecSpdClient

type RPCService_DumpIpsecSpdClient interface {
	Recv() (*IpsecSpdDetails, error)
}

type RPCService_DumpIpsecSpdInterfaceClient

type RPCService_DumpIpsecSpdInterfaceClient interface {
	Recv() (*IpsecSpdInterfaceDetails, error)
}

type RPCService_DumpIpsecSpdsClient

type RPCService_DumpIpsecSpdsClient interface {
	Recv() (*IpsecSpdsDetails, error)
}

type RPCService_DumpIpsecTunnelProtectClient

type RPCService_DumpIpsecTunnelProtectClient interface {
	Recv() (*IpsecTunnelProtectDetails, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL