ikev2

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 ikev2 is a generated VPP binary API for 'ikev2' module.

It consists of:

10 enums
 6 aliases
 6 types
 1 union
36 messages
18 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "ikev2"
	// APIVersion is the API version of this module.
	APIVersion = "1.0.1"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x2ebaa2d8
)

Variables

View Source
var AddressFamily_name = map[uint8]string{
	0: "ADDRESS_IP4",
	1: "ADDRESS_IP6",
}
View Source
var AddressFamily_value = map[string]uint8{
	"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[uint8]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_ESP",
	51:  "IP_API_PROTO_AH",
	58:  "IP_API_PROTO_ICMP6",
	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]uint8{
	"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_ESP":      50,
	"IP_API_PROTO_AH":       51,
	"IP_API_PROTO_ICMP6":    58,
	"IP_API_PROTO_EIGRP":    88,
	"IP_API_PROTO_OSPF":     89,
	"IP_API_PROTO_SCTP":     132,
	"IP_API_PROTO_RESERVED": 255,
}
View Source
var IfStatusFlags_name = map[uint32]string{
	1: "IF_STATUS_API_FLAG_ADMIN_UP",
	2: "IF_STATUS_API_FLAG_LINK_UP",
}
View Source
var IfStatusFlags_value = map[string]uint32{
	"IF_STATUS_API_FLAG_ADMIN_UP": 1,
	"IF_STATUS_API_FLAG_LINK_UP":  2,
}
View Source
var IfType_name = map[uint32]string{
	0: "IF_API_TYPE_HARDWARE",
	1: "IF_API_TYPE_SUB",
	2: "IF_API_TYPE_P2P",
	3: "IF_API_TYPE_PIPE",
}
View Source
var IfType_value = map[string]uint32{
	"IF_API_TYPE_HARDWARE": 0,
	"IF_API_TYPE_SUB":      1,
	"IF_API_TYPE_P2P":      2,
	"IF_API_TYPE_PIPE":     3,
}
View Source
var LinkDuplex_name = map[uint32]string{
	0: "LINK_DUPLEX_API_UNKNOWN",
	1: "LINK_DUPLEX_API_HALF",
	2: "LINK_DUPLEX_API_FULL",
}
View Source
var LinkDuplex_value = map[string]uint32{
	"LINK_DUPLEX_API_UNKNOWN": 0,
	"LINK_DUPLEX_API_HALF":    1,
	"LINK_DUPLEX_API_FULL":    2,
}
View Source
var MtuProto_name = map[uint32]string{
	0: "MTU_PROTO_API_L3",
	1: "MTU_PROTO_API_IP4",
	2: "MTU_PROTO_API_IP6",
	3: "MTU_PROTO_API_MPLS",
}
View Source
var MtuProto_value = map[string]uint32{
	"MTU_PROTO_API_L3":   0,
	"MTU_PROTO_API_IP4":  1,
	"MTU_PROTO_API_IP6":  2,
	"MTU_PROTO_API_MPLS": 3,
}
View Source
var RxMode_name = map[uint32]string{
	0: "RX_MODE_API_UNKNOWN",
	1: "RX_MODE_API_POLLING",
	2: "RX_MODE_API_INTERRUPT",
	3: "RX_MODE_API_ADAPTIVE",
	4: "RX_MODE_API_DEFAULT",
}
View Source
var RxMode_value = map[string]uint32{
	"RX_MODE_API_UNKNOWN":   0,
	"RX_MODE_API_POLLING":   1,
	"RX_MODE_API_INTERRUPT": 2,
	"RX_MODE_API_ADAPTIVE":  3,
	"RX_MODE_API_DEFAULT":   4,
}
View Source
var SubIfFlags_name = map[uint32]string{
	1:   "SUB_IF_API_FLAG_NO_TAGS",
	2:   "SUB_IF_API_FLAG_ONE_TAG",
	4:   "SUB_IF_API_FLAG_TWO_TAGS",
	8:   "SUB_IF_API_FLAG_DOT1AD",
	16:  "SUB_IF_API_FLAG_EXACT_MATCH",
	32:  "SUB_IF_API_FLAG_DEFAULT",
	64:  "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY",
	128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY",
	254: "SUB_IF_API_FLAG_MASK_VNET",
	256: "SUB_IF_API_FLAG_DOT1AH",
}
View Source
var SubIfFlags_value = map[string]uint32{
	"SUB_IF_API_FLAG_NO_TAGS":           1,
	"SUB_IF_API_FLAG_ONE_TAG":           2,
	"SUB_IF_API_FLAG_TWO_TAGS":          4,
	"SUB_IF_API_FLAG_DOT1AD":            8,
	"SUB_IF_API_FLAG_EXACT_MATCH":       16,
	"SUB_IF_API_FLAG_DEFAULT":           32,
	"SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64,
	"SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128,
	"SUB_IF_API_FLAG_MASK_VNET":         254,
	"SUB_IF_API_FLAG_DOT1AH":            256,
}

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 uint8

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 uint8

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_ESP      IPProto = 50
	IP_API_PROTO_AH       IPProto = 51
	IP_API_PROTO_ICMP6    IPProto = 58
	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 IfStatusFlags

type IfStatusFlags uint32

IfStatusFlags represents VPP binary API enum 'if_status_flags'.

const (
	IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1
	IF_STATUS_API_FLAG_LINK_UP  IfStatusFlags = 2
)

func (IfStatusFlags) String

func (x IfStatusFlags) String() string

type IfType

type IfType uint32

IfType represents VPP binary API enum 'if_type'.

const (
	IF_API_TYPE_HARDWARE IfType = 0
	IF_API_TYPE_SUB      IfType = 1
	IF_API_TYPE_P2P      IfType = 2
	IF_API_TYPE_PIPE     IfType = 3
)

func (IfType) String

func (x IfType) String() string

type Ikev2InitiateDelChildSa

type Ikev2InitiateDelChildSa struct {
	Ispi uint32
}

Ikev2InitiateDelChildSa represents VPP binary API message 'ikev2_initiate_del_child_sa'.

func (*Ikev2InitiateDelChildSa) GetCrcString

func (*Ikev2InitiateDelChildSa) GetCrcString() string

func (*Ikev2InitiateDelChildSa) GetMessageName

func (*Ikev2InitiateDelChildSa) GetMessageName() string

func (*Ikev2InitiateDelChildSa) GetMessageType

func (*Ikev2InitiateDelChildSa) GetMessageType() api.MessageType

func (*Ikev2InitiateDelChildSa) Reset

func (m *Ikev2InitiateDelChildSa) Reset()

type Ikev2InitiateDelChildSaReply

type Ikev2InitiateDelChildSaReply struct {
	Retval int32
}

Ikev2InitiateDelChildSaReply represents VPP binary API message 'ikev2_initiate_del_child_sa_reply'.

func (*Ikev2InitiateDelChildSaReply) GetCrcString

func (*Ikev2InitiateDelChildSaReply) GetCrcString() string

func (*Ikev2InitiateDelChildSaReply) GetMessageName

func (*Ikev2InitiateDelChildSaReply) GetMessageName() string

func (*Ikev2InitiateDelChildSaReply) GetMessageType

func (*Ikev2InitiateDelChildSaReply) GetMessageType() api.MessageType

func (*Ikev2InitiateDelChildSaReply) Reset

func (m *Ikev2InitiateDelChildSaReply) Reset()

type Ikev2InitiateDelIkeSa

type Ikev2InitiateDelIkeSa struct {
	Ispi uint64
}

Ikev2InitiateDelIkeSa represents VPP binary API message 'ikev2_initiate_del_ike_sa'.

func (*Ikev2InitiateDelIkeSa) GetCrcString

func (*Ikev2InitiateDelIkeSa) GetCrcString() string

func (*Ikev2InitiateDelIkeSa) GetMessageName

func (*Ikev2InitiateDelIkeSa) GetMessageName() string

func (*Ikev2InitiateDelIkeSa) GetMessageType

func (*Ikev2InitiateDelIkeSa) GetMessageType() api.MessageType

func (*Ikev2InitiateDelIkeSa) Reset

func (m *Ikev2InitiateDelIkeSa) Reset()

type Ikev2InitiateDelIkeSaReply

type Ikev2InitiateDelIkeSaReply struct {
	Retval int32
}

Ikev2InitiateDelIkeSaReply represents VPP binary API message 'ikev2_initiate_del_ike_sa_reply'.

func (*Ikev2InitiateDelIkeSaReply) GetCrcString

func (*Ikev2InitiateDelIkeSaReply) GetCrcString() string

func (*Ikev2InitiateDelIkeSaReply) GetMessageName

func (*Ikev2InitiateDelIkeSaReply) GetMessageName() string

func (*Ikev2InitiateDelIkeSaReply) GetMessageType

func (*Ikev2InitiateDelIkeSaReply) GetMessageType() api.MessageType

func (*Ikev2InitiateDelIkeSaReply) Reset

func (m *Ikev2InitiateDelIkeSaReply) Reset()

type Ikev2InitiateRekeyChildSa

type Ikev2InitiateRekeyChildSa struct {
	Ispi uint32
}

Ikev2InitiateRekeyChildSa represents VPP binary API message 'ikev2_initiate_rekey_child_sa'.

func (*Ikev2InitiateRekeyChildSa) GetCrcString

func (*Ikev2InitiateRekeyChildSa) GetCrcString() string

func (*Ikev2InitiateRekeyChildSa) GetMessageName

func (*Ikev2InitiateRekeyChildSa) GetMessageName() string

func (*Ikev2InitiateRekeyChildSa) GetMessageType

func (*Ikev2InitiateRekeyChildSa) GetMessageType() api.MessageType

func (*Ikev2InitiateRekeyChildSa) Reset

func (m *Ikev2InitiateRekeyChildSa) Reset()

type Ikev2InitiateRekeyChildSaReply

type Ikev2InitiateRekeyChildSaReply struct {
	Retval int32
}

Ikev2InitiateRekeyChildSaReply represents VPP binary API message 'ikev2_initiate_rekey_child_sa_reply'.

func (*Ikev2InitiateRekeyChildSaReply) GetCrcString

func (*Ikev2InitiateRekeyChildSaReply) GetCrcString() string

func (*Ikev2InitiateRekeyChildSaReply) GetMessageName

func (*Ikev2InitiateRekeyChildSaReply) GetMessageName() string

func (*Ikev2InitiateRekeyChildSaReply) GetMessageType

func (*Ikev2InitiateRekeyChildSaReply) Reset

func (m *Ikev2InitiateRekeyChildSaReply) Reset()

type Ikev2InitiateSaInit

type Ikev2InitiateSaInit struct {
	Name string `struc:"[64]byte"`
}

Ikev2InitiateSaInit represents VPP binary API message 'ikev2_initiate_sa_init'.

func (*Ikev2InitiateSaInit) GetCrcString

func (*Ikev2InitiateSaInit) GetCrcString() string

func (*Ikev2InitiateSaInit) GetMessageName

func (*Ikev2InitiateSaInit) GetMessageName() string

func (*Ikev2InitiateSaInit) GetMessageType

func (*Ikev2InitiateSaInit) GetMessageType() api.MessageType

func (*Ikev2InitiateSaInit) Reset

func (m *Ikev2InitiateSaInit) Reset()

type Ikev2InitiateSaInitReply

type Ikev2InitiateSaInitReply struct {
	Retval int32
}

Ikev2InitiateSaInitReply represents VPP binary API message 'ikev2_initiate_sa_init_reply'.

func (*Ikev2InitiateSaInitReply) GetCrcString

func (*Ikev2InitiateSaInitReply) GetCrcString() string

func (*Ikev2InitiateSaInitReply) GetMessageName

func (*Ikev2InitiateSaInitReply) GetMessageName() string

func (*Ikev2InitiateSaInitReply) GetMessageType

func (*Ikev2InitiateSaInitReply) GetMessageType() api.MessageType

func (*Ikev2InitiateSaInitReply) Reset

func (m *Ikev2InitiateSaInitReply) Reset()

type Ikev2PluginGetVersion

type Ikev2PluginGetVersion struct{}

Ikev2PluginGetVersion represents VPP binary API message 'ikev2_plugin_get_version'.

func (*Ikev2PluginGetVersion) GetCrcString

func (*Ikev2PluginGetVersion) GetCrcString() string

func (*Ikev2PluginGetVersion) GetMessageName

func (*Ikev2PluginGetVersion) GetMessageName() string

func (*Ikev2PluginGetVersion) GetMessageType

func (*Ikev2PluginGetVersion) GetMessageType() api.MessageType

func (*Ikev2PluginGetVersion) Reset

func (m *Ikev2PluginGetVersion) Reset()

type Ikev2PluginGetVersionReply

type Ikev2PluginGetVersionReply struct {
	Major uint32
	Minor uint32
}

Ikev2PluginGetVersionReply represents VPP binary API message 'ikev2_plugin_get_version_reply'.

func (*Ikev2PluginGetVersionReply) GetCrcString

func (*Ikev2PluginGetVersionReply) GetCrcString() string

func (*Ikev2PluginGetVersionReply) GetMessageName

func (*Ikev2PluginGetVersionReply) GetMessageName() string

func (*Ikev2PluginGetVersionReply) GetMessageType

func (*Ikev2PluginGetVersionReply) GetMessageType() api.MessageType

func (*Ikev2PluginGetVersionReply) Reset

func (m *Ikev2PluginGetVersionReply) Reset()

type Ikev2ProfileAddDel

type Ikev2ProfileAddDel struct {
	Name  string `struc:"[64]byte"`
	IsAdd bool
}

Ikev2ProfileAddDel represents VPP binary API message 'ikev2_profile_add_del'.

func (*Ikev2ProfileAddDel) GetCrcString

func (*Ikev2ProfileAddDel) GetCrcString() string

func (*Ikev2ProfileAddDel) GetMessageName

func (*Ikev2ProfileAddDel) GetMessageName() string

func (*Ikev2ProfileAddDel) GetMessageType

func (*Ikev2ProfileAddDel) GetMessageType() api.MessageType

func (*Ikev2ProfileAddDel) Reset

func (m *Ikev2ProfileAddDel) Reset()

type Ikev2ProfileAddDelReply

type Ikev2ProfileAddDelReply struct {
	Retval int32
}

Ikev2ProfileAddDelReply represents VPP binary API message 'ikev2_profile_add_del_reply'.

func (*Ikev2ProfileAddDelReply) GetCrcString

func (*Ikev2ProfileAddDelReply) GetCrcString() string

func (*Ikev2ProfileAddDelReply) GetMessageName

func (*Ikev2ProfileAddDelReply) GetMessageName() string

func (*Ikev2ProfileAddDelReply) GetMessageType

func (*Ikev2ProfileAddDelReply) GetMessageType() api.MessageType

func (*Ikev2ProfileAddDelReply) Reset

func (m *Ikev2ProfileAddDelReply) Reset()

type Ikev2ProfileSetAuth

type Ikev2ProfileSetAuth struct {
	Name       string `struc:"[64]byte"`
	AuthMethod uint8
	IsHex      bool
	DataLen    uint32 `struc:"sizeof=Data"`
	Data       []byte
}

Ikev2ProfileSetAuth represents VPP binary API message 'ikev2_profile_set_auth'.

func (*Ikev2ProfileSetAuth) GetCrcString

func (*Ikev2ProfileSetAuth) GetCrcString() string

func (*Ikev2ProfileSetAuth) GetMessageName

func (*Ikev2ProfileSetAuth) GetMessageName() string

func (*Ikev2ProfileSetAuth) GetMessageType

func (*Ikev2ProfileSetAuth) GetMessageType() api.MessageType

func (*Ikev2ProfileSetAuth) Reset

func (m *Ikev2ProfileSetAuth) Reset()

type Ikev2ProfileSetAuthReply

type Ikev2ProfileSetAuthReply struct {
	Retval int32
}

Ikev2ProfileSetAuthReply represents VPP binary API message 'ikev2_profile_set_auth_reply'.

func (*Ikev2ProfileSetAuthReply) GetCrcString

func (*Ikev2ProfileSetAuthReply) GetCrcString() string

func (*Ikev2ProfileSetAuthReply) GetMessageName

func (*Ikev2ProfileSetAuthReply) GetMessageName() string

func (*Ikev2ProfileSetAuthReply) GetMessageType

func (*Ikev2ProfileSetAuthReply) GetMessageType() api.MessageType

func (*Ikev2ProfileSetAuthReply) Reset

func (m *Ikev2ProfileSetAuthReply) Reset()

type Ikev2ProfileSetID

type Ikev2ProfileSetID struct {
	Name    string `struc:"[64]byte"`
	IsLocal bool
	IDType  uint8
	DataLen uint32 `struc:"sizeof=Data"`
	Data    []byte
}

Ikev2ProfileSetID represents VPP binary API message 'ikev2_profile_set_id'.

func (*Ikev2ProfileSetID) GetCrcString

func (*Ikev2ProfileSetID) GetCrcString() string

func (*Ikev2ProfileSetID) GetMessageName

func (*Ikev2ProfileSetID) GetMessageName() string

func (*Ikev2ProfileSetID) GetMessageType

func (*Ikev2ProfileSetID) GetMessageType() api.MessageType

func (*Ikev2ProfileSetID) Reset

func (m *Ikev2ProfileSetID) Reset()

type Ikev2ProfileSetIDReply

type Ikev2ProfileSetIDReply struct {
	Retval int32
}

Ikev2ProfileSetIDReply represents VPP binary API message 'ikev2_profile_set_id_reply'.

func (*Ikev2ProfileSetIDReply) GetCrcString

func (*Ikev2ProfileSetIDReply) GetCrcString() string

func (*Ikev2ProfileSetIDReply) GetMessageName

func (*Ikev2ProfileSetIDReply) GetMessageName() string

func (*Ikev2ProfileSetIDReply) GetMessageType

func (*Ikev2ProfileSetIDReply) GetMessageType() api.MessageType

func (*Ikev2ProfileSetIDReply) Reset

func (m *Ikev2ProfileSetIDReply) Reset()

type Ikev2ProfileSetIpsecUDPPort

type Ikev2ProfileSetIpsecUDPPort struct {
	IsSet uint8
	Port  uint16
	Name  string `struc:"[64]byte"`
}

Ikev2ProfileSetIpsecUDPPort represents VPP binary API message 'ikev2_profile_set_ipsec_udp_port'.

func (*Ikev2ProfileSetIpsecUDPPort) GetCrcString

func (*Ikev2ProfileSetIpsecUDPPort) GetCrcString() string

func (*Ikev2ProfileSetIpsecUDPPort) GetMessageName

func (*Ikev2ProfileSetIpsecUDPPort) GetMessageName() string

func (*Ikev2ProfileSetIpsecUDPPort) GetMessageType

func (*Ikev2ProfileSetIpsecUDPPort) GetMessageType() api.MessageType

func (*Ikev2ProfileSetIpsecUDPPort) Reset

func (m *Ikev2ProfileSetIpsecUDPPort) Reset()

type Ikev2ProfileSetIpsecUDPPortReply

type Ikev2ProfileSetIpsecUDPPortReply struct {
	Retval int32
}

Ikev2ProfileSetIpsecUDPPortReply represents VPP binary API message 'ikev2_profile_set_ipsec_udp_port_reply'.

func (*Ikev2ProfileSetIpsecUDPPortReply) GetCrcString

func (*Ikev2ProfileSetIpsecUDPPortReply) GetCrcString() string

func (*Ikev2ProfileSetIpsecUDPPortReply) GetMessageName

func (*Ikev2ProfileSetIpsecUDPPortReply) GetMessageName() string

func (*Ikev2ProfileSetIpsecUDPPortReply) GetMessageType

func (*Ikev2ProfileSetIpsecUDPPortReply) Reset

type Ikev2ProfileSetLiveness

type Ikev2ProfileSetLiveness struct {
	Period     uint32
	MaxRetries uint32
}

Ikev2ProfileSetLiveness represents VPP binary API message 'ikev2_profile_set_liveness'.

func (*Ikev2ProfileSetLiveness) GetCrcString

func (*Ikev2ProfileSetLiveness) GetCrcString() string

func (*Ikev2ProfileSetLiveness) GetMessageName

func (*Ikev2ProfileSetLiveness) GetMessageName() string

func (*Ikev2ProfileSetLiveness) GetMessageType

func (*Ikev2ProfileSetLiveness) GetMessageType() api.MessageType

func (*Ikev2ProfileSetLiveness) Reset

func (m *Ikev2ProfileSetLiveness) Reset()

type Ikev2ProfileSetLivenessReply

type Ikev2ProfileSetLivenessReply struct {
	Retval int32
}

Ikev2ProfileSetLivenessReply represents VPP binary API message 'ikev2_profile_set_liveness_reply'.

func (*Ikev2ProfileSetLivenessReply) GetCrcString

func (*Ikev2ProfileSetLivenessReply) GetCrcString() string

func (*Ikev2ProfileSetLivenessReply) GetMessageName

func (*Ikev2ProfileSetLivenessReply) GetMessageName() string

func (*Ikev2ProfileSetLivenessReply) GetMessageType

func (*Ikev2ProfileSetLivenessReply) GetMessageType() api.MessageType

func (*Ikev2ProfileSetLivenessReply) Reset

func (m *Ikev2ProfileSetLivenessReply) Reset()

type Ikev2ProfileSetTs

type Ikev2ProfileSetTs struct {
	Name      string `struc:"[64]byte"`
	IsLocal   bool
	Proto     uint8
	StartPort uint16
	EndPort   uint16
	StartAddr uint32
	EndAddr   uint32
}

Ikev2ProfileSetTs represents VPP binary API message 'ikev2_profile_set_ts'.

func (*Ikev2ProfileSetTs) GetCrcString

func (*Ikev2ProfileSetTs) GetCrcString() string

func (*Ikev2ProfileSetTs) GetMessageName

func (*Ikev2ProfileSetTs) GetMessageName() string

func (*Ikev2ProfileSetTs) GetMessageType

func (*Ikev2ProfileSetTs) GetMessageType() api.MessageType

func (*Ikev2ProfileSetTs) Reset

func (m *Ikev2ProfileSetTs) Reset()

type Ikev2ProfileSetTsReply

type Ikev2ProfileSetTsReply struct {
	Retval int32
}

Ikev2ProfileSetTsReply represents VPP binary API message 'ikev2_profile_set_ts_reply'.

func (*Ikev2ProfileSetTsReply) GetCrcString

func (*Ikev2ProfileSetTsReply) GetCrcString() string

func (*Ikev2ProfileSetTsReply) GetMessageName

func (*Ikev2ProfileSetTsReply) GetMessageName() string

func (*Ikev2ProfileSetTsReply) GetMessageType

func (*Ikev2ProfileSetTsReply) GetMessageType() api.MessageType

func (*Ikev2ProfileSetTsReply) Reset

func (m *Ikev2ProfileSetTsReply) Reset()

type Ikev2ProfileSetUDPEncap

type Ikev2ProfileSetUDPEncap struct {
	Name string `struc:"[64]byte"`
}

Ikev2ProfileSetUDPEncap represents VPP binary API message 'ikev2_profile_set_udp_encap'.

func (*Ikev2ProfileSetUDPEncap) GetCrcString

func (*Ikev2ProfileSetUDPEncap) GetCrcString() string

func (*Ikev2ProfileSetUDPEncap) GetMessageName

func (*Ikev2ProfileSetUDPEncap) GetMessageName() string

func (*Ikev2ProfileSetUDPEncap) GetMessageType

func (*Ikev2ProfileSetUDPEncap) GetMessageType() api.MessageType

func (*Ikev2ProfileSetUDPEncap) Reset

func (m *Ikev2ProfileSetUDPEncap) Reset()

type Ikev2ProfileSetUDPEncapReply

type Ikev2ProfileSetUDPEncapReply struct {
	Retval int32
}

Ikev2ProfileSetUDPEncapReply represents VPP binary API message 'ikev2_profile_set_udp_encap_reply'.

func (*Ikev2ProfileSetUDPEncapReply) GetCrcString

func (*Ikev2ProfileSetUDPEncapReply) GetCrcString() string

func (*Ikev2ProfileSetUDPEncapReply) GetMessageName

func (*Ikev2ProfileSetUDPEncapReply) GetMessageName() string

func (*Ikev2ProfileSetUDPEncapReply) GetMessageType

func (*Ikev2ProfileSetUDPEncapReply) GetMessageType() api.MessageType

func (*Ikev2ProfileSetUDPEncapReply) Reset

func (m *Ikev2ProfileSetUDPEncapReply) Reset()

type Ikev2SetEspTransforms

type Ikev2SetEspTransforms struct {
	Name          string `struc:"[64]byte"`
	CryptoAlg     uint32
	CryptoKeySize uint32
	IntegAlg      uint32
	DhGroup       uint32
}

Ikev2SetEspTransforms represents VPP binary API message 'ikev2_set_esp_transforms'.

func (*Ikev2SetEspTransforms) GetCrcString

func (*Ikev2SetEspTransforms) GetCrcString() string

func (*Ikev2SetEspTransforms) GetMessageName

func (*Ikev2SetEspTransforms) GetMessageName() string

func (*Ikev2SetEspTransforms) GetMessageType

func (*Ikev2SetEspTransforms) GetMessageType() api.MessageType

func (*Ikev2SetEspTransforms) Reset

func (m *Ikev2SetEspTransforms) Reset()

type Ikev2SetEspTransformsReply

type Ikev2SetEspTransformsReply struct {
	Retval int32
}

Ikev2SetEspTransformsReply represents VPP binary API message 'ikev2_set_esp_transforms_reply'.

func (*Ikev2SetEspTransformsReply) GetCrcString

func (*Ikev2SetEspTransformsReply) GetCrcString() string

func (*Ikev2SetEspTransformsReply) GetMessageName

func (*Ikev2SetEspTransformsReply) GetMessageName() string

func (*Ikev2SetEspTransformsReply) GetMessageType

func (*Ikev2SetEspTransformsReply) GetMessageType() api.MessageType

func (*Ikev2SetEspTransformsReply) Reset

func (m *Ikev2SetEspTransformsReply) Reset()

type Ikev2SetIkeTransforms

type Ikev2SetIkeTransforms struct {
	Name          string `struc:"[64]byte"`
	CryptoAlg     uint32
	CryptoKeySize uint32
	IntegAlg      uint32
	DhGroup       uint32
}

Ikev2SetIkeTransforms represents VPP binary API message 'ikev2_set_ike_transforms'.

func (*Ikev2SetIkeTransforms) GetCrcString

func (*Ikev2SetIkeTransforms) GetCrcString() string

func (*Ikev2SetIkeTransforms) GetMessageName

func (*Ikev2SetIkeTransforms) GetMessageName() string

func (*Ikev2SetIkeTransforms) GetMessageType

func (*Ikev2SetIkeTransforms) GetMessageType() api.MessageType

func (*Ikev2SetIkeTransforms) Reset

func (m *Ikev2SetIkeTransforms) Reset()

type Ikev2SetIkeTransformsReply

type Ikev2SetIkeTransformsReply struct {
	Retval int32
}

Ikev2SetIkeTransformsReply represents VPP binary API message 'ikev2_set_ike_transforms_reply'.

func (*Ikev2SetIkeTransformsReply) GetCrcString

func (*Ikev2SetIkeTransformsReply) GetCrcString() string

func (*Ikev2SetIkeTransformsReply) GetMessageName

func (*Ikev2SetIkeTransformsReply) GetMessageName() string

func (*Ikev2SetIkeTransformsReply) GetMessageType

func (*Ikev2SetIkeTransformsReply) GetMessageType() api.MessageType

func (*Ikev2SetIkeTransformsReply) Reset

func (m *Ikev2SetIkeTransformsReply) Reset()

type Ikev2SetLocalKey

type Ikev2SetLocalKey struct {
	KeyFile string `struc:"[256]byte"`
}

Ikev2SetLocalKey represents VPP binary API message 'ikev2_set_local_key'.

func (*Ikev2SetLocalKey) GetCrcString

func (*Ikev2SetLocalKey) GetCrcString() string

func (*Ikev2SetLocalKey) GetMessageName

func (*Ikev2SetLocalKey) GetMessageName() string

func (*Ikev2SetLocalKey) GetMessageType

func (*Ikev2SetLocalKey) GetMessageType() api.MessageType

func (*Ikev2SetLocalKey) Reset

func (m *Ikev2SetLocalKey) Reset()

type Ikev2SetLocalKeyReply

type Ikev2SetLocalKeyReply struct {
	Retval int32
}

Ikev2SetLocalKeyReply represents VPP binary API message 'ikev2_set_local_key_reply'.

func (*Ikev2SetLocalKeyReply) GetCrcString

func (*Ikev2SetLocalKeyReply) GetCrcString() string

func (*Ikev2SetLocalKeyReply) GetMessageName

func (*Ikev2SetLocalKeyReply) GetMessageName() string

func (*Ikev2SetLocalKeyReply) GetMessageType

func (*Ikev2SetLocalKeyReply) GetMessageType() api.MessageType

func (*Ikev2SetLocalKeyReply) Reset

func (m *Ikev2SetLocalKeyReply) Reset()

type Ikev2SetResponder

type Ikev2SetResponder struct {
	Name      string `struc:"[64]byte"`
	SwIfIndex InterfaceIndex
	Address   IP4Address
}

Ikev2SetResponder represents VPP binary API message 'ikev2_set_responder'.

func (*Ikev2SetResponder) GetCrcString

func (*Ikev2SetResponder) GetCrcString() string

func (*Ikev2SetResponder) GetMessageName

func (*Ikev2SetResponder) GetMessageName() string

func (*Ikev2SetResponder) GetMessageType

func (*Ikev2SetResponder) GetMessageType() api.MessageType

func (*Ikev2SetResponder) Reset

func (m *Ikev2SetResponder) Reset()

type Ikev2SetResponderReply

type Ikev2SetResponderReply struct {
	Retval int32
}

Ikev2SetResponderReply represents VPP binary API message 'ikev2_set_responder_reply'.

func (*Ikev2SetResponderReply) GetCrcString

func (*Ikev2SetResponderReply) GetCrcString() string

func (*Ikev2SetResponderReply) GetMessageName

func (*Ikev2SetResponderReply) GetMessageName() string

func (*Ikev2SetResponderReply) GetMessageType

func (*Ikev2SetResponderReply) GetMessageType() api.MessageType

func (*Ikev2SetResponderReply) Reset

func (m *Ikev2SetResponderReply) Reset()

type Ikev2SetSaLifetime

type Ikev2SetSaLifetime struct {
	Name            string `struc:"[64]byte"`
	Lifetime        uint64
	LifetimeJitter  uint32
	Handover        uint32
	LifetimeMaxdata uint64
}

Ikev2SetSaLifetime represents VPP binary API message 'ikev2_set_sa_lifetime'.

func (*Ikev2SetSaLifetime) GetCrcString

func (*Ikev2SetSaLifetime) GetCrcString() string

func (*Ikev2SetSaLifetime) GetMessageName

func (*Ikev2SetSaLifetime) GetMessageName() string

func (*Ikev2SetSaLifetime) GetMessageType

func (*Ikev2SetSaLifetime) GetMessageType() api.MessageType

func (*Ikev2SetSaLifetime) Reset

func (m *Ikev2SetSaLifetime) Reset()

type Ikev2SetSaLifetimeReply

type Ikev2SetSaLifetimeReply struct {
	Retval int32
}

Ikev2SetSaLifetimeReply represents VPP binary API message 'ikev2_set_sa_lifetime_reply'.

func (*Ikev2SetSaLifetimeReply) GetCrcString

func (*Ikev2SetSaLifetimeReply) GetCrcString() string

func (*Ikev2SetSaLifetimeReply) GetMessageName

func (*Ikev2SetSaLifetimeReply) GetMessageName() string

func (*Ikev2SetSaLifetimeReply) GetMessageType

func (*Ikev2SetSaLifetimeReply) GetMessageType() api.MessageType

func (*Ikev2SetSaLifetimeReply) Reset

func (m *Ikev2SetSaLifetimeReply) Reset()

type Ikev2SetTunnelInterface

type Ikev2SetTunnelInterface struct {
	Name      string `struc:"[64]byte"`
	SwIfIndex InterfaceIndex
}

Ikev2SetTunnelInterface represents VPP binary API message 'ikev2_set_tunnel_interface'.

func (*Ikev2SetTunnelInterface) GetCrcString

func (*Ikev2SetTunnelInterface) GetCrcString() string

func (*Ikev2SetTunnelInterface) GetMessageName

func (*Ikev2SetTunnelInterface) GetMessageName() string

func (*Ikev2SetTunnelInterface) GetMessageType

func (*Ikev2SetTunnelInterface) GetMessageType() api.MessageType

func (*Ikev2SetTunnelInterface) Reset

func (m *Ikev2SetTunnelInterface) Reset()

type Ikev2SetTunnelInterfaceReply

type Ikev2SetTunnelInterfaceReply struct {
	Retval int32
}

Ikev2SetTunnelInterfaceReply represents VPP binary API message 'ikev2_set_tunnel_interface_reply'.

func (*Ikev2SetTunnelInterfaceReply) GetCrcString

func (*Ikev2SetTunnelInterfaceReply) GetCrcString() string

func (*Ikev2SetTunnelInterfaceReply) GetMessageName

func (*Ikev2SetTunnelInterfaceReply) GetMessageName() string

func (*Ikev2SetTunnelInterfaceReply) GetMessageType

func (*Ikev2SetTunnelInterfaceReply) GetMessageType() api.MessageType

func (*Ikev2SetTunnelInterfaceReply) Reset

func (m *Ikev2SetTunnelInterfaceReply) Reset()

type InterfaceIndex

type InterfaceIndex uint32

InterfaceIndex represents VPP binary API alias 'interface_index'.

type LinkDuplex

type LinkDuplex uint32

LinkDuplex represents VPP binary API enum 'link_duplex'.

const (
	LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0
	LINK_DUPLEX_API_HALF    LinkDuplex = 1
	LINK_DUPLEX_API_FULL    LinkDuplex = 2
)

func (LinkDuplex) String

func (x LinkDuplex) String() 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 MtuProto

type MtuProto uint32

MtuProto represents VPP binary API enum 'mtu_proto'.

const (
	MTU_PROTO_API_L3   MtuProto = 0
	MTU_PROTO_API_IP4  MtuProto = 1
	MTU_PROTO_API_IP6  MtuProto = 2
	MTU_PROTO_API_MPLS MtuProto = 3
)

func (MtuProto) String

func (x MtuProto) String() 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 {
	Ikev2InitiateDelChildSa(ctx context.Context, in *Ikev2InitiateDelChildSa) (*Ikev2InitiateDelChildSaReply, error)
	Ikev2InitiateDelIkeSa(ctx context.Context, in *Ikev2InitiateDelIkeSa) (*Ikev2InitiateDelIkeSaReply, error)
	Ikev2InitiateRekeyChildSa(ctx context.Context, in *Ikev2InitiateRekeyChildSa) (*Ikev2InitiateRekeyChildSaReply, error)
	Ikev2InitiateSaInit(ctx context.Context, in *Ikev2InitiateSaInit) (*Ikev2InitiateSaInitReply, error)
	Ikev2PluginGetVersion(ctx context.Context, in *Ikev2PluginGetVersion) (*Ikev2PluginGetVersionReply, error)
	Ikev2ProfileAddDel(ctx context.Context, in *Ikev2ProfileAddDel) (*Ikev2ProfileAddDelReply, error)
	Ikev2ProfileSetAuth(ctx context.Context, in *Ikev2ProfileSetAuth) (*Ikev2ProfileSetAuthReply, error)
	Ikev2ProfileSetID(ctx context.Context, in *Ikev2ProfileSetID) (*Ikev2ProfileSetIDReply, error)
	Ikev2ProfileSetIpsecUDPPort(ctx context.Context, in *Ikev2ProfileSetIpsecUDPPort) (*Ikev2ProfileSetIpsecUDPPortReply, error)
	Ikev2ProfileSetLiveness(ctx context.Context, in *Ikev2ProfileSetLiveness) (*Ikev2ProfileSetLivenessReply, error)
	Ikev2ProfileSetTs(ctx context.Context, in *Ikev2ProfileSetTs) (*Ikev2ProfileSetTsReply, error)
	Ikev2ProfileSetUDPEncap(ctx context.Context, in *Ikev2ProfileSetUDPEncap) (*Ikev2ProfileSetUDPEncapReply, error)
	Ikev2SetEspTransforms(ctx context.Context, in *Ikev2SetEspTransforms) (*Ikev2SetEspTransformsReply, error)
	Ikev2SetIkeTransforms(ctx context.Context, in *Ikev2SetIkeTransforms) (*Ikev2SetIkeTransformsReply, error)
	Ikev2SetLocalKey(ctx context.Context, in *Ikev2SetLocalKey) (*Ikev2SetLocalKeyReply, error)
	Ikev2SetResponder(ctx context.Context, in *Ikev2SetResponder) (*Ikev2SetResponderReply, error)
	Ikev2SetSaLifetime(ctx context.Context, in *Ikev2SetSaLifetime) (*Ikev2SetSaLifetimeReply, error)
	Ikev2SetTunnelInterface(ctx context.Context, in *Ikev2SetTunnelInterface) (*Ikev2SetTunnelInterfaceReply, error)
}

RPCService represents RPC service API for ikev2 module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RxMode

type RxMode uint32

RxMode represents VPP binary API enum 'rx_mode'.

const (
	RX_MODE_API_UNKNOWN   RxMode = 0
	RX_MODE_API_POLLING   RxMode = 1
	RX_MODE_API_INTERRUPT RxMode = 2
	RX_MODE_API_ADAPTIVE  RxMode = 3
	RX_MODE_API_DEFAULT   RxMode = 4
)

func (RxMode) String

func (x RxMode) String() string

type SubIfFlags

type SubIfFlags uint32

SubIfFlags represents VPP binary API enum 'sub_if_flags'.

const (
	SUB_IF_API_FLAG_NO_TAGS           SubIfFlags = 1
	SUB_IF_API_FLAG_ONE_TAG           SubIfFlags = 2
	SUB_IF_API_FLAG_TWO_TAGS          SubIfFlags = 4
	SUB_IF_API_FLAG_DOT1AD            SubIfFlags = 8
	SUB_IF_API_FLAG_EXACT_MATCH       SubIfFlags = 16
	SUB_IF_API_FLAG_DEFAULT           SubIfFlags = 32
	SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64
	SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128
	SUB_IF_API_FLAG_MASK_VNET         SubIfFlags = 254
	SUB_IF_API_FLAG_DOT1AH            SubIfFlags = 256
)

func (SubIfFlags) String

func (x SubIfFlags) String() string

Jump to

Keyboard shortcuts

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