nat64

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Contents: - 26 messages

Index

Constants

View Source
const (
	APIFile    = "nat64"
	APIVersion = "1.0.0"
	VersionCrc = 0xfbd06e33
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type Nat64AddDelInterface

type Nat64AddDelInterface struct {
	IsAdd     bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

Enable/disable NAT64 feature on the interface

  • is_add - true if add, false if delete
  • flags - flag NAT_IS_INSIDE if interface is inside else interface is outside
  • sw_if_index - index of the interface

Nat64AddDelInterface defines message 'nat64_add_del_interface'.

func (*Nat64AddDelInterface) GetCrcString

func (*Nat64AddDelInterface) GetCrcString() string

func (*Nat64AddDelInterface) GetMessageName

func (*Nat64AddDelInterface) GetMessageName() string

func (*Nat64AddDelInterface) GetMessageType

func (*Nat64AddDelInterface) GetMessageType() api.MessageType

func (*Nat64AddDelInterface) Marshal

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

func (*Nat64AddDelInterface) Reset

func (m *Nat64AddDelInterface) Reset()

func (*Nat64AddDelInterface) Size

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

func (*Nat64AddDelInterface) Unmarshal

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

type Nat64AddDelInterfaceAddr

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

Add/delete NAT64 pool address from specific interfce

  • is_add - true if add, false if delete
  • sw_if_index - software index of the interface

Nat64AddDelInterfaceAddr defines message 'nat64_add_del_interface_addr'.

func (*Nat64AddDelInterfaceAddr) GetCrcString

func (*Nat64AddDelInterfaceAddr) GetCrcString() string

func (*Nat64AddDelInterfaceAddr) GetMessageName

func (*Nat64AddDelInterfaceAddr) GetMessageName() string

func (*Nat64AddDelInterfaceAddr) GetMessageType

func (*Nat64AddDelInterfaceAddr) GetMessageType() api.MessageType

func (*Nat64AddDelInterfaceAddr) Marshal

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

func (*Nat64AddDelInterfaceAddr) Reset

func (m *Nat64AddDelInterfaceAddr) Reset()

func (*Nat64AddDelInterfaceAddr) Size

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

func (*Nat64AddDelInterfaceAddr) Unmarshal

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

type Nat64AddDelInterfaceAddrReply

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

Nat64AddDelInterfaceAddrReply defines message 'nat64_add_del_interface_addr_reply'.

func (*Nat64AddDelInterfaceAddrReply) GetCrcString

func (*Nat64AddDelInterfaceAddrReply) GetCrcString() string

func (*Nat64AddDelInterfaceAddrReply) GetMessageName

func (*Nat64AddDelInterfaceAddrReply) GetMessageName() string

func (*Nat64AddDelInterfaceAddrReply) GetMessageType

func (*Nat64AddDelInterfaceAddrReply) GetMessageType() api.MessageType

func (*Nat64AddDelInterfaceAddrReply) Marshal

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

func (*Nat64AddDelInterfaceAddrReply) Reset

func (m *Nat64AddDelInterfaceAddrReply) Reset()

func (*Nat64AddDelInterfaceAddrReply) Size

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

func (*Nat64AddDelInterfaceAddrReply) Unmarshal

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

type Nat64AddDelInterfaceReply

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

Nat64AddDelInterfaceReply defines message 'nat64_add_del_interface_reply'.

func (*Nat64AddDelInterfaceReply) GetCrcString

func (*Nat64AddDelInterfaceReply) GetCrcString() string

func (*Nat64AddDelInterfaceReply) GetMessageName

func (*Nat64AddDelInterfaceReply) GetMessageName() string

func (*Nat64AddDelInterfaceReply) GetMessageType

func (*Nat64AddDelInterfaceReply) GetMessageType() api.MessageType

func (*Nat64AddDelInterfaceReply) Marshal

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

func (*Nat64AddDelInterfaceReply) Reset

func (m *Nat64AddDelInterfaceReply) Reset()

func (*Nat64AddDelInterfaceReply) Size

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

func (*Nat64AddDelInterfaceReply) Unmarshal

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

type Nat64AddDelPoolAddrRange

type Nat64AddDelPoolAddrRange struct {
	StartAddr ip_types.IP4Address `binapi:"ip4_address,name=start_addr" json:"start_addr,omitempty"`
	EndAddr   ip_types.IP4Address `binapi:"ip4_address,name=end_addr" json:"end_addr,omitempty"`
	VrfID     uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
	IsAdd     bool                `binapi:"bool,name=is_add" json:"is_add,omitempty"`
}

Add/delete address range to NAT64 pool

  • start_addr - start IPv4 address of the range
  • end_addr - end IPv4 address of the range
  • vrf_id - VRF id of tenant, ~0 means independent of VRF
  • is_add - true if add, false if delete

Nat64AddDelPoolAddrRange defines message 'nat64_add_del_pool_addr_range'.

func (*Nat64AddDelPoolAddrRange) GetCrcString

func (*Nat64AddDelPoolAddrRange) GetCrcString() string

func (*Nat64AddDelPoolAddrRange) GetMessageName

func (*Nat64AddDelPoolAddrRange) GetMessageName() string

func (*Nat64AddDelPoolAddrRange) GetMessageType

func (*Nat64AddDelPoolAddrRange) GetMessageType() api.MessageType

func (*Nat64AddDelPoolAddrRange) Marshal

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

func (*Nat64AddDelPoolAddrRange) Reset

func (m *Nat64AddDelPoolAddrRange) Reset()

func (*Nat64AddDelPoolAddrRange) Size

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

func (*Nat64AddDelPoolAddrRange) Unmarshal

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

type Nat64AddDelPoolAddrRangeReply

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

Nat64AddDelPoolAddrRangeReply defines message 'nat64_add_del_pool_addr_range_reply'.

func (*Nat64AddDelPoolAddrRangeReply) GetCrcString

func (*Nat64AddDelPoolAddrRangeReply) GetCrcString() string

func (*Nat64AddDelPoolAddrRangeReply) GetMessageName

func (*Nat64AddDelPoolAddrRangeReply) GetMessageName() string

func (*Nat64AddDelPoolAddrRangeReply) GetMessageType

func (*Nat64AddDelPoolAddrRangeReply) GetMessageType() api.MessageType

func (*Nat64AddDelPoolAddrRangeReply) Marshal

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

func (*Nat64AddDelPoolAddrRangeReply) Reset

func (m *Nat64AddDelPoolAddrRangeReply) Reset()

func (*Nat64AddDelPoolAddrRangeReply) Size

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

func (*Nat64AddDelPoolAddrRangeReply) Unmarshal

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

type Nat64AddDelPrefix

type Nat64AddDelPrefix struct {
	Prefix ip_types.IP6Prefix `binapi:"ip6_prefix,name=prefix" json:"prefix,omitempty"`
	VrfID  uint32             `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
	IsAdd  bool               `binapi:"bool,name=is_add" json:"is_add,omitempty"`
}

Add/del NAT64 prefix

  • prefix - NAT64 prefix
  • vrf_id - VRF id of tenant
  • is_add - true if add, false if delete

Nat64AddDelPrefix defines message 'nat64_add_del_prefix'.

func (*Nat64AddDelPrefix) GetCrcString

func (*Nat64AddDelPrefix) GetCrcString() string

func (*Nat64AddDelPrefix) GetMessageName

func (*Nat64AddDelPrefix) GetMessageName() string

func (*Nat64AddDelPrefix) GetMessageType

func (*Nat64AddDelPrefix) GetMessageType() api.MessageType

func (*Nat64AddDelPrefix) Marshal

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

func (*Nat64AddDelPrefix) Reset

func (m *Nat64AddDelPrefix) Reset()

func (*Nat64AddDelPrefix) Size

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

func (*Nat64AddDelPrefix) Unmarshal

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

type Nat64AddDelPrefixReply

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

Nat64AddDelPrefixReply defines message 'nat64_add_del_prefix_reply'.

func (*Nat64AddDelPrefixReply) GetCrcString

func (*Nat64AddDelPrefixReply) GetCrcString() string

func (*Nat64AddDelPrefixReply) GetMessageName

func (*Nat64AddDelPrefixReply) GetMessageName() string

func (*Nat64AddDelPrefixReply) GetMessageType

func (*Nat64AddDelPrefixReply) GetMessageType() api.MessageType

func (*Nat64AddDelPrefixReply) Marshal

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

func (*Nat64AddDelPrefixReply) Reset

func (m *Nat64AddDelPrefixReply) Reset()

func (*Nat64AddDelPrefixReply) Size

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

func (*Nat64AddDelPrefixReply) Unmarshal

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

type Nat64AddDelStaticBib

type Nat64AddDelStaticBib struct {
	IAddr ip_types.IP6Address `binapi:"ip6_address,name=i_addr" json:"i_addr,omitempty"`
	OAddr ip_types.IP4Address `binapi:"ip4_address,name=o_addr" json:"o_addr,omitempty"`
	IPort uint16              `binapi:"u16,name=i_port" json:"i_port,omitempty"`
	OPort uint16              `binapi:"u16,name=o_port" json:"o_port,omitempty"`
	VrfID uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
	Proto uint8               `binapi:"u8,name=proto" json:"proto,omitempty"`
	IsAdd bool                `binapi:"bool,name=is_add" json:"is_add,omitempty"`
}

Add/delete NAT64 static BIB entry

  • i_addr - inside IPv6 address
  • o_addr - outside IPv4 address
  • i_port - inside port number
  • o_port - outside port number
  • vrf_id - VRF id of tenant
  • proto - protocol number
  • is_add - true if add, false if delete

Nat64AddDelStaticBib defines message 'nat64_add_del_static_bib'.

func (*Nat64AddDelStaticBib) GetCrcString

func (*Nat64AddDelStaticBib) GetCrcString() string

func (*Nat64AddDelStaticBib) GetMessageName

func (*Nat64AddDelStaticBib) GetMessageName() string

func (*Nat64AddDelStaticBib) GetMessageType

func (*Nat64AddDelStaticBib) GetMessageType() api.MessageType

func (*Nat64AddDelStaticBib) Marshal

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

func (*Nat64AddDelStaticBib) Reset

func (m *Nat64AddDelStaticBib) Reset()

func (*Nat64AddDelStaticBib) Size

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

func (*Nat64AddDelStaticBib) Unmarshal

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

type Nat64AddDelStaticBibReply

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

Nat64AddDelStaticBibReply defines message 'nat64_add_del_static_bib_reply'.

func (*Nat64AddDelStaticBibReply) GetCrcString

func (*Nat64AddDelStaticBibReply) GetCrcString() string

func (*Nat64AddDelStaticBibReply) GetMessageName

func (*Nat64AddDelStaticBibReply) GetMessageName() string

func (*Nat64AddDelStaticBibReply) GetMessageType

func (*Nat64AddDelStaticBibReply) GetMessageType() api.MessageType

func (*Nat64AddDelStaticBibReply) Marshal

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

func (*Nat64AddDelStaticBibReply) Reset

func (m *Nat64AddDelStaticBibReply) Reset()

func (*Nat64AddDelStaticBibReply) Size

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

func (*Nat64AddDelStaticBibReply) Unmarshal

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

type Nat64BibDetails

type Nat64BibDetails struct {
	IAddr  ip_types.IP6Address      `binapi:"ip6_address,name=i_addr" json:"i_addr,omitempty"`
	OAddr  ip_types.IP4Address      `binapi:"ip4_address,name=o_addr" json:"o_addr,omitempty"`
	IPort  uint16                   `binapi:"u16,name=i_port" json:"i_port,omitempty"`
	OPort  uint16                   `binapi:"u16,name=o_port" json:"o_port,omitempty"`
	VrfID  uint32                   `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
	Proto  uint8                    `binapi:"u8,name=proto" json:"proto,omitempty"`
	Flags  nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
	SesNum uint32                   `binapi:"u32,name=ses_num" json:"ses_num,omitempty"`
}

NAT64 BIB details response

  • i_addr - inside IPv6 address
  • o_addr - outside IPv4 address
  • i_port - inside port number
  • o_port - outside port number
  • vrf_id - VRF id of tenant
  • proto - protocol number
  • flags - flag NAT_IS_STATIC if BIB entry is static or BIB entry is dynamic
  • ses_num - number of sessions associated with the BIB entry

Nat64BibDetails defines message 'nat64_bib_details'.

func (*Nat64BibDetails) GetCrcString

func (*Nat64BibDetails) GetCrcString() string

func (*Nat64BibDetails) GetMessageName

func (*Nat64BibDetails) GetMessageName() string

func (*Nat64BibDetails) GetMessageType

func (*Nat64BibDetails) GetMessageType() api.MessageType

func (*Nat64BibDetails) Marshal

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

func (*Nat64BibDetails) Reset

func (m *Nat64BibDetails) Reset()

func (*Nat64BibDetails) Size

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

func (*Nat64BibDetails) Unmarshal

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

type Nat64BibDump

type Nat64BibDump struct {
	Proto uint8 `binapi:"u8,name=proto" json:"proto,omitempty"`
}

Dump NAT64 BIB

  • proto - protocol of the BIB: 255 - all BIBs 6 - TCP BIB 17 - UDP BIB 1/58 - ICMP BIB otherwise - "unknown" protocol BIB

Nat64BibDump defines message 'nat64_bib_dump'.

func (*Nat64BibDump) GetCrcString

func (*Nat64BibDump) GetCrcString() string

func (*Nat64BibDump) GetMessageName

func (*Nat64BibDump) GetMessageName() string

func (*Nat64BibDump) GetMessageType

func (*Nat64BibDump) GetMessageType() api.MessageType

func (*Nat64BibDump) Marshal

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

func (*Nat64BibDump) Reset

func (m *Nat64BibDump) Reset()

func (*Nat64BibDump) Size

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

func (*Nat64BibDump) Unmarshal

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

type Nat64GetTimeouts

type Nat64GetTimeouts struct{}

Get values of timeouts for NAT64 sessions (seconds) Nat64GetTimeouts defines message 'nat64_get_timeouts'.

func (*Nat64GetTimeouts) GetCrcString

func (*Nat64GetTimeouts) GetCrcString() string

func (*Nat64GetTimeouts) GetMessageName

func (*Nat64GetTimeouts) GetMessageName() string

func (*Nat64GetTimeouts) GetMessageType

func (*Nat64GetTimeouts) GetMessageType() api.MessageType

func (*Nat64GetTimeouts) Marshal

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

func (*Nat64GetTimeouts) Reset

func (m *Nat64GetTimeouts) Reset()

func (*Nat64GetTimeouts) Size

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

func (*Nat64GetTimeouts) Unmarshal

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

type Nat64GetTimeoutsReply

type Nat64GetTimeoutsReply struct {
	Retval         int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	UDP            uint32 `binapi:"u32,name=udp" json:"udp,omitempty"`
	TCPEstablished uint32 `binapi:"u32,name=tcp_established" json:"tcp_established,omitempty"`
	TCPTransitory  uint32 `binapi:"u32,name=tcp_transitory" json:"tcp_transitory,omitempty"`
	ICMP           uint32 `binapi:"u32,name=icmp" json:"icmp,omitempty"`
}

Get values of timeouts for NAT64 sessions reply

  • retval - return code
  • udp - UDP timeout
  • tcp_established - TCP established timeout
  • tcp_transitory - TCP transitory timeout
  • icmp - ICMP timeout

Nat64GetTimeoutsReply defines message 'nat64_get_timeouts_reply'.

func (*Nat64GetTimeoutsReply) GetCrcString

func (*Nat64GetTimeoutsReply) GetCrcString() string

func (*Nat64GetTimeoutsReply) GetMessageName

func (*Nat64GetTimeoutsReply) GetMessageName() string

func (*Nat64GetTimeoutsReply) GetMessageType

func (*Nat64GetTimeoutsReply) GetMessageType() api.MessageType

func (*Nat64GetTimeoutsReply) Marshal

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

func (*Nat64GetTimeoutsReply) Reset

func (m *Nat64GetTimeoutsReply) Reset()

func (*Nat64GetTimeoutsReply) Size

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

func (*Nat64GetTimeoutsReply) Unmarshal

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

type Nat64InterfaceDetails

type Nat64InterfaceDetails struct {
	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

NAT64 interface details response

  • flags - flag NAT_IS_INSIDE if interface is inside, flag NAT_IS_OUTSIDE if interface is outside and if both flags are set the interface is both inside and outside
  • sw_if_index - index of the interface

Nat64InterfaceDetails defines message 'nat64_interface_details'.

func (*Nat64InterfaceDetails) GetCrcString

func (*Nat64InterfaceDetails) GetCrcString() string

func (*Nat64InterfaceDetails) GetMessageName

func (*Nat64InterfaceDetails) GetMessageName() string

func (*Nat64InterfaceDetails) GetMessageType

func (*Nat64InterfaceDetails) GetMessageType() api.MessageType

func (*Nat64InterfaceDetails) Marshal

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

func (*Nat64InterfaceDetails) Reset

func (m *Nat64InterfaceDetails) Reset()

func (*Nat64InterfaceDetails) Size

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

func (*Nat64InterfaceDetails) Unmarshal

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

type Nat64InterfaceDump

type Nat64InterfaceDump struct{}

Dump interfaces with NAT64 feature Nat64InterfaceDump defines message 'nat64_interface_dump'.

func (*Nat64InterfaceDump) GetCrcString

func (*Nat64InterfaceDump) GetCrcString() string

func (*Nat64InterfaceDump) GetMessageName

func (*Nat64InterfaceDump) GetMessageName() string

func (*Nat64InterfaceDump) GetMessageType

func (*Nat64InterfaceDump) GetMessageType() api.MessageType

func (*Nat64InterfaceDump) Marshal

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

func (*Nat64InterfaceDump) Reset

func (m *Nat64InterfaceDump) Reset()

func (*Nat64InterfaceDump) Size

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

func (*Nat64InterfaceDump) Unmarshal

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

type Nat64PluginEnableDisable

type Nat64PluginEnableDisable struct {
	BibBuckets    uint32 `binapi:"u32,name=bib_buckets" json:"bib_buckets,omitempty"`
	BibMemorySize uint32 `binapi:"u32,name=bib_memory_size" json:"bib_memory_size,omitempty"`
	StBuckets     uint32 `binapi:"u32,name=st_buckets" json:"st_buckets,omitempty"`
	StMemorySize  uint32 `binapi:"u32,name=st_memory_size" json:"st_memory_size,omitempty"`
	Enable        bool   `binapi:"bool,name=enable" json:"enable,omitempty"`
}

Enable/disable NAT64 plugin

  • bib_buckets - Number of BIB hash buckets
  • bib_memory_size - Memory size of BIB hash
  • st_buckets - Number of session table hash buckets
  • st_memory_size - Memory size of session table hash
  • enable - true if enable, false if disable

Nat64PluginEnableDisable defines message 'nat64_plugin_enable_disable'. InProgress: the message form may change in the future versions

func (*Nat64PluginEnableDisable) GetCrcString

func (*Nat64PluginEnableDisable) GetCrcString() string

func (*Nat64PluginEnableDisable) GetMessageName

func (*Nat64PluginEnableDisable) GetMessageName() string

func (*Nat64PluginEnableDisable) GetMessageType

func (*Nat64PluginEnableDisable) GetMessageType() api.MessageType

func (*Nat64PluginEnableDisable) Marshal

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

func (*Nat64PluginEnableDisable) Reset

func (m *Nat64PluginEnableDisable) Reset()

func (*Nat64PluginEnableDisable) Size

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

func (*Nat64PluginEnableDisable) Unmarshal

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

type Nat64PluginEnableDisableReply

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

Nat64PluginEnableDisableReply defines message 'nat64_plugin_enable_disable_reply'. InProgress: the message form may change in the future versions

func (*Nat64PluginEnableDisableReply) GetCrcString

func (*Nat64PluginEnableDisableReply) GetCrcString() string

func (*Nat64PluginEnableDisableReply) GetMessageName

func (*Nat64PluginEnableDisableReply) GetMessageName() string

func (*Nat64PluginEnableDisableReply) GetMessageType

func (*Nat64PluginEnableDisableReply) GetMessageType() api.MessageType

func (*Nat64PluginEnableDisableReply) Marshal

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

func (*Nat64PluginEnableDisableReply) Reset

func (m *Nat64PluginEnableDisableReply) Reset()

func (*Nat64PluginEnableDisableReply) Size

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

func (*Nat64PluginEnableDisableReply) Unmarshal

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

type Nat64PoolAddrDetails

type Nat64PoolAddrDetails struct {
	Address ip_types.IP4Address `binapi:"ip4_address,name=address" json:"address,omitempty"`
	VrfID   uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
}

NAT64 pool address details response

  • address - IPv4 address
  • vfr_id - VRF id of tenant, ~0 means independent of VRF

Nat64PoolAddrDetails defines message 'nat64_pool_addr_details'.

func (*Nat64PoolAddrDetails) GetCrcString

func (*Nat64PoolAddrDetails) GetCrcString() string

func (*Nat64PoolAddrDetails) GetMessageName

func (*Nat64PoolAddrDetails) GetMessageName() string

func (*Nat64PoolAddrDetails) GetMessageType

func (*Nat64PoolAddrDetails) GetMessageType() api.MessageType

func (*Nat64PoolAddrDetails) Marshal

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

func (*Nat64PoolAddrDetails) Reset

func (m *Nat64PoolAddrDetails) Reset()

func (*Nat64PoolAddrDetails) Size

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

func (*Nat64PoolAddrDetails) Unmarshal

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

type Nat64PoolAddrDump

type Nat64PoolAddrDump struct{}

Dump NAT64 pool addresses Nat64PoolAddrDump defines message 'nat64_pool_addr_dump'.

func (*Nat64PoolAddrDump) GetCrcString

func (*Nat64PoolAddrDump) GetCrcString() string

func (*Nat64PoolAddrDump) GetMessageName

func (*Nat64PoolAddrDump) GetMessageName() string

func (*Nat64PoolAddrDump) GetMessageType

func (*Nat64PoolAddrDump) GetMessageType() api.MessageType

func (*Nat64PoolAddrDump) Marshal

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

func (*Nat64PoolAddrDump) Reset

func (m *Nat64PoolAddrDump) Reset()

func (*Nat64PoolAddrDump) Size

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

func (*Nat64PoolAddrDump) Unmarshal

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

type Nat64PrefixDetails

type Nat64PrefixDetails struct {
	Prefix ip_types.IP6Prefix `binapi:"ip6_prefix,name=prefix" json:"prefix,omitempty"`
	VrfID  uint32             `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
}

Dump NAT64 prefix details response

  • prefix - NAT64 prefix
  • vrf_id - VRF id of tenant

Nat64PrefixDetails defines message 'nat64_prefix_details'.

func (*Nat64PrefixDetails) GetCrcString

func (*Nat64PrefixDetails) GetCrcString() string

func (*Nat64PrefixDetails) GetMessageName

func (*Nat64PrefixDetails) GetMessageName() string

func (*Nat64PrefixDetails) GetMessageType

func (*Nat64PrefixDetails) GetMessageType() api.MessageType

func (*Nat64PrefixDetails) Marshal

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

func (*Nat64PrefixDetails) Reset

func (m *Nat64PrefixDetails) Reset()

func (*Nat64PrefixDetails) Size

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

func (*Nat64PrefixDetails) Unmarshal

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

type Nat64PrefixDump

type Nat64PrefixDump struct{}

Dump NAT64 prefix Nat64PrefixDump defines message 'nat64_prefix_dump'.

func (*Nat64PrefixDump) GetCrcString

func (*Nat64PrefixDump) GetCrcString() string

func (*Nat64PrefixDump) GetMessageName

func (*Nat64PrefixDump) GetMessageName() string

func (*Nat64PrefixDump) GetMessageType

func (*Nat64PrefixDump) GetMessageType() api.MessageType

func (*Nat64PrefixDump) Marshal

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

func (*Nat64PrefixDump) Reset

func (m *Nat64PrefixDump) Reset()

func (*Nat64PrefixDump) Size

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

func (*Nat64PrefixDump) Unmarshal

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

type Nat64SetTimeouts

type Nat64SetTimeouts struct {
	UDP            uint32 `binapi:"u32,name=udp" json:"udp,omitempty"`
	TCPEstablished uint32 `binapi:"u32,name=tcp_established" json:"tcp_established,omitempty"`
	TCPTransitory  uint32 `binapi:"u32,name=tcp_transitory" json:"tcp_transitory,omitempty"`
	ICMP           uint32 `binapi:"u32,name=icmp" json:"icmp,omitempty"`
}

Set values of timeouts for NAT64 sessions (seconds)

  • udp - UDP timeout (default 300sec)
  • tcp_established - TCP established timeout (default 7440sec)
  • tcp_transitory - TCP transitory timeout (default 240sec)
  • icmp - ICMP timeout (default 60sec)

Nat64SetTimeouts defines message 'nat64_set_timeouts'.

func (*Nat64SetTimeouts) GetCrcString

func (*Nat64SetTimeouts) GetCrcString() string

func (*Nat64SetTimeouts) GetMessageName

func (*Nat64SetTimeouts) GetMessageName() string

func (*Nat64SetTimeouts) GetMessageType

func (*Nat64SetTimeouts) GetMessageType() api.MessageType

func (*Nat64SetTimeouts) Marshal

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

func (*Nat64SetTimeouts) Reset

func (m *Nat64SetTimeouts) Reset()

func (*Nat64SetTimeouts) Size

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

func (*Nat64SetTimeouts) Unmarshal

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

type Nat64SetTimeoutsReply

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

Nat64SetTimeoutsReply defines message 'nat64_set_timeouts_reply'.

func (*Nat64SetTimeoutsReply) GetCrcString

func (*Nat64SetTimeoutsReply) GetCrcString() string

func (*Nat64SetTimeoutsReply) GetMessageName

func (*Nat64SetTimeoutsReply) GetMessageName() string

func (*Nat64SetTimeoutsReply) GetMessageType

func (*Nat64SetTimeoutsReply) GetMessageType() api.MessageType

func (*Nat64SetTimeoutsReply) Marshal

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

func (*Nat64SetTimeoutsReply) Reset

func (m *Nat64SetTimeoutsReply) Reset()

func (*Nat64SetTimeoutsReply) Size

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

func (*Nat64SetTimeoutsReply) Unmarshal

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

type Nat64StDetails

type Nat64StDetails struct {
	IlAddr ip_types.IP6Address `binapi:"ip6_address,name=il_addr" json:"il_addr,omitempty"`
	OlAddr ip_types.IP4Address `binapi:"ip4_address,name=ol_addr" json:"ol_addr,omitempty"`
	IlPort uint16              `binapi:"u16,name=il_port" json:"il_port,omitempty"`
	OlPort uint16              `binapi:"u16,name=ol_port" json:"ol_port,omitempty"`
	IrAddr ip_types.IP6Address `binapi:"ip6_address,name=ir_addr" json:"ir_addr,omitempty"`
	OrAddr ip_types.IP4Address `binapi:"ip4_address,name=or_addr" json:"or_addr,omitempty"`
	RPort  uint16              `binapi:"u16,name=r_port" json:"r_port,omitempty"`
	VrfID  uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
	Proto  uint8               `binapi:"u8,name=proto" json:"proto,omitempty"`
}

NAT64 session table details response

  • il_addr - inside IPv6 address of the local host
  • ol_addr - outside IPv4 address of the local host
  • il_port - inside port number id of the local host/inside ICMP id
  • ol_port - outside port number of the local host/outside ICMP id
  • ir_addr - inside IPv6 address of the remote host
  • or_addr - outside IPv4 address of the remote host
  • r_port - port number of the remote host (not used for ICMP)
  • vrf_id - VRF id of tenant
  • proto - protocol number

Nat64StDetails defines message 'nat64_st_details'.

func (*Nat64StDetails) GetCrcString

func (*Nat64StDetails) GetCrcString() string

func (*Nat64StDetails) GetMessageName

func (*Nat64StDetails) GetMessageName() string

func (*Nat64StDetails) GetMessageType

func (*Nat64StDetails) GetMessageType() api.MessageType

func (*Nat64StDetails) Marshal

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

func (*Nat64StDetails) Reset

func (m *Nat64StDetails) Reset()

func (*Nat64StDetails) Size

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

func (*Nat64StDetails) Unmarshal

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

type Nat64StDump

type Nat64StDump struct {
	Proto uint8 `binapi:"u8,name=proto" json:"proto,omitempty"`
}

Dump NAT64 session table

  • proto - protocol of the session table: 255 - all STs 6 - TCP ST 17 - UDP ST 1/58 - ICMP ST otherwise - "unknown" proto ST

Nat64StDump defines message 'nat64_st_dump'.

func (*Nat64StDump) GetCrcString

func (*Nat64StDump) GetCrcString() string

func (*Nat64StDump) GetMessageName

func (*Nat64StDump) GetMessageName() string

func (*Nat64StDump) GetMessageType

func (*Nat64StDump) GetMessageType() api.MessageType

func (*Nat64StDump) Marshal

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

func (*Nat64StDump) Reset

func (m *Nat64StDump) Reset()

func (*Nat64StDump) Size

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

func (*Nat64StDump) Unmarshal

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

type RPCService

RPCService defines RPC service nat64.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_Nat64BibDumpClient

type RPCService_Nat64BibDumpClient interface {
	Recv() (*Nat64BibDetails, error)
	api.Stream
}

type RPCService_Nat64InterfaceDumpClient

type RPCService_Nat64InterfaceDumpClient interface {
	Recv() (*Nat64InterfaceDetails, error)
	api.Stream
}

type RPCService_Nat64PoolAddrDumpClient

type RPCService_Nat64PoolAddrDumpClient interface {
	Recv() (*Nat64PoolAddrDetails, error)
	api.Stream
}

type RPCService_Nat64PrefixDumpClient

type RPCService_Nat64PrefixDumpClient interface {
	Recv() (*Nat64PrefixDetails, error)
	api.Stream
}

type RPCService_Nat64StDumpClient

type RPCService_Nat64StDumpClient interface {
	Recv() (*Nat64StDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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