ip_session_redirect

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Contents: - 8 messages

Index

Constants

View Source
const (
	APIFile    = "ip_session_redirect"
	APIVersion = "0.3.0"
	VersionCrc = 0x54be863a
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type IPSessionRedirectAdd

type IPSessionRedirectAdd struct {
	TableIndex  uint32              `binapi:"u32,name=table_index" json:"table_index,omitempty"`
	MatchLen    uint8               `binapi:"u8,name=match_len" json:"match_len,omitempty"`
	Match       []byte              `binapi:"u8[80],name=match" json:"match,omitempty"`
	OpaqueIndex uint32              `binapi:"u32,name=opaque_index,default=4294967295" json:"opaque_index,omitempty"`
	IsPunt      bool                `binapi:"bool,name=is_punt" json:"is_punt,omitempty"`
	NPaths      uint8               `binapi:"u8,name=n_paths" json:"-"`
	Paths       []fib_types.FibPath `binapi:"fib_path[n_paths],name=paths" json:"paths,omitempty"`
}

Add or update a session redirection

  • table_index - classifier table index
  • opaque_index - classifier session opaque index
  • match_len - classifier session match length in bytes (max is 80-bytes)
  • match - classifier session match
  • is_punt - true = punted traffic, false = forwarded traffic
  • n_paths - number of paths
  • paths - the paths of the redirect

IPSessionRedirectAdd defines message 'ip_session_redirect_add'. Deprecated: the message will be removed in the future versions

func (*IPSessionRedirectAdd) GetCrcString

func (*IPSessionRedirectAdd) GetCrcString() string

func (*IPSessionRedirectAdd) GetMessageName

func (*IPSessionRedirectAdd) GetMessageName() string

func (*IPSessionRedirectAdd) GetMessageType

func (*IPSessionRedirectAdd) GetMessageType() api.MessageType

func (*IPSessionRedirectAdd) Marshal

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

func (*IPSessionRedirectAdd) Reset

func (m *IPSessionRedirectAdd) Reset()

func (*IPSessionRedirectAdd) Size

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

func (*IPSessionRedirectAdd) Unmarshal

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

type IPSessionRedirectAddReply

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

IPSessionRedirectAddReply defines message 'ip_session_redirect_add_reply'. Deprecated: the message will be removed in the future versions

func (*IPSessionRedirectAddReply) GetCrcString

func (*IPSessionRedirectAddReply) GetCrcString() string

func (*IPSessionRedirectAddReply) GetMessageName

func (*IPSessionRedirectAddReply) GetMessageName() string

func (*IPSessionRedirectAddReply) GetMessageType

func (*IPSessionRedirectAddReply) GetMessageType() api.MessageType

func (*IPSessionRedirectAddReply) Marshal

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

func (*IPSessionRedirectAddReply) Reset

func (m *IPSessionRedirectAddReply) Reset()

func (*IPSessionRedirectAddReply) Size

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

func (*IPSessionRedirectAddReply) Unmarshal

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

type IPSessionRedirectAddV2

type IPSessionRedirectAddV2 struct {
	TableIndex  uint32                   `binapi:"u32,name=table_index" json:"table_index,omitempty"`
	OpaqueIndex uint32                   `binapi:"u32,name=opaque_index,default=4294967295" json:"opaque_index,omitempty"`
	Proto       fib_types.FibPathNhProto `binapi:"fib_path_nh_proto,name=proto,default=4294967295" json:"proto,omitempty"`
	IsPunt      bool                     `binapi:"bool,name=is_punt" json:"is_punt,omitempty"`
	MatchLen    uint8                    `binapi:"u8,name=match_len" json:"match_len,omitempty"`
	Match       []byte                   `binapi:"u8[80],name=match" json:"match,omitempty"`
	NPaths      uint8                    `binapi:"u8,name=n_paths" json:"-"`
	Paths       []fib_types.FibPath      `binapi:"fib_path[n_paths],name=paths" json:"paths,omitempty"`
}

Add or update a session redirection - version 2

  • table_index - classifier table index
  • opaque_index - classifier session opaque index
  • proto - protocol of forwarded packets (default autodetect from path nh)
  • is_punt - true = punted traffic, false = forwarded traffic
  • match_len - classifier session match length in bytes (max is 80-bytes)
  • match - classifier session match
  • n_paths - number of paths
  • paths - the paths of the redirect

IPSessionRedirectAddV2 defines message 'ip_session_redirect_add_v2'. InProgress: the message form may change in the future versions

func (*IPSessionRedirectAddV2) GetCrcString

func (*IPSessionRedirectAddV2) GetCrcString() string

func (*IPSessionRedirectAddV2) GetMessageName

func (*IPSessionRedirectAddV2) GetMessageName() string

func (*IPSessionRedirectAddV2) GetMessageType

func (*IPSessionRedirectAddV2) GetMessageType() api.MessageType

func (*IPSessionRedirectAddV2) Marshal

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

func (*IPSessionRedirectAddV2) Reset

func (m *IPSessionRedirectAddV2) Reset()

func (*IPSessionRedirectAddV2) Size

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

func (*IPSessionRedirectAddV2) Unmarshal

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

type IPSessionRedirectAddV2Reply

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

IPSessionRedirectAddV2Reply defines message 'ip_session_redirect_add_v2_reply'. InProgress: the message form may change in the future versions

func (*IPSessionRedirectAddV2Reply) GetCrcString

func (*IPSessionRedirectAddV2Reply) GetCrcString() string

func (*IPSessionRedirectAddV2Reply) GetMessageName

func (*IPSessionRedirectAddV2Reply) GetMessageName() string

func (*IPSessionRedirectAddV2Reply) GetMessageType

func (*IPSessionRedirectAddV2Reply) GetMessageType() api.MessageType

func (*IPSessionRedirectAddV2Reply) Marshal

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

func (*IPSessionRedirectAddV2Reply) Reset

func (m *IPSessionRedirectAddV2Reply) Reset()

func (*IPSessionRedirectAddV2Reply) Size

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

func (*IPSessionRedirectAddV2Reply) Unmarshal

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

type IPSessionRedirectDel

type IPSessionRedirectDel struct {
	TableIndex uint32 `binapi:"u32,name=table_index" json:"table_index,omitempty"`
	MatchLen   uint8  `binapi:"u8,name=match_len" json:"-"`
	Match      []byte `binapi:"u8[match_len],name=match" json:"match,omitempty"`
}

Delete a session redirection

  • table_index - classifier table index
  • match_len - classifier session match length in bytes (max is 80-bytes)
  • match - classifier session match

IPSessionRedirectDel defines message 'ip_session_redirect_del'. InProgress: the message form may change in the future versions

func (*IPSessionRedirectDel) GetCrcString

func (*IPSessionRedirectDel) GetCrcString() string

func (*IPSessionRedirectDel) GetMessageName

func (*IPSessionRedirectDel) GetMessageName() string

func (*IPSessionRedirectDel) GetMessageType

func (*IPSessionRedirectDel) GetMessageType() api.MessageType

func (*IPSessionRedirectDel) Marshal

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

func (*IPSessionRedirectDel) Reset

func (m *IPSessionRedirectDel) Reset()

func (*IPSessionRedirectDel) Size

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

func (*IPSessionRedirectDel) Unmarshal

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

type IPSessionRedirectDelReply

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

IPSessionRedirectDelReply defines message 'ip_session_redirect_del_reply'. InProgress: the message form may change in the future versions

func (*IPSessionRedirectDelReply) GetCrcString

func (*IPSessionRedirectDelReply) GetCrcString() string

func (*IPSessionRedirectDelReply) GetMessageName

func (*IPSessionRedirectDelReply) GetMessageName() string

func (*IPSessionRedirectDelReply) GetMessageType

func (*IPSessionRedirectDelReply) GetMessageType() api.MessageType

func (*IPSessionRedirectDelReply) Marshal

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

func (*IPSessionRedirectDelReply) Reset

func (m *IPSessionRedirectDelReply) Reset()

func (*IPSessionRedirectDelReply) Size

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

func (*IPSessionRedirectDelReply) Unmarshal

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

type IPSessionRedirectDetails added in v0.9.0

type IPSessionRedirectDetails struct {
	Retval      int32               `binapi:"i32,name=retval" json:"retval,omitempty"`
	TableIndex  uint32              `binapi:"u32,name=table_index" json:"table_index,omitempty"`
	OpaqueIndex uint32              `binapi:"u32,name=opaque_index" json:"opaque_index,omitempty"`
	IsPunt      bool                `binapi:"bool,name=is_punt" json:"is_punt,omitempty"`
	IsIP6       bool                `binapi:"bool,name=is_ip6" json:"is_ip6,omitempty"`
	MatchLength uint32              `binapi:"u32,name=match_length" json:"match_length,omitempty"`
	Match       []byte              `binapi:"u8[80],name=match" json:"match,omitempty"`
	NPaths      uint8               `binapi:"u8,name=n_paths" json:"-"`
	Paths       []fib_types.FibPath `binapi:"fib_path[n_paths],name=paths" json:"paths,omitempty"`
}

Session redirection operational state response

  • table_index - classifier table index
  • opaque_index - classifier session opaque index
  • is_punt - true = punted traffic, false = forwarded traffic
  • is_ip6 - true = payload proto is ip6, false = payload proto is ip4
  • match_len - classifier session match length in bytes (max is 80-bytes)
  • match - classifier session match
  • n_paths - number of paths
  • paths - the paths of the redirect

IPSessionRedirectDetails defines message 'ip_session_redirect_details'.

func (*IPSessionRedirectDetails) GetCrcString added in v0.9.0

func (*IPSessionRedirectDetails) GetCrcString() string

func (*IPSessionRedirectDetails) GetMessageName added in v0.9.0

func (*IPSessionRedirectDetails) GetMessageName() string

func (*IPSessionRedirectDetails) GetMessageType added in v0.9.0

func (*IPSessionRedirectDetails) GetMessageType() api.MessageType

func (*IPSessionRedirectDetails) Marshal added in v0.9.0

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

func (*IPSessionRedirectDetails) Reset added in v0.9.0

func (m *IPSessionRedirectDetails) Reset()

func (*IPSessionRedirectDetails) Size added in v0.9.0

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

func (*IPSessionRedirectDetails) Unmarshal added in v0.9.0

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

type IPSessionRedirectDump added in v0.9.0

type IPSessionRedirectDump struct {
	TableIndex uint32 `binapi:"u32,name=table_index" json:"table_index,omitempty"`
}

Dump available session redirections

  • table_index - classifier table index

IPSessionRedirectDump defines message 'ip_session_redirect_dump'.

func (*IPSessionRedirectDump) GetCrcString added in v0.9.0

func (*IPSessionRedirectDump) GetCrcString() string

func (*IPSessionRedirectDump) GetMessageName added in v0.9.0

func (*IPSessionRedirectDump) GetMessageName() string

func (*IPSessionRedirectDump) GetMessageType added in v0.9.0

func (*IPSessionRedirectDump) GetMessageType() api.MessageType

func (*IPSessionRedirectDump) Marshal added in v0.9.0

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

func (*IPSessionRedirectDump) Reset added in v0.9.0

func (m *IPSessionRedirectDump) Reset()

func (*IPSessionRedirectDump) Size added in v0.9.0

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

func (*IPSessionRedirectDump) Unmarshal added in v0.9.0

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

type RPCService

type RPCService interface {
	IPSessionRedirectAdd(ctx context.Context, in *IPSessionRedirectAdd) (*IPSessionRedirectAddReply, error)
	IPSessionRedirectAddV2(ctx context.Context, in *IPSessionRedirectAddV2) (*IPSessionRedirectAddV2Reply, error)
	IPSessionRedirectDel(ctx context.Context, in *IPSessionRedirectDel) (*IPSessionRedirectDelReply, error)
	IPSessionRedirectDump(ctx context.Context, in *IPSessionRedirectDump) (RPCService_IPSessionRedirectDumpClient, error)
}

RPCService defines RPC service ip_session_redirect.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_IPSessionRedirectDumpClient added in v0.9.0

type RPCService_IPSessionRedirectDumpClient interface {
	Recv() (*IPSessionRedirectDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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