ip_session_redirect

package
v0.0.0-...-10ea962 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Contents: - 6 messages

Index

Constants

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

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

RPCService defines RPC service ip_session_redirect.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

Jump to

Keyboard shortcuts

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