gtpu

package
v3.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Contents:

10 messages

Index

Constants

View Source
const (
	APIFile    = "gtpu"
	APIVersion = "2.0.1"
	VersionCrc = 0xd80da142
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type GtpuAddDelTunnel

type GtpuAddDelTunnel struct {
	IsAdd          bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	SrcAddress     ip_types.Address               `binapi:"address,name=src_address" json:"src_address,omitempty"`
	DstAddress     ip_types.Address               `binapi:"address,name=dst_address" json:"dst_address,omitempty"`
	McastSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=mcast_sw_if_index" json:"mcast_sw_if_index,omitempty"`
	EncapVrfID     uint32                         `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
	DecapNextIndex uint32                         `binapi:"u32,name=decap_next_index" json:"decap_next_index,omitempty"`
	Teid           uint32                         `binapi:"u32,name=teid" json:"teid,omitempty"`
	Tteid          uint32                         `binapi:"u32,name=tteid" json:"tteid,omitempty"`
}

GtpuAddDelTunnel defines message 'gtpu_add_del_tunnel'.

func (*GtpuAddDelTunnel) GetCrcString

func (*GtpuAddDelTunnel) GetCrcString() string

func (*GtpuAddDelTunnel) GetMessageName

func (*GtpuAddDelTunnel) GetMessageName() string

func (*GtpuAddDelTunnel) GetMessageType

func (*GtpuAddDelTunnel) GetMessageType() api.MessageType

func (*GtpuAddDelTunnel) Marshal

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

func (*GtpuAddDelTunnel) Reset

func (m *GtpuAddDelTunnel) Reset()

func (*GtpuAddDelTunnel) Size

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

func (*GtpuAddDelTunnel) Unmarshal

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

type GtpuAddDelTunnelReply

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

GtpuAddDelTunnelReply defines message 'gtpu_add_del_tunnel_reply'.

func (*GtpuAddDelTunnelReply) GetCrcString

func (*GtpuAddDelTunnelReply) GetCrcString() string

func (*GtpuAddDelTunnelReply) GetMessageName

func (*GtpuAddDelTunnelReply) GetMessageName() string

func (*GtpuAddDelTunnelReply) GetMessageType

func (*GtpuAddDelTunnelReply) GetMessageType() api.MessageType

func (*GtpuAddDelTunnelReply) Marshal

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

func (*GtpuAddDelTunnelReply) Reset

func (m *GtpuAddDelTunnelReply) Reset()

func (*GtpuAddDelTunnelReply) Size

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

func (*GtpuAddDelTunnelReply) Unmarshal

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

type GtpuOffloadRx

type GtpuOffloadRx struct {
	HwIfIndex uint32 `binapi:"u32,name=hw_if_index" json:"hw_if_index,omitempty"`
	SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
	Enable    uint8  `binapi:"u8,name=enable" json:"enable,omitempty"`
}

GtpuOffloadRx defines message 'gtpu_offload_rx'.

func (*GtpuOffloadRx) GetCrcString

func (*GtpuOffloadRx) GetCrcString() string

func (*GtpuOffloadRx) GetMessageName

func (*GtpuOffloadRx) GetMessageName() string

func (*GtpuOffloadRx) GetMessageType

func (*GtpuOffloadRx) GetMessageType() api.MessageType

func (*GtpuOffloadRx) Marshal

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

func (*GtpuOffloadRx) Reset

func (m *GtpuOffloadRx) Reset()

func (*GtpuOffloadRx) Size

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

func (*GtpuOffloadRx) Unmarshal

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

type GtpuOffloadRxReply

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

GtpuOffloadRxReply defines message 'gtpu_offload_rx_reply'.

func (*GtpuOffloadRxReply) GetCrcString

func (*GtpuOffloadRxReply) GetCrcString() string

func (*GtpuOffloadRxReply) GetMessageName

func (*GtpuOffloadRxReply) GetMessageName() string

func (*GtpuOffloadRxReply) GetMessageType

func (*GtpuOffloadRxReply) GetMessageType() api.MessageType

func (*GtpuOffloadRxReply) Marshal

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

func (*GtpuOffloadRxReply) Reset

func (m *GtpuOffloadRxReply) Reset()

func (*GtpuOffloadRxReply) Size

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

func (*GtpuOffloadRxReply) Unmarshal

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

type GtpuTunnelDetails

type GtpuTunnelDetails struct {
	SwIfIndex      interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	SrcAddress     ip_types.Address               `binapi:"address,name=src_address" json:"src_address,omitempty"`
	DstAddress     ip_types.Address               `binapi:"address,name=dst_address" json:"dst_address,omitempty"`
	McastSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=mcast_sw_if_index" json:"mcast_sw_if_index,omitempty"`
	EncapVrfID     uint32                         `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
	DecapNextIndex uint32                         `binapi:"u32,name=decap_next_index" json:"decap_next_index,omitempty"`
	Teid           uint32                         `binapi:"u32,name=teid" json:"teid,omitempty"`
	Tteid          uint32                         `binapi:"u32,name=tteid" json:"tteid,omitempty"`
}

GtpuTunnelDetails defines message 'gtpu_tunnel_details'.

func (*GtpuTunnelDetails) GetCrcString

func (*GtpuTunnelDetails) GetCrcString() string

func (*GtpuTunnelDetails) GetMessageName

func (*GtpuTunnelDetails) GetMessageName() string

func (*GtpuTunnelDetails) GetMessageType

func (*GtpuTunnelDetails) GetMessageType() api.MessageType

func (*GtpuTunnelDetails) Marshal

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

func (*GtpuTunnelDetails) Reset

func (m *GtpuTunnelDetails) Reset()

func (*GtpuTunnelDetails) Size

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

func (*GtpuTunnelDetails) Unmarshal

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

type GtpuTunnelDump

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

GtpuTunnelDump defines message 'gtpu_tunnel_dump'.

func (*GtpuTunnelDump) GetCrcString

func (*GtpuTunnelDump) GetCrcString() string

func (*GtpuTunnelDump) GetMessageName

func (*GtpuTunnelDump) GetMessageName() string

func (*GtpuTunnelDump) GetMessageType

func (*GtpuTunnelDump) GetMessageType() api.MessageType

func (*GtpuTunnelDump) Marshal

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

func (*GtpuTunnelDump) Reset

func (m *GtpuTunnelDump) Reset()

func (*GtpuTunnelDump) Size

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

func (*GtpuTunnelDump) Unmarshal

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

type GtpuTunnelUpdateTteid

type GtpuTunnelUpdateTteid struct {
	DstAddress ip_types.Address `binapi:"address,name=dst_address" json:"dst_address,omitempty"`
	EncapVrfID uint32           `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
	Teid       uint32           `binapi:"u32,name=teid" json:"teid,omitempty"`
	Tteid      uint32           `binapi:"u32,name=tteid" json:"tteid,omitempty"`
}

GtpuTunnelUpdateTteid defines message 'gtpu_tunnel_update_tteid'.

func (*GtpuTunnelUpdateTteid) GetCrcString

func (*GtpuTunnelUpdateTteid) GetCrcString() string

func (*GtpuTunnelUpdateTteid) GetMessageName

func (*GtpuTunnelUpdateTteid) GetMessageName() string

func (*GtpuTunnelUpdateTteid) GetMessageType

func (*GtpuTunnelUpdateTteid) GetMessageType() api.MessageType

func (*GtpuTunnelUpdateTteid) Marshal

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

func (*GtpuTunnelUpdateTteid) Reset

func (m *GtpuTunnelUpdateTteid) Reset()

func (*GtpuTunnelUpdateTteid) Size

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

func (*GtpuTunnelUpdateTteid) Unmarshal

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

type GtpuTunnelUpdateTteidReply

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

GtpuTunnelUpdateTteidReply defines message 'gtpu_tunnel_update_tteid_reply'.

func (*GtpuTunnelUpdateTteidReply) GetCrcString

func (*GtpuTunnelUpdateTteidReply) GetCrcString() string

func (*GtpuTunnelUpdateTteidReply) GetMessageName

func (*GtpuTunnelUpdateTteidReply) GetMessageName() string

func (*GtpuTunnelUpdateTteidReply) GetMessageType

func (*GtpuTunnelUpdateTteidReply) GetMessageType() api.MessageType

func (*GtpuTunnelUpdateTteidReply) Marshal

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

func (*GtpuTunnelUpdateTteidReply) Reset

func (m *GtpuTunnelUpdateTteidReply) Reset()

func (*GtpuTunnelUpdateTteidReply) Size

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

func (*GtpuTunnelUpdateTteidReply) Unmarshal

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

type RPCService

type RPCService interface {
	GtpuAddDelTunnel(ctx context.Context, in *GtpuAddDelTunnel) (*GtpuAddDelTunnelReply, error)
	GtpuOffloadRx(ctx context.Context, in *GtpuOffloadRx) (*GtpuOffloadRxReply, error)
	GtpuTunnelDump(ctx context.Context, in *GtpuTunnelDump) (RPCService_GtpuTunnelDumpClient, error)
	GtpuTunnelUpdateTteid(ctx context.Context, in *GtpuTunnelUpdateTteid) (*GtpuTunnelUpdateTteidReply, error)
	SwInterfaceSetGtpuBypass(ctx context.Context, in *SwInterfaceSetGtpuBypass) (*SwInterfaceSetGtpuBypassReply, error)
}

RPCService defines RPC service gtpu.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_GtpuTunnelDumpClient

type RPCService_GtpuTunnelDumpClient interface {
	Recv() (*GtpuTunnelDetails, error)
	api.Stream
}

type SwInterfaceSetGtpuBypass

type SwInterfaceSetGtpuBypass struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IsIPv6    bool                           `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"`
	Enable    bool                           `binapi:"bool,name=enable" json:"enable,omitempty"`
}

SwInterfaceSetGtpuBypass defines message 'sw_interface_set_gtpu_bypass'.

func (*SwInterfaceSetGtpuBypass) GetCrcString

func (*SwInterfaceSetGtpuBypass) GetCrcString() string

func (*SwInterfaceSetGtpuBypass) GetMessageName

func (*SwInterfaceSetGtpuBypass) GetMessageName() string

func (*SwInterfaceSetGtpuBypass) GetMessageType

func (*SwInterfaceSetGtpuBypass) GetMessageType() api.MessageType

func (*SwInterfaceSetGtpuBypass) Marshal

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

func (*SwInterfaceSetGtpuBypass) Reset

func (m *SwInterfaceSetGtpuBypass) Reset()

func (*SwInterfaceSetGtpuBypass) Size

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

func (*SwInterfaceSetGtpuBypass) Unmarshal

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

type SwInterfaceSetGtpuBypassReply

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

SwInterfaceSetGtpuBypassReply defines message 'sw_interface_set_gtpu_bypass_reply'.

func (*SwInterfaceSetGtpuBypassReply) GetCrcString

func (*SwInterfaceSetGtpuBypassReply) GetCrcString() string

func (*SwInterfaceSetGtpuBypassReply) GetMessageName

func (*SwInterfaceSetGtpuBypassReply) GetMessageName() string

func (*SwInterfaceSetGtpuBypassReply) GetMessageType

func (*SwInterfaceSetGtpuBypassReply) GetMessageType() api.MessageType

func (*SwInterfaceSetGtpuBypassReply) Marshal

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

func (*SwInterfaceSetGtpuBypassReply) Reset

func (m *SwInterfaceSetGtpuBypassReply) Reset()

func (*SwInterfaceSetGtpuBypassReply) Size

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

func (*SwInterfaceSetGtpuBypassReply) Unmarshal

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

Jump to

Keyboard shortcuts

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