ipsec

package
v3.29.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Contents: - 2 structs - 60 messages

Index

Constants

View Source
const (
	APIFile    = "ipsec"
	APIVersion = "5.0.2"
	VersionCrc = 0x8d9c3489
)

Variables

This section is empty.

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"`
}

IPsec backend details

  • name - name of the backend
  • protocol - IPsec protocol (value from ipsec_protocol_t)
  • index - backend index
  • active - set to 1 if the backend is active, otherwise 0

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{}

Dump IPsec backends 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"`
}

IPsec: Add/delete SPD from interface

  • is_add - add security mode if non-zero, else delete
  • sw_if_index - index of the interface
  • spd_id - SPD instance id to use for lookups

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 IpsecItf

type IpsecItf struct {
	UserInstance uint32                         `binapi:"u32,name=user_instance,default=4294967295" json:"user_instance,omitempty"`
	Mode         tunnel_types.TunnelMode        `binapi:"tunnel_mode,name=mode" json:"mode,omitempty"`
	SwIfIndex    interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

IpsecItf defines type 'ipsec_itf'.

type IpsecItfCreate

type IpsecItfCreate struct {
	Itf IpsecItf `binapi:"ipsec_itf,name=itf" json:"itf,omitempty"`
}

Create an IPSec interface IpsecItfCreate defines message 'ipsec_itf_create'.

func (*IpsecItfCreate) GetCrcString

func (*IpsecItfCreate) GetCrcString() string

func (*IpsecItfCreate) GetMessageName

func (*IpsecItfCreate) GetMessageName() string

func (*IpsecItfCreate) GetMessageType

func (*IpsecItfCreate) GetMessageType() api.MessageType

func (*IpsecItfCreate) Marshal

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

func (*IpsecItfCreate) Reset

func (m *IpsecItfCreate) Reset()

func (*IpsecItfCreate) Size

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

func (*IpsecItfCreate) Unmarshal

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

type IpsecItfCreateReply

type IpsecItfCreateReply 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"`
}

Add IPsec interface interface response

  • retval - return status
  • sw_if_index - sw_if_index of new interface (for successful add)

IpsecItfCreateReply defines message 'ipsec_itf_create_reply'.

func (*IpsecItfCreateReply) GetCrcString

func (*IpsecItfCreateReply) GetCrcString() string

func (*IpsecItfCreateReply) GetMessageName

func (*IpsecItfCreateReply) GetMessageName() string

func (*IpsecItfCreateReply) GetMessageType

func (*IpsecItfCreateReply) GetMessageType() api.MessageType

func (*IpsecItfCreateReply) Marshal

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

func (*IpsecItfCreateReply) Reset

func (m *IpsecItfCreateReply) Reset()

func (*IpsecItfCreateReply) Size

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

func (*IpsecItfCreateReply) Unmarshal

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

type IpsecItfDelete

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

IpsecItfDelete defines message 'ipsec_itf_delete'.

func (*IpsecItfDelete) GetCrcString

func (*IpsecItfDelete) GetCrcString() string

func (*IpsecItfDelete) GetMessageName

func (*IpsecItfDelete) GetMessageName() string

func (*IpsecItfDelete) GetMessageType

func (*IpsecItfDelete) GetMessageType() api.MessageType

func (*IpsecItfDelete) Marshal

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

func (*IpsecItfDelete) Reset

func (m *IpsecItfDelete) Reset()

func (*IpsecItfDelete) Size

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

func (*IpsecItfDelete) Unmarshal

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

type IpsecItfDeleteReply

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

IpsecItfDeleteReply defines message 'ipsec_itf_delete_reply'.

func (*IpsecItfDeleteReply) GetCrcString

func (*IpsecItfDeleteReply) GetCrcString() string

func (*IpsecItfDeleteReply) GetMessageName

func (*IpsecItfDeleteReply) GetMessageName() string

func (*IpsecItfDeleteReply) GetMessageType

func (*IpsecItfDeleteReply) GetMessageType() api.MessageType

func (*IpsecItfDeleteReply) Marshal

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

func (*IpsecItfDeleteReply) Reset

func (m *IpsecItfDeleteReply) Reset()

func (*IpsecItfDeleteReply) Size

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

func (*IpsecItfDeleteReply) Unmarshal

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

type IpsecItfDetails

type IpsecItfDetails struct {
	Itf IpsecItf `binapi:"ipsec_itf,name=itf" json:"itf,omitempty"`
}

IpsecItfDetails defines message 'ipsec_itf_details'.

func (*IpsecItfDetails) GetCrcString

func (*IpsecItfDetails) GetCrcString() string

func (*IpsecItfDetails) GetMessageName

func (*IpsecItfDetails) GetMessageName() string

func (*IpsecItfDetails) GetMessageType

func (*IpsecItfDetails) GetMessageType() api.MessageType

func (*IpsecItfDetails) Marshal

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

func (*IpsecItfDetails) Reset

func (m *IpsecItfDetails) Reset()

func (*IpsecItfDetails) Size

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

func (*IpsecItfDetails) Unmarshal

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

type IpsecItfDump

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

IpsecItfDump defines message 'ipsec_itf_dump'.

func (*IpsecItfDump) GetCrcString

func (*IpsecItfDump) GetCrcString() string

func (*IpsecItfDump) GetMessageName

func (*IpsecItfDump) GetMessageName() string

func (*IpsecItfDump) GetMessageType

func (*IpsecItfDump) GetMessageType() api.MessageType

func (*IpsecItfDump) Marshal

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

func (*IpsecItfDump) Reset

func (m *IpsecItfDump) Reset()

func (*IpsecItfDump) Size

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

func (*IpsecItfDump) Unmarshal

func (m *IpsecItfDump) 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"`
}

IPsec security association database response

  • entry - The SA details
  • sw_if_index - sw_if_index of tunnel interface, policy-based SAs = ~0
  • salt - 4 byte salt
  • seq - current sequence number for outbound
  • seq_hi - high 32 bits of ESN for outbound
  • last_seq - highest sequence number received inbound
  • last_seq_hi - high 32 bits of highest ESN received inbound
  • replay_window - bit map of seq nums received relative to last_seq if using anti-replay
  • stat_index - index for the SA in the stats segment @ /net/ipsec/sa

IpsecSaDetails defines message 'ipsec_sa_details'. Deprecated: the message will be removed in the future versions

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"`
}

Dump IPsec security association

  • sa_id - optional ID of an SA to dump, if ~0 dump all SAs in SAD

IpsecSaDump defines message 'ipsec_sa_dump'. Deprecated: the message will be removed in the future versions

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 IpsecSaV2Details

type IpsecSaV2Details struct {
	Entry          ipsec_types.IpsecSadEntryV2    `binapi:"ipsec_sad_entry_v2,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"`
}

IpsecSaV2Details defines message 'ipsec_sa_v2_details'. Deprecated: the message will be removed in the future versions

func (*IpsecSaV2Details) GetCrcString

func (*IpsecSaV2Details) GetCrcString() string

func (*IpsecSaV2Details) GetMessageName

func (*IpsecSaV2Details) GetMessageName() string

func (*IpsecSaV2Details) GetMessageType

func (*IpsecSaV2Details) GetMessageType() api.MessageType

func (*IpsecSaV2Details) Marshal

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

func (*IpsecSaV2Details) Reset

func (m *IpsecSaV2Details) Reset()

func (*IpsecSaV2Details) Size

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

func (*IpsecSaV2Details) Unmarshal

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

type IpsecSaV2Dump

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

IpsecSaV2Dump defines message 'ipsec_sa_v2_dump'. Deprecated: the message will be removed in the future versions

func (*IpsecSaV2Dump) GetCrcString

func (*IpsecSaV2Dump) GetCrcString() string

func (*IpsecSaV2Dump) GetMessageName

func (*IpsecSaV2Dump) GetMessageName() string

func (*IpsecSaV2Dump) GetMessageType

func (*IpsecSaV2Dump) GetMessageType() api.MessageType

func (*IpsecSaV2Dump) Marshal

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

func (*IpsecSaV2Dump) Reset

func (m *IpsecSaV2Dump) Reset()

func (*IpsecSaV2Dump) Size

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

func (*IpsecSaV2Dump) Unmarshal

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

type IpsecSaV3Details

type IpsecSaV3Details struct {
	Entry          ipsec_types.IpsecSadEntryV3    `binapi:"ipsec_sad_entry_v3,name=entry" json:"entry,omitempty"`
	SwIfIndex      interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,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"`
}

IpsecSaV3Details defines message 'ipsec_sa_v3_details'.

func (*IpsecSaV3Details) GetCrcString

func (*IpsecSaV3Details) GetCrcString() string

func (*IpsecSaV3Details) GetMessageName

func (*IpsecSaV3Details) GetMessageName() string

func (*IpsecSaV3Details) GetMessageType

func (*IpsecSaV3Details) GetMessageType() api.MessageType

func (*IpsecSaV3Details) Marshal

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

func (*IpsecSaV3Details) Reset

func (m *IpsecSaV3Details) Reset()

func (*IpsecSaV3Details) Size

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

func (*IpsecSaV3Details) Unmarshal

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

type IpsecSaV3Dump

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

IpsecSaV3Dump defines message 'ipsec_sa_v3_dump'.

func (*IpsecSaV3Dump) GetCrcString

func (*IpsecSaV3Dump) GetCrcString() string

func (*IpsecSaV3Dump) GetMessageName

func (*IpsecSaV3Dump) GetMessageName() string

func (*IpsecSaV3Dump) GetMessageType

func (*IpsecSaV3Dump) GetMessageType() api.MessageType

func (*IpsecSaV3Dump) Marshal

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

func (*IpsecSaV3Dump) Reset

func (m *IpsecSaV3Dump) Reset()

func (*IpsecSaV3Dump) Size

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

func (*IpsecSaV3Dump) Unmarshal

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

type IpsecSaV4Details added in v3.27.0

type IpsecSaV4Details struct {
	Entry          ipsec_types.IpsecSadEntryV3    `binapi:"ipsec_sad_entry_v3,name=entry" json:"entry,omitempty"`
	SwIfIndex      interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,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"`
	ThreadIndex    uint32                         `binapi:"u32,name=thread_index" json:"thread_index,omitempty"`
	StatIndex      uint32                         `binapi:"u32,name=stat_index" json:"stat_index,omitempty"`
}

IpsecSaV4Details defines message 'ipsec_sa_v4_details'.

func (*IpsecSaV4Details) GetCrcString added in v3.27.0

func (*IpsecSaV4Details) GetCrcString() string

func (*IpsecSaV4Details) GetMessageName added in v3.27.0

func (*IpsecSaV4Details) GetMessageName() string

func (*IpsecSaV4Details) GetMessageType added in v3.27.0

func (*IpsecSaV4Details) GetMessageType() api.MessageType

func (*IpsecSaV4Details) Marshal added in v3.27.0

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

func (*IpsecSaV4Details) Reset added in v3.27.0

func (m *IpsecSaV4Details) Reset()

func (*IpsecSaV4Details) Size added in v3.27.0

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

func (*IpsecSaV4Details) Unmarshal added in v3.27.0

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

type IpsecSaV4Dump added in v3.27.0

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

IpsecSaV4Dump defines message 'ipsec_sa_v4_dump'.

func (*IpsecSaV4Dump) GetCrcString added in v3.27.0

func (*IpsecSaV4Dump) GetCrcString() string

func (*IpsecSaV4Dump) GetMessageName added in v3.27.0

func (*IpsecSaV4Dump) GetMessageName() string

func (*IpsecSaV4Dump) GetMessageType added in v3.27.0

func (*IpsecSaV4Dump) GetMessageType() api.MessageType

func (*IpsecSaV4Dump) Marshal added in v3.27.0

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

func (*IpsecSaV4Dump) Reset added in v3.27.0

func (m *IpsecSaV4Dump) Reset()

func (*IpsecSaV4Dump) Size added in v3.27.0

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

func (*IpsecSaV4Dump) Unmarshal added in v3.27.0

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

type IpsecSaV5Details added in v3.28.0

type IpsecSaV5Details struct {
	Entry          ipsec_types.IpsecSadEntryV4    `binapi:"ipsec_sad_entry_v4,name=entry" json:"entry,omitempty"`
	SwIfIndex      interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,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"`
	ThreadIndex    uint32                         `binapi:"u32,name=thread_index" json:"thread_index,omitempty"`
	StatIndex      uint32                         `binapi:"u32,name=stat_index" json:"stat_index,omitempty"`
}

IpsecSaV5Details defines message 'ipsec_sa_v5_details'.

func (*IpsecSaV5Details) GetCrcString added in v3.28.0

func (*IpsecSaV5Details) GetCrcString() string

func (*IpsecSaV5Details) GetMessageName added in v3.28.0

func (*IpsecSaV5Details) GetMessageName() string

func (*IpsecSaV5Details) GetMessageType added in v3.28.0

func (*IpsecSaV5Details) GetMessageType() api.MessageType

func (*IpsecSaV5Details) Marshal added in v3.28.0

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

func (*IpsecSaV5Details) Reset added in v3.28.0

func (m *IpsecSaV5Details) Reset()

func (*IpsecSaV5Details) Size added in v3.28.0

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

func (*IpsecSaV5Details) Unmarshal added in v3.28.0

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

type IpsecSaV5Dump added in v3.28.0

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

IpsecSaV5Dump defines message 'ipsec_sa_v5_dump'.

func (*IpsecSaV5Dump) GetCrcString added in v3.28.0

func (*IpsecSaV5Dump) GetCrcString() string

func (*IpsecSaV5Dump) GetMessageName added in v3.28.0

func (*IpsecSaV5Dump) GetMessageName() string

func (*IpsecSaV5Dump) GetMessageType added in v3.28.0

func (*IpsecSaV5Dump) GetMessageType() api.MessageType

func (*IpsecSaV5Dump) Marshal added in v3.28.0

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

func (*IpsecSaV5Dump) Reset added in v3.28.0

func (m *IpsecSaV5Dump) Reset()

func (*IpsecSaV5Dump) Size added in v3.28.0

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

func (*IpsecSaV5Dump) Unmarshal added in v3.28.0

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

type IpsecSadBind added in v3.27.0

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

An API to bind an SAD entry to a specific worker

  • sa_id - the id of the SA to bind
  • worker - the worker's index to which the SA will be bound to

IpsecSadBind defines message 'ipsec_sad_bind'.

func (*IpsecSadBind) GetCrcString added in v3.27.0

func (*IpsecSadBind) GetCrcString() string

func (*IpsecSadBind) GetMessageName added in v3.27.0

func (*IpsecSadBind) GetMessageName() string

func (*IpsecSadBind) GetMessageType added in v3.27.0

func (*IpsecSadBind) GetMessageType() api.MessageType

func (*IpsecSadBind) Marshal added in v3.27.0

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

func (*IpsecSadBind) Reset added in v3.27.0

func (m *IpsecSadBind) Reset()

func (*IpsecSadBind) Size added in v3.27.0

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

func (*IpsecSadBind) Unmarshal added in v3.27.0

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

type IpsecSadBindReply added in v3.27.0

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

IpsecSadBindReply defines message 'ipsec_sad_bind_reply'.

func (*IpsecSadBindReply) GetCrcString added in v3.27.0

func (*IpsecSadBindReply) GetCrcString() string

func (*IpsecSadBindReply) GetMessageName added in v3.27.0

func (*IpsecSadBindReply) GetMessageName() string

func (*IpsecSadBindReply) GetMessageType added in v3.27.0

func (*IpsecSadBindReply) GetMessageType() api.MessageType

func (*IpsecSadBindReply) Marshal added in v3.27.0

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

func (*IpsecSadBindReply) Reset added in v3.27.0

func (m *IpsecSadBindReply) Reset()

func (*IpsecSadBindReply) Size added in v3.27.0

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

func (*IpsecSadBindReply) Unmarshal added in v3.27.0

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

type IpsecSadEntryAdd

type IpsecSadEntryAdd struct {
	Entry ipsec_types.IpsecSadEntryV3 `binapi:"ipsec_sad_entry_v3,name=entry" json:"entry,omitempty"`
}

IpsecSadEntryAdd defines message 'ipsec_sad_entry_add'.

func (*IpsecSadEntryAdd) GetCrcString

func (*IpsecSadEntryAdd) GetCrcString() string

func (*IpsecSadEntryAdd) GetMessageName

func (*IpsecSadEntryAdd) GetMessageName() string

func (*IpsecSadEntryAdd) GetMessageType

func (*IpsecSadEntryAdd) GetMessageType() api.MessageType

func (*IpsecSadEntryAdd) Marshal

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

func (*IpsecSadEntryAdd) Reset

func (m *IpsecSadEntryAdd) Reset()

func (*IpsecSadEntryAdd) Size

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

func (*IpsecSadEntryAdd) Unmarshal

func (m *IpsecSadEntryAdd) 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"`
}

IPsec: Add/delete Security Association Database entry

  • entry - Entry to add or delete

IpsecSadEntryAddDel defines message 'ipsec_sad_entry_add_del'. Deprecated: the message will be removed in the future versions

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'. Deprecated: the message will be removed in the future versions

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 IpsecSadEntryAddDelV2

type IpsecSadEntryAddDelV2 struct {
	IsAdd bool                        `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Entry ipsec_types.IpsecSadEntryV2 `binapi:"ipsec_sad_entry_v2,name=entry" json:"entry,omitempty"`
}

IpsecSadEntryAddDelV2 defines message 'ipsec_sad_entry_add_del_v2'. Deprecated: the message will be removed in the future versions

func (*IpsecSadEntryAddDelV2) GetCrcString

func (*IpsecSadEntryAddDelV2) GetCrcString() string

func (*IpsecSadEntryAddDelV2) GetMessageName

func (*IpsecSadEntryAddDelV2) GetMessageName() string

func (*IpsecSadEntryAddDelV2) GetMessageType

func (*IpsecSadEntryAddDelV2) GetMessageType() api.MessageType

func (*IpsecSadEntryAddDelV2) Marshal

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

func (*IpsecSadEntryAddDelV2) Reset

func (m *IpsecSadEntryAddDelV2) Reset()

func (*IpsecSadEntryAddDelV2) Size

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

func (*IpsecSadEntryAddDelV2) Unmarshal

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

type IpsecSadEntryAddDelV2Reply

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

IpsecSadEntryAddDelV2Reply defines message 'ipsec_sad_entry_add_del_v2_reply'. Deprecated: the message will be removed in the future versions

func (*IpsecSadEntryAddDelV2Reply) GetCrcString

func (*IpsecSadEntryAddDelV2Reply) GetCrcString() string

func (*IpsecSadEntryAddDelV2Reply) GetMessageName

func (*IpsecSadEntryAddDelV2Reply) GetMessageName() string

func (*IpsecSadEntryAddDelV2Reply) GetMessageType

func (*IpsecSadEntryAddDelV2Reply) GetMessageType() api.MessageType

func (*IpsecSadEntryAddDelV2Reply) Marshal

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

func (*IpsecSadEntryAddDelV2Reply) Reset

func (m *IpsecSadEntryAddDelV2Reply) Reset()

func (*IpsecSadEntryAddDelV2Reply) Size

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

func (*IpsecSadEntryAddDelV2Reply) Unmarshal

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

type IpsecSadEntryAddDelV3

type IpsecSadEntryAddDelV3 struct {
	IsAdd bool                        `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Entry ipsec_types.IpsecSadEntryV3 `binapi:"ipsec_sad_entry_v3,name=entry" json:"entry,omitempty"`
}

IpsecSadEntryAddDelV3 defines message 'ipsec_sad_entry_add_del_v3'.

func (*IpsecSadEntryAddDelV3) GetCrcString

func (*IpsecSadEntryAddDelV3) GetCrcString() string

func (*IpsecSadEntryAddDelV3) GetMessageName

func (*IpsecSadEntryAddDelV3) GetMessageName() string

func (*IpsecSadEntryAddDelV3) GetMessageType

func (*IpsecSadEntryAddDelV3) GetMessageType() api.MessageType

func (*IpsecSadEntryAddDelV3) Marshal

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

func (*IpsecSadEntryAddDelV3) Reset

func (m *IpsecSadEntryAddDelV3) Reset()

func (*IpsecSadEntryAddDelV3) Size

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

func (*IpsecSadEntryAddDelV3) Unmarshal

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

type IpsecSadEntryAddDelV3Reply

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

IpsecSadEntryAddDelV3Reply defines message 'ipsec_sad_entry_add_del_v3_reply'.

func (*IpsecSadEntryAddDelV3Reply) GetCrcString

func (*IpsecSadEntryAddDelV3Reply) GetCrcString() string

func (*IpsecSadEntryAddDelV3Reply) GetMessageName

func (*IpsecSadEntryAddDelV3Reply) GetMessageName() string

func (*IpsecSadEntryAddDelV3Reply) GetMessageType

func (*IpsecSadEntryAddDelV3Reply) GetMessageType() api.MessageType

func (*IpsecSadEntryAddDelV3Reply) Marshal

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

func (*IpsecSadEntryAddDelV3Reply) Reset

func (m *IpsecSadEntryAddDelV3Reply) Reset()

func (*IpsecSadEntryAddDelV3Reply) Size

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

func (*IpsecSadEntryAddDelV3Reply) Unmarshal

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

type IpsecSadEntryAddReply

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

IpsecSadEntryAddReply defines message 'ipsec_sad_entry_add_reply'.

func (*IpsecSadEntryAddReply) GetCrcString

func (*IpsecSadEntryAddReply) GetCrcString() string

func (*IpsecSadEntryAddReply) GetMessageName

func (*IpsecSadEntryAddReply) GetMessageName() string

func (*IpsecSadEntryAddReply) GetMessageType

func (*IpsecSadEntryAddReply) GetMessageType() api.MessageType

func (*IpsecSadEntryAddReply) Marshal

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

func (*IpsecSadEntryAddReply) Reset

func (m *IpsecSadEntryAddReply) Reset()

func (*IpsecSadEntryAddReply) Size

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

func (*IpsecSadEntryAddReply) Unmarshal

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

type IpsecSadEntryAddV2 added in v3.28.0

type IpsecSadEntryAddV2 struct {
	Entry ipsec_types.IpsecSadEntryV4 `binapi:"ipsec_sad_entry_v4,name=entry" json:"entry,omitempty"`
}

IpsecSadEntryAddV2 defines message 'ipsec_sad_entry_add_v2'.

func (*IpsecSadEntryAddV2) GetCrcString added in v3.28.0

func (*IpsecSadEntryAddV2) GetCrcString() string

func (*IpsecSadEntryAddV2) GetMessageName added in v3.28.0

func (*IpsecSadEntryAddV2) GetMessageName() string

func (*IpsecSadEntryAddV2) GetMessageType added in v3.28.0

func (*IpsecSadEntryAddV2) GetMessageType() api.MessageType

func (*IpsecSadEntryAddV2) Marshal added in v3.28.0

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

func (*IpsecSadEntryAddV2) Reset added in v3.28.0

func (m *IpsecSadEntryAddV2) Reset()

func (*IpsecSadEntryAddV2) Size added in v3.28.0

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

func (*IpsecSadEntryAddV2) Unmarshal added in v3.28.0

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

type IpsecSadEntryAddV2Reply added in v3.28.0

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

IpsecSadEntryAddV2Reply defines message 'ipsec_sad_entry_add_v2_reply'.

func (*IpsecSadEntryAddV2Reply) GetCrcString added in v3.28.0

func (*IpsecSadEntryAddV2Reply) GetCrcString() string

func (*IpsecSadEntryAddV2Reply) GetMessageName added in v3.28.0

func (*IpsecSadEntryAddV2Reply) GetMessageName() string

func (*IpsecSadEntryAddV2Reply) GetMessageType added in v3.28.0

func (*IpsecSadEntryAddV2Reply) GetMessageType() api.MessageType

func (*IpsecSadEntryAddV2Reply) Marshal added in v3.28.0

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

func (*IpsecSadEntryAddV2Reply) Reset added in v3.28.0

func (m *IpsecSadEntryAddV2Reply) Reset()

func (*IpsecSadEntryAddV2Reply) Size added in v3.28.0

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

func (*IpsecSadEntryAddV2Reply) Unmarshal added in v3.28.0

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

type IpsecSadEntryDel

type IpsecSadEntryDel struct {
	ID uint32 `binapi:"u32,name=id" json:"id,omitempty"`
}

IpsecSadEntryDel defines message 'ipsec_sad_entry_del'.

func (*IpsecSadEntryDel) GetCrcString

func (*IpsecSadEntryDel) GetCrcString() string

func (*IpsecSadEntryDel) GetMessageName

func (*IpsecSadEntryDel) GetMessageName() string

func (*IpsecSadEntryDel) GetMessageType

func (*IpsecSadEntryDel) GetMessageType() api.MessageType

func (*IpsecSadEntryDel) Marshal

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

func (*IpsecSadEntryDel) Reset

func (m *IpsecSadEntryDel) Reset()

func (*IpsecSadEntryDel) Size

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

func (*IpsecSadEntryDel) Unmarshal

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

type IpsecSadEntryDelReply

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

IpsecSadEntryDelReply defines message 'ipsec_sad_entry_del_reply'.

func (*IpsecSadEntryDelReply) GetCrcString

func (*IpsecSadEntryDelReply) GetCrcString() string

func (*IpsecSadEntryDelReply) GetMessageName

func (*IpsecSadEntryDelReply) GetMessageName() string

func (*IpsecSadEntryDelReply) GetMessageType

func (*IpsecSadEntryDelReply) GetMessageType() api.MessageType

func (*IpsecSadEntryDelReply) Marshal

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

func (*IpsecSadEntryDelReply) Reset

func (m *IpsecSadEntryDelReply) Reset()

func (*IpsecSadEntryDelReply) Size

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

func (*IpsecSadEntryDelReply) Unmarshal

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

type IpsecSadEntryUpdate

type IpsecSadEntryUpdate struct {
	SadID      uint32              `binapi:"u32,name=sad_id" json:"sad_id,omitempty"`
	IsTun      bool                `binapi:"bool,name=is_tun" json:"is_tun,omitempty"`
	Tunnel     tunnel_types.Tunnel `binapi:"tunnel,name=tunnel" json:"tunnel,omitempty"`
	UDPSrcPort uint16              `binapi:"u16,name=udp_src_port,default=65535" json:"udp_src_port,omitempty"`
	UDPDstPort uint16              `binapi:"u16,name=udp_dst_port,default=65535" json:"udp_dst_port,omitempty"`
}

An API to update the tunnel parameters and the ports associated with an SA

Used in the NAT-T case when the NAT data changes
- sa_id - the id of the SA to update
- is_tun - update the tunnel if non-zero, else update only the ports
- tunnel - sender context, to match reply w/ request
- udp_src_port - new src port for NAT-T. Used if different from 0xffff
- udp_dst_port - new dst port for NAT-T. Used if different from 0xffff

IpsecSadEntryUpdate defines message 'ipsec_sad_entry_update'.

func (*IpsecSadEntryUpdate) GetCrcString

func (*IpsecSadEntryUpdate) GetCrcString() string

func (*IpsecSadEntryUpdate) GetMessageName

func (*IpsecSadEntryUpdate) GetMessageName() string

func (*IpsecSadEntryUpdate) GetMessageType

func (*IpsecSadEntryUpdate) GetMessageType() api.MessageType

func (*IpsecSadEntryUpdate) Marshal

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

func (*IpsecSadEntryUpdate) Reset

func (m *IpsecSadEntryUpdate) Reset()

func (*IpsecSadEntryUpdate) Size

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

func (*IpsecSadEntryUpdate) Unmarshal

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

type IpsecSadEntryUpdateReply

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

IpsecSadEntryUpdateReply defines message 'ipsec_sad_entry_update_reply'.

func (*IpsecSadEntryUpdateReply) GetCrcString

func (*IpsecSadEntryUpdateReply) GetCrcString() string

func (*IpsecSadEntryUpdateReply) GetMessageName

func (*IpsecSadEntryUpdateReply) GetMessageName() string

func (*IpsecSadEntryUpdateReply) GetMessageType

func (*IpsecSadEntryUpdateReply) GetMessageType() api.MessageType

func (*IpsecSadEntryUpdateReply) Marshal

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

func (*IpsecSadEntryUpdateReply) Reset

func (m *IpsecSadEntryUpdateReply) Reset()

func (*IpsecSadEntryUpdateReply) Size

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

func (*IpsecSadEntryUpdateReply) Unmarshal

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

type IpsecSadUnbind added in v3.27.0

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

IpsecSadUnbind defines message 'ipsec_sad_unbind'.

func (*IpsecSadUnbind) GetCrcString added in v3.27.0

func (*IpsecSadUnbind) GetCrcString() string

func (*IpsecSadUnbind) GetMessageName added in v3.27.0

func (*IpsecSadUnbind) GetMessageName() string

func (*IpsecSadUnbind) GetMessageType added in v3.27.0

func (*IpsecSadUnbind) GetMessageType() api.MessageType

func (*IpsecSadUnbind) Marshal added in v3.27.0

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

func (*IpsecSadUnbind) Reset added in v3.27.0

func (m *IpsecSadUnbind) Reset()

func (*IpsecSadUnbind) Size added in v3.27.0

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

func (*IpsecSadUnbind) Unmarshal added in v3.27.0

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

type IpsecSadUnbindReply added in v3.27.0

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

IpsecSadUnbindReply defines message 'ipsec_sad_unbind_reply'.

func (*IpsecSadUnbindReply) GetCrcString added in v3.27.0

func (*IpsecSadUnbindReply) GetCrcString() string

func (*IpsecSadUnbindReply) GetMessageName added in v3.27.0

func (*IpsecSadUnbindReply) GetMessageName() string

func (*IpsecSadUnbindReply) GetMessageType added in v3.27.0

func (*IpsecSadUnbindReply) GetMessageType() api.MessageType

func (*IpsecSadUnbindReply) Marshal added in v3.27.0

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

func (*IpsecSadUnbindReply) Reset added in v3.27.0

func (m *IpsecSadUnbindReply) Reset()

func (*IpsecSadUnbindReply) Size added in v3.27.0

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

func (*IpsecSadUnbindReply) Unmarshal added in v3.27.0

func (m *IpsecSadUnbindReply) 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"`
}

Select IPsec backend

  • protocol - IPsec protocol (value from ipsec_protocol_t)
  • index - backend index

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 IpsecSetAsyncMode

type IpsecSetAsyncMode struct {
	AsyncEnable bool `binapi:"bool,name=async_enable" json:"async_enable,omitempty"`
}

IPsec Set Async mode

  • async_enable - ipsec async mode on or off

IpsecSetAsyncMode defines message 'ipsec_set_async_mode'.

func (*IpsecSetAsyncMode) GetCrcString

func (*IpsecSetAsyncMode) GetCrcString() string

func (*IpsecSetAsyncMode) GetMessageName

func (*IpsecSetAsyncMode) GetMessageName() string

func (*IpsecSetAsyncMode) GetMessageType

func (*IpsecSetAsyncMode) GetMessageType() api.MessageType

func (*IpsecSetAsyncMode) Marshal

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

func (*IpsecSetAsyncMode) Reset

func (m *IpsecSetAsyncMode) Reset()

func (*IpsecSetAsyncMode) Size

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

func (*IpsecSetAsyncMode) Unmarshal

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

type IpsecSetAsyncModeReply

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

IpsecSetAsyncModeReply defines message 'ipsec_set_async_mode_reply'.

func (*IpsecSetAsyncModeReply) GetCrcString

func (*IpsecSetAsyncModeReply) GetCrcString() string

func (*IpsecSetAsyncModeReply) GetMessageName

func (*IpsecSetAsyncModeReply) GetMessageName() string

func (*IpsecSetAsyncModeReply) GetMessageType

func (*IpsecSetAsyncModeReply) GetMessageType() api.MessageType

func (*IpsecSetAsyncModeReply) Marshal

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

func (*IpsecSetAsyncModeReply) Reset

func (m *IpsecSetAsyncModeReply) Reset()

func (*IpsecSetAsyncModeReply) Size

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

func (*IpsecSetAsyncModeReply) Unmarshal

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

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"`
}

IPsec: Add/delete Security Policy Database

  • is_add - add SPD if non-zero, else delete
  • spd_id - SPD instance id (control plane allocated)

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 ipsec_types.IpsecSpdEntry `binapi:"ipsec_spd_entry,name=entry" json:"entry,omitempty"`
}

IPsec policy database response

€param entry - The SPD entry.
- bytes - byte count of packets matching this policy
- packets - count of packets matching this policy

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"`
}

Dump ipsec policy database data

  • spd_id - SPD instance id
  • sa_id - SA id, optional, set to ~0 to see all policies in SPD

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 IpsecSpdEntryAddDel

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

IPsec: Add/delete Security Policy Database entry

  • is_add - add SPD if non-zero, else delete
  • entry - Description of the entry to add/dell

IpsecSpdEntryAddDel defines message 'ipsec_spd_entry_add_del'. Deprecated: the message will be removed in the future versions

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"`
}

IPsec: Reply Add/delete Security Policy Database entry

  • retval - success/fail rutrun code
  • stat_index - An index for the policy in the stats segment @ /net/ipec/policy

IpsecSpdEntryAddDelReply defines message 'ipsec_spd_entry_add_del_reply'. Deprecated: the message will be removed in the future versions

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 IpsecSpdEntryAddDelV2

type IpsecSpdEntryAddDelV2 struct {
	IsAdd bool                        `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Entry ipsec_types.IpsecSpdEntryV2 `binapi:"ipsec_spd_entry_v2,name=entry" json:"entry,omitempty"`
}

IPsec: Add/delete Security Policy Database entry v2

  • is_add - add SPD if non-zero, else delete
  • entry - Description of the entry to add/dell

IpsecSpdEntryAddDelV2 defines message 'ipsec_spd_entry_add_del_v2'.

func (*IpsecSpdEntryAddDelV2) GetCrcString

func (*IpsecSpdEntryAddDelV2) GetCrcString() string

func (*IpsecSpdEntryAddDelV2) GetMessageName

func (*IpsecSpdEntryAddDelV2) GetMessageName() string

func (*IpsecSpdEntryAddDelV2) GetMessageType

func (*IpsecSpdEntryAddDelV2) GetMessageType() api.MessageType

func (*IpsecSpdEntryAddDelV2) Marshal

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

func (*IpsecSpdEntryAddDelV2) Reset

func (m *IpsecSpdEntryAddDelV2) Reset()

func (*IpsecSpdEntryAddDelV2) Size

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

func (*IpsecSpdEntryAddDelV2) Unmarshal

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

type IpsecSpdEntryAddDelV2Reply

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

IPsec: Reply Add/delete Security Policy Database entry v2

  • retval - success/fail rutrun code
  • stat_index - An index for the policy in the stats segment @ /net/ipec/policy

IpsecSpdEntryAddDelV2Reply defines message 'ipsec_spd_entry_add_del_v2_reply'.

func (*IpsecSpdEntryAddDelV2Reply) GetCrcString

func (*IpsecSpdEntryAddDelV2Reply) GetCrcString() string

func (*IpsecSpdEntryAddDelV2Reply) GetMessageName

func (*IpsecSpdEntryAddDelV2Reply) GetMessageName() string

func (*IpsecSpdEntryAddDelV2Reply) GetMessageType

func (*IpsecSpdEntryAddDelV2Reply) GetMessageType() api.MessageType

func (*IpsecSpdEntryAddDelV2Reply) Marshal

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

func (*IpsecSpdEntryAddDelV2Reply) Reset

func (m *IpsecSpdEntryAddDelV2Reply) Reset()

func (*IpsecSpdEntryAddDelV2Reply) Size

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

func (*IpsecSpdEntryAddDelV2Reply) Unmarshal

func (m *IpsecSpdEntryAddDelV2Reply) 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"`
}

IPsec: SPD interface response

  • spd_index - SPD index
  • sw_if_index - index of the interface

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"`
}

IPsec: Get SPD interfaces

  • spd_index - SPD index
  • spd_index_valid - if 1 spd_index is used to filter spd_index's, if 0 no filtering is done

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"`
}

Dump IPsec all SPD IDs response

  • spd_id - SPD instance id (control plane allocated)
  • npolicies - number of policies in SPD

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{}

Dump IPsec all SPD IDs 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 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"`
}

* @brief Dump all tunnel protections 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"`
}

Add or Update Protection for a tunnel with IPSEC

Tunnel protection directly associates an SA with all packets
ingress and egress on the tunnel. This could also be achieved by
assigning an SPD to the tunnel, but that would incur an unnessccary
SPD entry lookup.
For tunnels the ESP acts on the post-encapsulated packet. So if this
packet:
  +---------+------+
  | Payload | O-IP |
  +---------+------+
where O-IP is the overlay IP addrees that was routed into the tunnel,
the resulting encapsulated packet will be:
  +---------+------+------+
  | Payload | O-IP | T-IP |
  +---------+------+------+
where T-IP is the tunnel's src.dst IP addresses.
If the SAs used for protection are in transport mode then the ESP is
inserted before T-IP, i.e.:
  +---------+------+-----+------+
  | Payload | O-IP | ESP | T-IP |
  +---------+------+-----+------+
If the SAs used for protection are in tunnel mode then another
encapsulation occurs, i.e.:
  +---------+------+------+-----+------+
  | Payload | O-IP | T-IP | ESP | C-IP |
  +---------+------+------+-----+------+
where C-IP are the crypto endpoint IP addresses defined as the tunnel
endpoints in the SA.
The mode for the inbound and outbound SA must be the same.
- sw_id_index - Tunnel interface to protect
- nh - The peer/next-hop on the tunnel to which the traffic
            should be protected. For a P2P interface set this to the
            all 0s address.
- sa_in - The ID [set] of inbound SAs
- sa_out - The ID of outbound SA

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)
	IpsecItfCreate(ctx context.Context, in *IpsecItfCreate) (*IpsecItfCreateReply, error)
	IpsecItfDelete(ctx context.Context, in *IpsecItfDelete) (*IpsecItfDeleteReply, error)
	IpsecItfDump(ctx context.Context, in *IpsecItfDump) (RPCService_IpsecItfDumpClient, error)
	IpsecSaDump(ctx context.Context, in *IpsecSaDump) (RPCService_IpsecSaDumpClient, error)
	IpsecSaV2Dump(ctx context.Context, in *IpsecSaV2Dump) (RPCService_IpsecSaV2DumpClient, error)
	IpsecSaV3Dump(ctx context.Context, in *IpsecSaV3Dump) (RPCService_IpsecSaV3DumpClient, error)
	IpsecSaV4Dump(ctx context.Context, in *IpsecSaV4Dump) (RPCService_IpsecSaV4DumpClient, error)
	IpsecSaV5Dump(ctx context.Context, in *IpsecSaV5Dump) (RPCService_IpsecSaV5DumpClient, error)
	IpsecSadBind(ctx context.Context, in *IpsecSadBind) (*IpsecSadBindReply, error)
	IpsecSadEntryAdd(ctx context.Context, in *IpsecSadEntryAdd) (*IpsecSadEntryAddReply, error)
	IpsecSadEntryAddDel(ctx context.Context, in *IpsecSadEntryAddDel) (*IpsecSadEntryAddDelReply, error)
	IpsecSadEntryAddDelV2(ctx context.Context, in *IpsecSadEntryAddDelV2) (*IpsecSadEntryAddDelV2Reply, error)
	IpsecSadEntryAddDelV3(ctx context.Context, in *IpsecSadEntryAddDelV3) (*IpsecSadEntryAddDelV3Reply, error)
	IpsecSadEntryAddV2(ctx context.Context, in *IpsecSadEntryAddV2) (*IpsecSadEntryAddV2Reply, error)
	IpsecSadEntryDel(ctx context.Context, in *IpsecSadEntryDel) (*IpsecSadEntryDelReply, error)
	IpsecSadEntryUpdate(ctx context.Context, in *IpsecSadEntryUpdate) (*IpsecSadEntryUpdateReply, error)
	IpsecSadUnbind(ctx context.Context, in *IpsecSadUnbind) (*IpsecSadUnbindReply, error)
	IpsecSelectBackend(ctx context.Context, in *IpsecSelectBackend) (*IpsecSelectBackendReply, error)
	IpsecSetAsyncMode(ctx context.Context, in *IpsecSetAsyncMode) (*IpsecSetAsyncModeReply, 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)
	IpsecSpdEntryAddDelV2(ctx context.Context, in *IpsecSpdEntryAddDelV2) (*IpsecSpdEntryAddDelV2Reply, error)
	IpsecSpdInterfaceDump(ctx context.Context, in *IpsecSpdInterfaceDump) (RPCService_IpsecSpdInterfaceDumpClient, error)
	IpsecSpdsDump(ctx context.Context, in *IpsecSpdsDump) (RPCService_IpsecSpdsDumpClient, 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_IpsecItfDumpClient

type RPCService_IpsecItfDumpClient interface {
	Recv() (*IpsecItfDetails, error)
	api.Stream
}

type RPCService_IpsecSaDumpClient

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

type RPCService_IpsecSaV2DumpClient

type RPCService_IpsecSaV2DumpClient interface {
	Recv() (*IpsecSaV2Details, error)
	api.Stream
}

type RPCService_IpsecSaV3DumpClient

type RPCService_IpsecSaV3DumpClient interface {
	Recv() (*IpsecSaV3Details, error)
	api.Stream
}

type RPCService_IpsecSaV4DumpClient added in v3.27.0

type RPCService_IpsecSaV4DumpClient interface {
	Recv() (*IpsecSaV4Details, error)
	api.Stream
}

type RPCService_IpsecSaV5DumpClient added in v3.28.0

type RPCService_IpsecSaV5DumpClient interface {
	Recv() (*IpsecSaV5Details, 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