ipsec

package
v3.3.0-beta Latest Latest
Warning

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

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

Documentation

Overview

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

Contents:

 1 enum
 2 structs
30 messages

Index

Constants

View Source
const (
	APIFile    = "ipsec"
	APIVersion = "3.0.2"
	VersionCrc = 0x6a839805
)

Variables

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,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type IpsecBackendDetails

type IpsecBackendDetails struct {
	Name     string                 `binapi:"string[128],name=name" json:"name,omitempty"`
	Protocol ipsec_types.IpsecProto `binapi:"ipsec_proto,name=protocol" json:"protocol,omitempty"`
	Index    uint8                  `binapi:"u8,name=index" json:"index,omitempty"`
	Active   bool                   `binapi:"bool,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 IpsecInterfaceAddDelSpd

type IpsecInterfaceAddDelSpd struct {
	IsAdd     bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,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 IpsecSaDetails

type IpsecSaDetails struct {
	Entry          ipsec_types.IpsecSadEntry      `binapi:"ipsec_sad_entry,name=entry" json:"entry,omitempty"`
	SwIfIndex      interface_types.InterfaceIndex `binapi:"interface_index,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"`
	StatIndex      uint32                         `binapi:"u32,name=stat_index" json:"stat_index,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 IpsecSadEntryAddDel

type IpsecSadEntryAddDel struct {
	IsAdd bool                      `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Entry ipsec_types.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 IpsecSelectBackend

type IpsecSelectBackend struct {
	Protocol ipsec_types.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 bool   `binapi:"bool,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         bool             `binapi:"bool,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 ip_types.Address `binapi:"address,name=remote_address_start" json:"remote_address_start,omitempty"`
	RemoteAddressStop  ip_types.Address `binapi:"address,name=remote_address_stop" json:"remote_address_stop,omitempty"`
	LocalAddressStart  ip_types.Address `binapi:"address,name=local_address_start" json:"local_address_start,omitempty"`
	LocalAddressStop   ip_types.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 bool          `binapi:"bool,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 interface_types.InterfaceIndex `binapi:"interface_index,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              bool             `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Esn                bool             `binapi:"bool,name=esn" json:"esn,omitempty"`
	AntiReplay         bool             `binapi:"bool,name=anti_replay" json:"anti_replay,omitempty"`
	LocalIP            ip_types.Address `binapi:"address,name=local_ip" json:"local_ip,omitempty"`
	RemoteIP           ip_types.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           bool             `binapi:"bool,name=renumber" json:"renumber,omitempty"`
	ShowInstance       uint32           `binapi:"u32,name=show_instance" json:"show_instance,omitempty"`
	UDPEncap           bool             `binapi:"bool,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 interface_types.InterfaceIndex `binapi:"interface_index,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  interface_types.InterfaceIndex `binapi:"interface_index,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 interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Nh        ip_types.Address               `binapi:"address,name=nh" json:"nh,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 interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Nh        ip_types.Address               `binapi:"address,name=nh" json:"nh,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 interface_types.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 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
}

Jump to

Keyboard shortcuts

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