ipsec

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package ipsec contains generated bindings for API file ipsec.api.

Contents:

 6 aliases
15 enums
10 structs
 1 union
30 messages

Index

Constants

View Source
const (
	APIFile    = "ipsec"
	APIVersion = "3.0.0"
	VersionCrc = 0x5a59fef9
)

Variables

View Source
var (
	AddressFamily_name = map[uint32]string{
		0: "ADDRESS_IP4",
		1: "ADDRESS_IP6",
	}
	AddressFamily_value = map[string]uint32{
		"ADDRESS_IP4": 0,
		"ADDRESS_IP6": 1,
	}
)
View Source
var (
	IfStatusFlags_name = map[uint32]string{
		1: "IF_STATUS_API_FLAG_ADMIN_UP",
		2: "IF_STATUS_API_FLAG_LINK_UP",
	}
	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{
		1: "IF_API_TYPE_HARDWARE",
		2: "IF_API_TYPE_SUB",
		3: "IF_API_TYPE_P2P",
		4: "IF_API_TYPE_PIPE",
	}
	IfType_value = map[string]uint32{
		"IF_API_TYPE_HARDWARE": 1,
		"IF_API_TYPE_SUB":      2,
		"IF_API_TYPE_P2P":      3,
		"IF_API_TYPE_PIPE":     4,
	}
)
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",
	}
	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",
	}
	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",
	}
	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",
	}
	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",
	}
	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",
	}
	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",
	}
	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,
	}
)
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",
	}
	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,
	}
)
View Source
var (
	LinkDuplex_name = map[uint32]string{
		0: "LINK_DUPLEX_API_UNKNOWN",
		1: "LINK_DUPLEX_API_HALF",
		2: "LINK_DUPLEX_API_FULL",
	}
	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{
		1: "MTU_PROTO_API_L3",
		2: "MTU_PROTO_API_IP4",
		3: "MTU_PROTO_API_IP6",
		4: "MTU_PROTO_API_MPLS",
		5: "MTU_PROTO_API_N",
	}
	MtuProto_value = map[string]uint32{
		"MTU_PROTO_API_L3":   1,
		"MTU_PROTO_API_IP4":  2,
		"MTU_PROTO_API_IP6":  3,
		"MTU_PROTO_API_MPLS": 4,
		"MTU_PROTO_API_N":    5,
	}
)
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",
	}
	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",
	}
	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 `binapi:"address_family,name=af" json:"af,omitempty"`
	Un AddressUnion  `binapi:"address_union,name=un" json:"un,omitempty"`
}

Address defines type 'address'.

func ParseAddress

func ParseAddress(s string) (Address, error)

func (*Address) MarshalText

func (x *Address) MarshalText() ([]byte, error)

func (Address) String

func (x Address) String() string

func (Address) ToIP

func (x Address) ToIP() net.IP

func (*Address) UnmarshalText

func (x *Address) UnmarshalText(text []byte) error

type AddressFamily

type AddressFamily uint32

AddressFamily defines 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 {
	// IP4 *IP4Address
	// IP6 *IP6Address
	XXX_UnionData [16]byte
}

AddressUnion defines 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) SetIP4

func (u *AddressUnion) SetIP4(a IP4Address)

func (*AddressUnion) SetIP6

func (u *AddressUnion) SetIP6(a IP6Address)

type AddressWithPrefix

type AddressWithPrefix Prefix

AddressWithPrefix defines alias 'address_with_prefix'.

func ParseAddressWithPrefix

func ParseAddressWithPrefix(s string) (AddressWithPrefix, error)

func (*AddressWithPrefix) MarshalText

func (x *AddressWithPrefix) MarshalText() ([]byte, error)

func (AddressWithPrefix) String

func (x AddressWithPrefix) String() string

func (*AddressWithPrefix) UnmarshalText

func (x *AddressWithPrefix) UnmarshalText(text []byte) error

type IP4Address

type IP4Address [4]uint8

IP4Address defines alias 'ip4_address'.

func ParseIP4Address

func ParseIP4Address(s string) (IP4Address, error)

func (*IP4Address) MarshalText

func (x *IP4Address) MarshalText() ([]byte, error)

func (IP4Address) String

func (x IP4Address) String() string

func (IP4Address) ToIP

func (x IP4Address) ToIP() net.IP

func (*IP4Address) UnmarshalText

func (x *IP4Address) UnmarshalText(text []byte) error

type IP4AddressWithPrefix

type IP4AddressWithPrefix IP4Prefix

IP4AddressWithPrefix defines alias 'ip4_address_with_prefix'.

type IP4Prefix

type IP4Prefix struct {
	Address IP4Address `binapi:"ip4_address,name=address" json:"address,omitempty"`
	Len     uint8      `binapi:"u8,name=len" json:"len,omitempty"`
}

IP4Prefix defines type 'ip4_prefix'.

func ParseIP4Prefix

func ParseIP4Prefix(s string) (prefix IP4Prefix, err error)

func (*IP4Prefix) MarshalText

func (x *IP4Prefix) MarshalText() ([]byte, error)

func (IP4Prefix) String

func (x IP4Prefix) String() string

func (IP4Prefix) ToIPNet

func (x IP4Prefix) ToIPNet() *net.IPNet

func (*IP4Prefix) UnmarshalText

func (x *IP4Prefix) UnmarshalText(text []byte) error

type IP6Address

type IP6Address [16]uint8

IP6Address defines alias 'ip6_address'.

func ParseIP6Address

func ParseIP6Address(s string) (IP6Address, error)

func (*IP6Address) MarshalText

func (x *IP6Address) MarshalText() ([]byte, error)

func (IP6Address) String

func (x IP6Address) String() string

func (IP6Address) ToIP

func (x IP6Address) ToIP() net.IP

func (*IP6Address) UnmarshalText

func (x *IP6Address) UnmarshalText(text []byte) error

type IP6AddressWithPrefix

type IP6AddressWithPrefix IP6Prefix

IP6AddressWithPrefix defines alias 'ip6_address_with_prefix'.

type IP6Prefix

type IP6Prefix struct {
	Address IP6Address `binapi:"ip6_address,name=address" json:"address,omitempty"`
	Len     uint8      `binapi:"u8,name=len" json:"len,omitempty"`
}

IP6Prefix defines type 'ip6_prefix'.

func ParseIP6Prefix

func ParseIP6Prefix(s string) (prefix IP6Prefix, err error)

func (*IP6Prefix) MarshalText

func (x *IP6Prefix) MarshalText() ([]byte, error)

func (IP6Prefix) String

func (x IP6Prefix) String() string

func (IP6Prefix) ToIPNet

func (x IP6Prefix) ToIPNet() *net.IPNet

func (*IP6Prefix) UnmarshalText

func (x *IP6Prefix) UnmarshalText(text []byte) error

type IPDscp

type IPDscp uint8

IPDscp defines 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 defines 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 defines 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 IfStatusFlags

type IfStatusFlags uint32

IfStatusFlags defines 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 defines enum 'if_type'.

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

func (IfType) String

func (x IfType) String() string

type InterfaceIndex

type InterfaceIndex uint32

InterfaceIndex defines alias 'interface_index'.

type IpsecBackendDetails

type IpsecBackendDetails struct {
	Name     []byte     `binapi:"u8[128],name=name" json:"name,omitempty"`
	Protocol IpsecProto `binapi:"ipsec_proto,name=protocol" json:"protocol,omitempty"`
	Index    uint8      `binapi:"u8,name=index" json:"index,omitempty"`
	Active   uint8      `binapi:"u8,name=active" json:"active,omitempty"`
}

IpsecBackendDetails defines 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) Marshal

func (m *IpsecBackendDetails) Marshal(b []byte) ([]byte, error)

func (*IpsecBackendDetails) Reset

func (m *IpsecBackendDetails) Reset()

func (*IpsecBackendDetails) Size

func (m *IpsecBackendDetails) Size() (size int)

func (*IpsecBackendDetails) Unmarshal

func (m *IpsecBackendDetails) Unmarshal(b []byte) error

type IpsecBackendDump

type IpsecBackendDump struct{}

IpsecBackendDump defines 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) Marshal

func (m *IpsecBackendDump) Marshal(b []byte) ([]byte, error)

func (*IpsecBackendDump) Reset

func (m *IpsecBackendDump) Reset()

func (*IpsecBackendDump) Size

func (m *IpsecBackendDump) Size() (size int)

func (*IpsecBackendDump) Unmarshal

func (m *IpsecBackendDump) Unmarshal(b []byte) error

type IpsecCryptoAlg

type IpsecCryptoAlg uint32

IpsecCryptoAlg defines 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 defines 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  `binapi:"u8,name=is_add" json:"is_add,omitempty"`
	SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
	SpdID     uint32 `binapi:"u32,name=spd_id" json:"spd_id,omitempty"`
}

IpsecInterfaceAddDelSpd defines 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) Marshal

func (m *IpsecInterfaceAddDelSpd) Marshal(b []byte) ([]byte, error)

func (*IpsecInterfaceAddDelSpd) Reset

func (m *IpsecInterfaceAddDelSpd) Reset()

func (*IpsecInterfaceAddDelSpd) Size

func (m *IpsecInterfaceAddDelSpd) Size() (size int)

func (*IpsecInterfaceAddDelSpd) Unmarshal

func (m *IpsecInterfaceAddDelSpd) Unmarshal(b []byte) error

type IpsecInterfaceAddDelSpdReply

type IpsecInterfaceAddDelSpdReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

IpsecInterfaceAddDelSpdReply defines 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) Marshal

func (m *IpsecInterfaceAddDelSpdReply) Marshal(b []byte) ([]byte, error)

func (*IpsecInterfaceAddDelSpdReply) Reset

func (m *IpsecInterfaceAddDelSpdReply) Reset()

func (*IpsecInterfaceAddDelSpdReply) Size

func (m *IpsecInterfaceAddDelSpdReply) Size() (size int)

func (*IpsecInterfaceAddDelSpdReply) Unmarshal

func (m *IpsecInterfaceAddDelSpdReply) Unmarshal(b []byte) error

type IpsecProto

type IpsecProto uint32

IpsecProto defines 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 `binapi:"ipsec_sad_entry,name=entry" json:"entry,omitempty"`
	SwIfIndex      uint32        `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
	Salt           uint32        `binapi:"u32,name=salt" json:"salt,omitempty"`
	SeqOutbound    uint64        `binapi:"u64,name=seq_outbound" json:"seq_outbound,omitempty"`
	LastSeqInbound uint64        `binapi:"u64,name=last_seq_inbound" json:"last_seq_inbound,omitempty"`
	ReplayWindow   uint64        `binapi:"u64,name=replay_window" json:"replay_window,omitempty"`
	TotalDataSize  uint64        `binapi:"u64,name=total_data_size" json:"total_data_size,omitempty"`
}

IpsecSaDetails defines 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) Marshal

func (m *IpsecSaDetails) Marshal(b []byte) ([]byte, error)

func (*IpsecSaDetails) Reset

func (m *IpsecSaDetails) Reset()

func (*IpsecSaDetails) Size

func (m *IpsecSaDetails) Size() (size int)

func (*IpsecSaDetails) Unmarshal

func (m *IpsecSaDetails) Unmarshal(b []byte) error

type IpsecSaDump

type IpsecSaDump struct {
	SaID uint32 `binapi:"u32,name=sa_id" json:"sa_id,omitempty"`
}

IpsecSaDump defines 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) Marshal

func (m *IpsecSaDump) Marshal(b []byte) ([]byte, error)

func (*IpsecSaDump) Reset

func (m *IpsecSaDump) Reset()

func (*IpsecSaDump) Size

func (m *IpsecSaDump) Size() (size int)

func (*IpsecSaDump) Unmarshal

func (m *IpsecSaDump) Unmarshal(b []byte) error

type IpsecSadEntry

type IpsecSadEntry 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          Address        `binapi:"address,name=tunnel_src" json:"tunnel_src,omitempty"`
	TunnelDst          Address        `binapi:"address,name=tunnel_dst" json:"tunnel_dst,omitempty"`
	TxTableID          uint32         `binapi:"u32,name=tx_table_id" json:"tx_table_id,omitempty"`
	Salt               uint32         `binapi:"u32,name=salt" json:"salt,omitempty"`
}

IpsecSadEntry defines type 'ipsec_sad_entry'.

type IpsecSadEntryAddDel

type IpsecSadEntryAddDel struct {
	IsAdd uint8         `binapi:"u8,name=is_add" json:"is_add,omitempty"`
	Entry IpsecSadEntry `binapi:"ipsec_sad_entry,name=entry" json:"entry,omitempty"`
}

IpsecSadEntryAddDel defines 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) Marshal

func (m *IpsecSadEntryAddDel) Marshal(b []byte) ([]byte, error)

func (*IpsecSadEntryAddDel) Reset

func (m *IpsecSadEntryAddDel) Reset()

func (*IpsecSadEntryAddDel) Size

func (m *IpsecSadEntryAddDel) Size() (size int)

func (*IpsecSadEntryAddDel) Unmarshal

func (m *IpsecSadEntryAddDel) Unmarshal(b []byte) error

type IpsecSadEntryAddDelReply

type IpsecSadEntryAddDelReply struct {
	Retval    int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	StatIndex uint32 `binapi:"u32,name=stat_index" json:"stat_index,omitempty"`
}

IpsecSadEntryAddDelReply defines 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) Marshal

func (m *IpsecSadEntryAddDelReply) Marshal(b []byte) ([]byte, error)

func (*IpsecSadEntryAddDelReply) Reset

func (m *IpsecSadEntryAddDelReply) Reset()

func (*IpsecSadEntryAddDelReply) Size

func (m *IpsecSadEntryAddDelReply) Size() (size int)

func (*IpsecSadEntryAddDelReply) Unmarshal

func (m *IpsecSadEntryAddDelReply) Unmarshal(b []byte) error

type IpsecSadFlags

type IpsecSadFlags uint32

IpsecSadFlags defines 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
)

func (IpsecSadFlags) String

func (x IpsecSadFlags) String() string

type IpsecSelectBackend

type IpsecSelectBackend struct {
	Protocol IpsecProto `binapi:"ipsec_proto,name=protocol" json:"protocol,omitempty"`
	Index    uint8      `binapi:"u8,name=index" json:"index,omitempty"`
}

IpsecSelectBackend defines 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) Marshal

func (m *IpsecSelectBackend) Marshal(b []byte) ([]byte, error)

func (*IpsecSelectBackend) Reset

func (m *IpsecSelectBackend) Reset()

func (*IpsecSelectBackend) Size

func (m *IpsecSelectBackend) Size() (size int)

func (*IpsecSelectBackend) Unmarshal

func (m *IpsecSelectBackend) Unmarshal(b []byte) error

type IpsecSelectBackendReply

type IpsecSelectBackendReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

IpsecSelectBackendReply defines 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) Marshal

func (m *IpsecSelectBackendReply) Marshal(b []byte) ([]byte, error)

func (*IpsecSelectBackendReply) Reset

func (m *IpsecSelectBackendReply) Reset()

func (*IpsecSelectBackendReply) Size

func (m *IpsecSelectBackendReply) Size() (size int)

func (*IpsecSelectBackendReply) Unmarshal

func (m *IpsecSelectBackendReply) Unmarshal(b []byte) error

type IpsecSpdAction

type IpsecSpdAction uint32

IpsecSpdAction defines 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  `binapi:"u8,name=is_add" json:"is_add,omitempty"`
	SpdID uint32 `binapi:"u32,name=spd_id" json:"spd_id,omitempty"`
}

IpsecSpdAddDel defines 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) Marshal

func (m *IpsecSpdAddDel) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdAddDel) Reset

func (m *IpsecSpdAddDel) Reset()

func (*IpsecSpdAddDel) Size

func (m *IpsecSpdAddDel) Size() (size int)

func (*IpsecSpdAddDel) Unmarshal

func (m *IpsecSpdAddDel) Unmarshal(b []byte) error

type IpsecSpdAddDelReply

type IpsecSpdAddDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

IpsecSpdAddDelReply defines 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) Marshal

func (m *IpsecSpdAddDelReply) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdAddDelReply) Reset

func (m *IpsecSpdAddDelReply) Reset()

func (*IpsecSpdAddDelReply) Size

func (m *IpsecSpdAddDelReply) Size() (size int)

func (*IpsecSpdAddDelReply) Unmarshal

func (m *IpsecSpdAddDelReply) Unmarshal(b []byte) error

type IpsecSpdDetails

type IpsecSpdDetails struct {
	Entry IpsecSpdEntry `binapi:"ipsec_spd_entry,name=entry" json:"entry,omitempty"`
}

IpsecSpdDetails defines 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) Marshal

func (m *IpsecSpdDetails) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdDetails) Reset

func (m *IpsecSpdDetails) Reset()

func (*IpsecSpdDetails) Size

func (m *IpsecSpdDetails) Size() (size int)

func (*IpsecSpdDetails) Unmarshal

func (m *IpsecSpdDetails) Unmarshal(b []byte) error

type IpsecSpdDump

type IpsecSpdDump struct {
	SpdID uint32 `binapi:"u32,name=spd_id" json:"spd_id,omitempty"`
	SaID  uint32 `binapi:"u32,name=sa_id" json:"sa_id,omitempty"`
}

IpsecSpdDump defines 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) Marshal

func (m *IpsecSpdDump) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdDump) Reset

func (m *IpsecSpdDump) Reset()

func (*IpsecSpdDump) Size

func (m *IpsecSpdDump) Size() (size int)

func (*IpsecSpdDump) Unmarshal

func (m *IpsecSpdDump) Unmarshal(b []byte) error

type IpsecSpdEntry

type IpsecSpdEntry struct {
	SpdID              uint32         `binapi:"u32,name=spd_id" json:"spd_id,omitempty"`
	Priority           int32          `binapi:"i32,name=priority" json:"priority,omitempty"`
	IsOutbound         uint8          `binapi:"u8,name=is_outbound" json:"is_outbound,omitempty"`
	SaID               uint32         `binapi:"u32,name=sa_id" json:"sa_id,omitempty"`
	Policy             IpsecSpdAction `binapi:"ipsec_spd_action,name=policy" json:"policy,omitempty"`
	Protocol           uint8          `binapi:"u8,name=protocol" json:"protocol,omitempty"`
	RemoteAddressStart Address        `binapi:"address,name=remote_address_start" json:"remote_address_start,omitempty"`
	RemoteAddressStop  Address        `binapi:"address,name=remote_address_stop" json:"remote_address_stop,omitempty"`
	LocalAddressStart  Address        `binapi:"address,name=local_address_start" json:"local_address_start,omitempty"`
	LocalAddressStop   Address        `binapi:"address,name=local_address_stop" json:"local_address_stop,omitempty"`
	RemotePortStart    uint16         `binapi:"u16,name=remote_port_start" json:"remote_port_start,omitempty"`
	RemotePortStop     uint16         `binapi:"u16,name=remote_port_stop" json:"remote_port_stop,omitempty"`
	LocalPortStart     uint16         `binapi:"u16,name=local_port_start" json:"local_port_start,omitempty"`
	LocalPortStop      uint16         `binapi:"u16,name=local_port_stop" json:"local_port_stop,omitempty"`
}

IpsecSpdEntry defines type 'ipsec_spd_entry'.

type IpsecSpdEntryAddDel

type IpsecSpdEntryAddDel struct {
	IsAdd uint8         `binapi:"u8,name=is_add" json:"is_add,omitempty"`
	Entry IpsecSpdEntry `binapi:"ipsec_spd_entry,name=entry" json:"entry,omitempty"`
}

IpsecSpdEntryAddDel defines 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) Marshal

func (m *IpsecSpdEntryAddDel) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdEntryAddDel) Reset

func (m *IpsecSpdEntryAddDel) Reset()

func (*IpsecSpdEntryAddDel) Size

func (m *IpsecSpdEntryAddDel) Size() (size int)

func (*IpsecSpdEntryAddDel) Unmarshal

func (m *IpsecSpdEntryAddDel) Unmarshal(b []byte) error

type IpsecSpdEntryAddDelReply

type IpsecSpdEntryAddDelReply struct {
	Retval    int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	StatIndex uint32 `binapi:"u32,name=stat_index" json:"stat_index,omitempty"`
}

IpsecSpdEntryAddDelReply defines 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) Marshal

func (m *IpsecSpdEntryAddDelReply) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdEntryAddDelReply) Reset

func (m *IpsecSpdEntryAddDelReply) Reset()

func (*IpsecSpdEntryAddDelReply) Size

func (m *IpsecSpdEntryAddDelReply) Size() (size int)

func (*IpsecSpdEntryAddDelReply) Unmarshal

func (m *IpsecSpdEntryAddDelReply) Unmarshal(b []byte) error

type IpsecSpdInterfaceDetails

type IpsecSpdInterfaceDetails struct {
	SpdIndex  uint32 `binapi:"u32,name=spd_index" json:"spd_index,omitempty"`
	SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
}

IpsecSpdInterfaceDetails defines 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) Marshal

func (m *IpsecSpdInterfaceDetails) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdInterfaceDetails) Reset

func (m *IpsecSpdInterfaceDetails) Reset()

func (*IpsecSpdInterfaceDetails) Size

func (m *IpsecSpdInterfaceDetails) Size() (size int)

func (*IpsecSpdInterfaceDetails) Unmarshal

func (m *IpsecSpdInterfaceDetails) Unmarshal(b []byte) error

type IpsecSpdInterfaceDump

type IpsecSpdInterfaceDump struct {
	SpdIndex      uint32 `binapi:"u32,name=spd_index" json:"spd_index,omitempty"`
	SpdIndexValid uint8  `binapi:"u8,name=spd_index_valid" json:"spd_index_valid,omitempty"`
}

IpsecSpdInterfaceDump defines 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) Marshal

func (m *IpsecSpdInterfaceDump) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdInterfaceDump) Reset

func (m *IpsecSpdInterfaceDump) Reset()

func (*IpsecSpdInterfaceDump) Size

func (m *IpsecSpdInterfaceDump) Size() (size int)

func (*IpsecSpdInterfaceDump) Unmarshal

func (m *IpsecSpdInterfaceDump) Unmarshal(b []byte) error

type IpsecSpdsDetails

type IpsecSpdsDetails struct {
	SpdID     uint32 `binapi:"u32,name=spd_id" json:"spd_id,omitempty"`
	Npolicies uint32 `binapi:"u32,name=npolicies" json:"npolicies,omitempty"`
}

IpsecSpdsDetails defines 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) Marshal

func (m *IpsecSpdsDetails) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdsDetails) Reset

func (m *IpsecSpdsDetails) Reset()

func (*IpsecSpdsDetails) Size

func (m *IpsecSpdsDetails) Size() (size int)

func (*IpsecSpdsDetails) Unmarshal

func (m *IpsecSpdsDetails) Unmarshal(b []byte) error

type IpsecSpdsDump

type IpsecSpdsDump struct{}

IpsecSpdsDump defines 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) Marshal

func (m *IpsecSpdsDump) Marshal(b []byte) ([]byte, error)

func (*IpsecSpdsDump) Reset

func (m *IpsecSpdsDump) Reset()

func (*IpsecSpdsDump) Size

func (m *IpsecSpdsDump) Size() (size int)

func (*IpsecSpdsDump) Unmarshal

func (m *IpsecSpdsDump) Unmarshal(b []byte) error

type IpsecTunnelIfAddDel

type IpsecTunnelIfAddDel struct {
	IsAdd              uint8   `binapi:"u8,name=is_add" json:"is_add,omitempty"`
	Esn                uint8   `binapi:"u8,name=esn" json:"esn,omitempty"`
	AntiReplay         uint8   `binapi:"u8,name=anti_replay" json:"anti_replay,omitempty"`
	LocalIP            Address `binapi:"address,name=local_ip" json:"local_ip,omitempty"`
	RemoteIP           Address `binapi:"address,name=remote_ip" json:"remote_ip,omitempty"`
	LocalSpi           uint32  `binapi:"u32,name=local_spi" json:"local_spi,omitempty"`
	RemoteSpi          uint32  `binapi:"u32,name=remote_spi" json:"remote_spi,omitempty"`
	CryptoAlg          uint8   `binapi:"u8,name=crypto_alg" json:"crypto_alg,omitempty"`
	LocalCryptoKeyLen  uint8   `binapi:"u8,name=local_crypto_key_len" json:"local_crypto_key_len,omitempty"`
	LocalCryptoKey     []byte  `binapi:"u8[128],name=local_crypto_key" json:"local_crypto_key,omitempty"`
	RemoteCryptoKeyLen uint8   `binapi:"u8,name=remote_crypto_key_len" json:"remote_crypto_key_len,omitempty"`
	RemoteCryptoKey    []byte  `binapi:"u8[128],name=remote_crypto_key" json:"remote_crypto_key,omitempty"`
	IntegAlg           uint8   `binapi:"u8,name=integ_alg" json:"integ_alg,omitempty"`
	LocalIntegKeyLen   uint8   `binapi:"u8,name=local_integ_key_len" json:"local_integ_key_len,omitempty"`
	LocalIntegKey      []byte  `binapi:"u8[128],name=local_integ_key" json:"local_integ_key,omitempty"`
	RemoteIntegKeyLen  uint8   `binapi:"u8,name=remote_integ_key_len" json:"remote_integ_key_len,omitempty"`
	RemoteIntegKey     []byte  `binapi:"u8[128],name=remote_integ_key" json:"remote_integ_key,omitempty"`
	Renumber           uint8   `binapi:"u8,name=renumber" json:"renumber,omitempty"`
	ShowInstance       uint32  `binapi:"u32,name=show_instance" json:"show_instance,omitempty"`
	UDPEncap           uint8   `binapi:"u8,name=udp_encap" json:"udp_encap,omitempty"`
	TxTableID          uint32  `binapi:"u32,name=tx_table_id" json:"tx_table_id,omitempty"`
	Salt               uint32  `binapi:"u32,name=salt" json:"salt,omitempty"`
}

IpsecTunnelIfAddDel defines 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) Marshal

func (m *IpsecTunnelIfAddDel) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelIfAddDel) Reset

func (m *IpsecTunnelIfAddDel) Reset()

func (*IpsecTunnelIfAddDel) Size

func (m *IpsecTunnelIfAddDel) Size() (size int)

func (*IpsecTunnelIfAddDel) Unmarshal

func (m *IpsecTunnelIfAddDel) Unmarshal(b []byte) error

type IpsecTunnelIfAddDelReply

type IpsecTunnelIfAddDelReply struct {
	Retval    int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
}

IpsecTunnelIfAddDelReply defines 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) Marshal

func (m *IpsecTunnelIfAddDelReply) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelIfAddDelReply) Reset

func (m *IpsecTunnelIfAddDelReply) Reset()

func (*IpsecTunnelIfAddDelReply) Size

func (m *IpsecTunnelIfAddDelReply) Size() (size int)

func (*IpsecTunnelIfAddDelReply) Unmarshal

func (m *IpsecTunnelIfAddDelReply) Unmarshal(b []byte) error

type IpsecTunnelIfSetSa

type IpsecTunnelIfSetSa struct {
	SwIfIndex  uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
	SaID       uint32 `binapi:"u32,name=sa_id" json:"sa_id,omitempty"`
	IsOutbound uint8  `binapi:"u8,name=is_outbound" json:"is_outbound,omitempty"`
}

IpsecTunnelIfSetSa defines 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) Marshal

func (m *IpsecTunnelIfSetSa) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelIfSetSa) Reset

func (m *IpsecTunnelIfSetSa) Reset()

func (*IpsecTunnelIfSetSa) Size

func (m *IpsecTunnelIfSetSa) Size() (size int)

func (*IpsecTunnelIfSetSa) Unmarshal

func (m *IpsecTunnelIfSetSa) Unmarshal(b []byte) error

type IpsecTunnelIfSetSaReply

type IpsecTunnelIfSetSaReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

IpsecTunnelIfSetSaReply defines 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) Marshal

func (m *IpsecTunnelIfSetSaReply) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelIfSetSaReply) Reset

func (m *IpsecTunnelIfSetSaReply) Reset()

func (*IpsecTunnelIfSetSaReply) Size

func (m *IpsecTunnelIfSetSaReply) Size() (size int)

func (*IpsecTunnelIfSetSaReply) Unmarshal

func (m *IpsecTunnelIfSetSaReply) Unmarshal(b []byte) error

type IpsecTunnelProtect

type IpsecTunnelProtect struct {
	SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	SaOut     uint32         `binapi:"u32,name=sa_out" json:"sa_out,omitempty"`
	NSaIn     uint8          `binapi:"u8,name=n_sa_in" json:"-"`
	SaIn      []uint32       `binapi:"u32[n_sa_in],name=sa_in" json:"sa_in,omitempty"`
}

IpsecTunnelProtect defines type 'ipsec_tunnel_protect'.

type IpsecTunnelProtectDel

type IpsecTunnelProtectDel struct {
	SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

IpsecTunnelProtectDel defines 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) Marshal

func (m *IpsecTunnelProtectDel) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelProtectDel) Reset

func (m *IpsecTunnelProtectDel) Reset()

func (*IpsecTunnelProtectDel) Size

func (m *IpsecTunnelProtectDel) Size() (size int)

func (*IpsecTunnelProtectDel) Unmarshal

func (m *IpsecTunnelProtectDel) Unmarshal(b []byte) error

type IpsecTunnelProtectDelReply

type IpsecTunnelProtectDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

IpsecTunnelProtectDelReply defines 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) Marshal

func (m *IpsecTunnelProtectDelReply) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelProtectDelReply) Reset

func (m *IpsecTunnelProtectDelReply) Reset()

func (*IpsecTunnelProtectDelReply) Size

func (m *IpsecTunnelProtectDelReply) Size() (size int)

func (*IpsecTunnelProtectDelReply) Unmarshal

func (m *IpsecTunnelProtectDelReply) Unmarshal(b []byte) error

type IpsecTunnelProtectDetails

type IpsecTunnelProtectDetails struct {
	Tun IpsecTunnelProtect `binapi:"ipsec_tunnel_protect,name=tun" json:"tun,omitempty"`
}

IpsecTunnelProtectDetails defines 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) Marshal

func (m *IpsecTunnelProtectDetails) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelProtectDetails) Reset

func (m *IpsecTunnelProtectDetails) Reset()

func (*IpsecTunnelProtectDetails) Size

func (m *IpsecTunnelProtectDetails) Size() (size int)

func (*IpsecTunnelProtectDetails) Unmarshal

func (m *IpsecTunnelProtectDetails) Unmarshal(b []byte) error

type IpsecTunnelProtectDump

type IpsecTunnelProtectDump struct {
	SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

IpsecTunnelProtectDump defines 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) Marshal

func (m *IpsecTunnelProtectDump) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelProtectDump) Reset

func (m *IpsecTunnelProtectDump) Reset()

func (*IpsecTunnelProtectDump) Size

func (m *IpsecTunnelProtectDump) Size() (size int)

func (*IpsecTunnelProtectDump) Unmarshal

func (m *IpsecTunnelProtectDump) Unmarshal(b []byte) error

type IpsecTunnelProtectUpdate

type IpsecTunnelProtectUpdate struct {
	Tunnel IpsecTunnelProtect `binapi:"ipsec_tunnel_protect,name=tunnel" json:"tunnel,omitempty"`
}

IpsecTunnelProtectUpdate defines 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) Marshal

func (m *IpsecTunnelProtectUpdate) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelProtectUpdate) Reset

func (m *IpsecTunnelProtectUpdate) Reset()

func (*IpsecTunnelProtectUpdate) Size

func (m *IpsecTunnelProtectUpdate) Size() (size int)

func (*IpsecTunnelProtectUpdate) Unmarshal

func (m *IpsecTunnelProtectUpdate) Unmarshal(b []byte) error

type IpsecTunnelProtectUpdateReply

type IpsecTunnelProtectUpdateReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

IpsecTunnelProtectUpdateReply defines 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) Marshal

func (m *IpsecTunnelProtectUpdateReply) Marshal(b []byte) ([]byte, error)

func (*IpsecTunnelProtectUpdateReply) Reset

func (m *IpsecTunnelProtectUpdateReply) Reset()

func (*IpsecTunnelProtectUpdateReply) Size

func (m *IpsecTunnelProtectUpdateReply) Size() (size int)

func (*IpsecTunnelProtectUpdateReply) Unmarshal

func (m *IpsecTunnelProtectUpdateReply) Unmarshal(b []byte) error

type Key

type Key struct {
	Length uint8  `binapi:"u8,name=length" json:"length,omitempty"`
	Data   []byte `binapi:"u8[128],name=data" json:"data,omitempty"`
}

Key defines type 'key'.

type LinkDuplex

type LinkDuplex uint32

LinkDuplex defines 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 `binapi:"address_family,name=af" json:"af,omitempty"`
	GrpAddressLength uint16        `binapi:"u16,name=grp_address_length" json:"grp_address_length,omitempty"`
	GrpAddress       AddressUnion  `binapi:"address_union,name=grp_address" json:"grp_address,omitempty"`
	SrcAddress       AddressUnion  `binapi:"address_union,name=src_address" json:"src_address,omitempty"`
}

Mprefix defines type 'mprefix'.

type MtuProto

type MtuProto uint32

MtuProto defines enum 'mtu_proto'.

const (
	MTU_PROTO_API_L3   MtuProto = 1
	MTU_PROTO_API_IP4  MtuProto = 2
	MTU_PROTO_API_IP6  MtuProto = 3
	MTU_PROTO_API_MPLS MtuProto = 4
	MTU_PROTO_API_N    MtuProto = 5
)

func (MtuProto) String

func (x MtuProto) String() string

type Prefix

type Prefix struct {
	Address Address `binapi:"address,name=address" json:"address,omitempty"`
	Len     uint8   `binapi:"u8,name=len" json:"len,omitempty"`
}

Prefix defines type 'prefix'.

func ParsePrefix

func ParsePrefix(ip string) (prefix Prefix, err error)

func (*Prefix) MarshalText

func (x *Prefix) MarshalText() ([]byte, error)

func (Prefix) String

func (x Prefix) String() string

func (Prefix) ToIPNet

func (x Prefix) ToIPNet() *net.IPNet

func (*Prefix) UnmarshalText

func (x *Prefix) UnmarshalText(text []byte) error

type PrefixMatcher

type PrefixMatcher struct {
	Le uint8 `binapi:"u8,name=le" json:"le,omitempty"`
	Ge uint8 `binapi:"u8,name=ge" json:"ge,omitempty"`
}

PrefixMatcher defines type 'prefix_matcher'.

type RPCService

type RPCService interface {
	IpsecBackendDump(ctx context.Context, in *IpsecBackendDump) (RPCService_IpsecBackendDumpClient, error)
	IpsecInterfaceAddDelSpd(ctx context.Context, in *IpsecInterfaceAddDelSpd) (*IpsecInterfaceAddDelSpdReply, error)
	IpsecSaDump(ctx context.Context, in *IpsecSaDump) (RPCService_IpsecSaDumpClient, 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)
	IpsecSpdDump(ctx context.Context, in *IpsecSpdDump) (RPCService_IpsecSpdDumpClient, error)
	IpsecSpdEntryAddDel(ctx context.Context, in *IpsecSpdEntryAddDel) (*IpsecSpdEntryAddDelReply, error)
	IpsecSpdInterfaceDump(ctx context.Context, in *IpsecSpdInterfaceDump) (RPCService_IpsecSpdInterfaceDumpClient, error)
	IpsecSpdsDump(ctx context.Context, in *IpsecSpdsDump) (RPCService_IpsecSpdsDumpClient, 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)
	IpsecTunnelProtectDump(ctx context.Context, in *IpsecTunnelProtectDump) (RPCService_IpsecTunnelProtectDumpClient, error)
	IpsecTunnelProtectUpdate(ctx context.Context, in *IpsecTunnelProtectUpdate) (*IpsecTunnelProtectUpdateReply, error)
}

RPCService defines RPC service ipsec.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_IpsecBackendDumpClient

type RPCService_IpsecBackendDumpClient interface {
	Recv() (*IpsecBackendDetails, error)
	api.Stream
}

type RPCService_IpsecSaDumpClient

type RPCService_IpsecSaDumpClient interface {
	Recv() (*IpsecSaDetails, error)
	api.Stream
}

type RPCService_IpsecSpdDumpClient

type RPCService_IpsecSpdDumpClient interface {
	Recv() (*IpsecSpdDetails, error)
	api.Stream
}

type RPCService_IpsecSpdInterfaceDumpClient

type RPCService_IpsecSpdInterfaceDumpClient interface {
	Recv() (*IpsecSpdInterfaceDetails, error)
	api.Stream
}

type RPCService_IpsecSpdsDumpClient

type RPCService_IpsecSpdsDumpClient interface {
	Recv() (*IpsecSpdsDetails, error)
	api.Stream
}

type RPCService_IpsecTunnelProtectDumpClient

type RPCService_IpsecTunnelProtectDumpClient interface {
	Recv() (*IpsecTunnelProtectDetails, error)
	api.Stream
}

type RxMode

type RxMode uint32

RxMode defines 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 defines 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