gtpu

package
v0.11.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Overview

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

Contents: - 2 enums - 2 structs - 18 messages

Index

Constants

View Source
const (
	APIFile    = "gtpu"
	APIVersion = "2.1.0"
	VersionCrc = 0xdbbb4325
)

Variables

View Source
var (
	GtpuDecapNextType_name = map[uint32]string{
		0: "GTPU_API_DECAP_NEXT_DROP",
		1: "GTPU_API_DECAP_NEXT_L2",
		2: "GTPU_API_DECAP_NEXT_IP4",
		3: "GTPU_API_DECAP_NEXT_IP6",
	}
	GtpuDecapNextType_value = map[string]uint32{
		"GTPU_API_DECAP_NEXT_DROP": 0,
		"GTPU_API_DECAP_NEXT_L2":   1,
		"GTPU_API_DECAP_NEXT_IP4":  2,
		"GTPU_API_DECAP_NEXT_IP6":  3,
	}
)
View Source
var (
	GtpuForwardingType_name = map[uint32]string{
		0: "GTPU_API_FORWARDING_NONE",
		1: "GTPU_API_FORWARDING_BAD_HEADER",
		2: "GTPU_API_FORWARDING_UNKNOWN_TEID",
		4: "GTPU_API_FORWARDING_UNKNOWN_TYPE",
	}
	GtpuForwardingType_value = map[string]uint32{
		"GTPU_API_FORWARDING_NONE":         0,
		"GTPU_API_FORWARDING_BAD_HEADER":   1,
		"GTPU_API_FORWARDING_UNKNOWN_TEID": 2,
		"GTPU_API_FORWARDING_UNKNOWN_TYPE": 4,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type GtpuAddDelForward added in v0.10.0

type GtpuAddDelForward struct {
	IsAdd          bool               `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	DstAddress     ip_types.Address   `binapi:"address,name=dst_address" json:"dst_address,omitempty"`
	ForwardingType GtpuForwardingType `binapi:"gtpu_forwarding_type,name=forwarding_type" json:"forwarding_type,omitempty"`
	EncapVrfID     uint32             `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
	DecapNextIndex GtpuDecapNextType  `binapi:"gtpu_decap_next_type,name=decap_next_index" json:"decap_next_index,omitempty"`
}

Set gtpu-forward request

  • is_add - add address if non-zero, else delete
  • forwarding_type - forward filter (unknown teid, unknown message type or unknown header)
  • dst_address - forward destination address.
  • encap_vrf_id - fib identifier used for outgoing packets
  • decap_next_index - the index of the next node if success

GtpuAddDelForward defines message 'gtpu_add_del_forward'. InProgress: the message form may change in the future versions

func (*GtpuAddDelForward) GetCrcString added in v0.10.0

func (*GtpuAddDelForward) GetCrcString() string

func (*GtpuAddDelForward) GetMessageName added in v0.10.0

func (*GtpuAddDelForward) GetMessageName() string

func (*GtpuAddDelForward) GetMessageType added in v0.10.0

func (*GtpuAddDelForward) GetMessageType() api.MessageType

func (*GtpuAddDelForward) Marshal added in v0.10.0

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

func (*GtpuAddDelForward) Reset added in v0.10.0

func (m *GtpuAddDelForward) Reset()

func (*GtpuAddDelForward) Size added in v0.10.0

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

func (*GtpuAddDelForward) Unmarshal added in v0.10.0

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

type GtpuAddDelForwardReply added in v0.10.0

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

reply for set or delete GTPU forwarding

  • retval - return code
  • sw_if_index - software index of the interface

GtpuAddDelForwardReply defines message 'gtpu_add_del_forward_reply'. InProgress: the message form may change in the future versions

func (*GtpuAddDelForwardReply) GetCrcString added in v0.10.0

func (*GtpuAddDelForwardReply) GetCrcString() string

func (*GtpuAddDelForwardReply) GetMessageName added in v0.10.0

func (*GtpuAddDelForwardReply) GetMessageName() string

func (*GtpuAddDelForwardReply) GetMessageType added in v0.10.0

func (*GtpuAddDelForwardReply) GetMessageType() api.MessageType

func (*GtpuAddDelForwardReply) Marshal added in v0.10.0

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

func (*GtpuAddDelForwardReply) Reset added in v0.10.0

func (m *GtpuAddDelForwardReply) Reset()

func (*GtpuAddDelForwardReply) Size added in v0.10.0

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

func (*GtpuAddDelForwardReply) Unmarshal added in v0.10.0

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

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

Create or delete a GTPU tunnel

  • is_add - add address if non-zero, else delete
  • src_address - GTPU tunnel's source address.
  • dst_address - GTPU tunnel's destination address.
  • mcast_sw_if_index - version, O-bit and C-bit (see nsh_packet.h)
  • encap_vrf_id - fib identifier used for outgoing encapsulated packets
  • decap_next_index - the index of the next node if success
  • teid - Local (rx) Tunnel Endpoint Identifier
  • tteid - Remote (tx) Tunnel Endpoint Identifier

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

reply for set or delete an GTPU tunnel

  • retval - return code
  • sw_if_index - software index of the interface

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 GtpuAddDelTunnelV2 added in v0.10.0

type GtpuAddDelTunnelV2 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 GtpuDecapNextType              `binapi:"gtpu_decap_next_type,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"`
	PduExtension   bool                           `binapi:"bool,name=pdu_extension" json:"pdu_extension,omitempty"`
	Qfi            uint8                          `binapi:"u8,name=qfi" json:"qfi,omitempty"`
}

Create or delete a GTPU tunnel

  • is_add - add address if non-zero, else delete
  • src_address - GTPU tunnel's source address.
  • dst_address - GTPU tunnel's destination address.
  • mcast_sw_if_index - version, O-bit and C-bit (see nsh_packet.h)
  • encap_vrf_id - fib identifier used for outgoing encapsulated packets
  • decap_next_index - the index of the next node if success
  • teid - Local (rx) Tunnel Endpoint Identifier
  • tteid - Remote (tx) Tunnel Endpoint Identifier
  • pdu_extension - add PDU session container extension to each packet
  • qfi - the QFI to set in the PDU session container, 6 bits only

GtpuAddDelTunnelV2 defines message 'gtpu_add_del_tunnel_v2'. InProgress: the message form may change in the future versions

func (*GtpuAddDelTunnelV2) GetCrcString added in v0.10.0

func (*GtpuAddDelTunnelV2) GetCrcString() string

func (*GtpuAddDelTunnelV2) GetMessageName added in v0.10.0

func (*GtpuAddDelTunnelV2) GetMessageName() string

func (*GtpuAddDelTunnelV2) GetMessageType added in v0.10.0

func (*GtpuAddDelTunnelV2) GetMessageType() api.MessageType

func (*GtpuAddDelTunnelV2) Marshal added in v0.10.0

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

func (*GtpuAddDelTunnelV2) Reset added in v0.10.0

func (m *GtpuAddDelTunnelV2) Reset()

func (*GtpuAddDelTunnelV2) Size added in v0.10.0

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

func (*GtpuAddDelTunnelV2) Unmarshal added in v0.10.0

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

type GtpuAddDelTunnelV2Reply added in v0.10.0

type GtpuAddDelTunnelV2Reply 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"`
	Counters  SwIfCounters                   `binapi:"sw_if_counters,name=counters" json:"counters,omitempty"`
}

reply for set or delete an GTPU tunnel

  • retval - return code
  • sw_if_index - software index of the interface
  • counters - Number of packets/bytes that is sent/received via this tunnel. Inaccurate (with in flight packets), sum for the entire set of per-thread counters. Zero for new tunnels.

GtpuAddDelTunnelV2Reply defines message 'gtpu_add_del_tunnel_v2_reply'. InProgress: the message form may change in the future versions

func (*GtpuAddDelTunnelV2Reply) GetCrcString added in v0.10.0

func (*GtpuAddDelTunnelV2Reply) GetCrcString() string

func (*GtpuAddDelTunnelV2Reply) GetMessageName added in v0.10.0

func (*GtpuAddDelTunnelV2Reply) GetMessageName() string

func (*GtpuAddDelTunnelV2Reply) GetMessageType added in v0.10.0

func (*GtpuAddDelTunnelV2Reply) GetMessageType() api.MessageType

func (*GtpuAddDelTunnelV2Reply) Marshal added in v0.10.0

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

func (*GtpuAddDelTunnelV2Reply) Reset added in v0.10.0

func (m *GtpuAddDelTunnelV2Reply) Reset()

func (*GtpuAddDelTunnelV2Reply) Size added in v0.10.0

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

func (*GtpuAddDelTunnelV2Reply) Unmarshal added in v0.10.0

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

type GtpuDecapNextType added in v0.10.0

type GtpuDecapNextType uint32

GtpuDecapNextType defines enum 'gtpu_decap_next_type'.

const (
	GTPU_API_DECAP_NEXT_DROP GtpuDecapNextType = 0
	GTPU_API_DECAP_NEXT_L2   GtpuDecapNextType = 1
	GTPU_API_DECAP_NEXT_IP4  GtpuDecapNextType = 2
	GTPU_API_DECAP_NEXT_IP6  GtpuDecapNextType = 3
)

func (GtpuDecapNextType) String added in v0.10.0

func (x GtpuDecapNextType) String() string

type GtpuForwardingType added in v0.10.0

type GtpuForwardingType uint32

GtpuForwardingType defines enum 'gtpu_forwarding_type'.

const (
	GTPU_API_FORWARDING_NONE         GtpuForwardingType = 0
	GTPU_API_FORWARDING_BAD_HEADER   GtpuForwardingType = 1
	GTPU_API_FORWARDING_UNKNOWN_TEID GtpuForwardingType = 2
	GTPU_API_FORWARDING_UNKNOWN_TYPE GtpuForwardingType = 4
)

func (GtpuForwardingType) String added in v0.10.0

func (x GtpuForwardingType) String() string

type GtpuGetTransferCounts added in v0.10.0

type GtpuGetTransferCounts struct {
	SwIfIndexStart interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index_start" json:"sw_if_index_start,omitempty"`
	Capacity       uint32                         `binapi:"u32,name=capacity" json:"capacity,omitempty"`
}

Get list of metrics, use for bulk transfer.

  • sw_if_index_start - software index of the first interface to return data on.
  • capacity - max number of interfaces returned.

GtpuGetTransferCounts defines message 'gtpu_get_transfer_counts'. InProgress: the message form may change in the future versions

func (*GtpuGetTransferCounts) GetCrcString added in v0.10.0

func (*GtpuGetTransferCounts) GetCrcString() string

func (*GtpuGetTransferCounts) GetMessageName added in v0.10.0

func (*GtpuGetTransferCounts) GetMessageName() string

func (*GtpuGetTransferCounts) GetMessageType added in v0.10.0

func (*GtpuGetTransferCounts) GetMessageType() api.MessageType

func (*GtpuGetTransferCounts) Marshal added in v0.10.0

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

func (*GtpuGetTransferCounts) Reset added in v0.10.0

func (m *GtpuGetTransferCounts) Reset()

func (*GtpuGetTransferCounts) Size added in v0.10.0

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

func (*GtpuGetTransferCounts) Unmarshal added in v0.10.0

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

type GtpuGetTransferCountsReply added in v0.10.0

type GtpuGetTransferCountsReply struct {
	Retval  int32           `binapi:"i32,name=retval" json:"retval,omitempty"`
	Count   uint32          `binapi:"u32,name=count" json:"-"`
	Tunnels []TunnelMetrics `binapi:"tunnel_metrics[count],name=tunnels" json:"tunnels,omitempty"`
}

reply for set or delete GTPU forwarding

  • retval - return code
  • count - number of tunnel counters returned, sequential starting at sw_if_index_start.
  • tunnels - Number of packets/bytes that is sent/received via this tunnel. Inaccurate (with in flight packets), sum for the entire set of per-thread counters.

GtpuGetTransferCountsReply defines message 'gtpu_get_transfer_counts_reply'. InProgress: the message form may change in the future versions

func (*GtpuGetTransferCountsReply) GetCrcString added in v0.10.0

func (*GtpuGetTransferCountsReply) GetCrcString() string

func (*GtpuGetTransferCountsReply) GetMessageName added in v0.10.0

func (*GtpuGetTransferCountsReply) GetMessageName() string

func (*GtpuGetTransferCountsReply) GetMessageType added in v0.10.0

func (*GtpuGetTransferCountsReply) GetMessageType() api.MessageType

func (*GtpuGetTransferCountsReply) Marshal added in v0.10.0

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

func (*GtpuGetTransferCountsReply) Reset added in v0.10.0

func (m *GtpuGetTransferCountsReply) Reset()

func (*GtpuGetTransferCountsReply) Size added in v0.10.0

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

func (*GtpuGetTransferCountsReply) Unmarshal added in v0.10.0

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

Offload gtpu rx request

  • hw_if_index - rx hw interface
  • sw_if_index - gtpu interface to offload
  • enable - if non-zero enable, else disable

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

dump details of an GTPU tunnel

  • sw_if_index - software index of the interface
  • src_address - GTPU tunnel's source address.
  • dst_address - GTPU tunnel's destination address.
  • mcast_sw_if_index - version, O-bit and C-bit (see nsh_packet.h)
  • encap_vrf_id - fib identifier used for outgoing encapsulated packets
  • decap_next_index - the index of the next node if success
  • teid - Local (rx) Tunnel Endpoint Identifier
  • tteid - Remote (tx) Tunnel Endpoint Identifier

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

Dump GTPU tunnel

  • sw_if_index - software index of the interface

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

Update GTPU tunnel TX TEID

  • dst_address - GTPU tunnel's destination address.
  • encap_vrf_id - fib identifier used for outgoing encapsulated packets
  • teid - Local (rx) Tunnel Endpoint Identifier
  • tteid - remote (tx) Tunnel Endpoint Identifier

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 GtpuTunnelV2Details added in v0.10.0

type GtpuTunnelV2Details 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 GtpuDecapNextType              `binapi:"gtpu_decap_next_type,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"`
	PduExtension   bool                           `binapi:"bool,name=pdu_extension" json:"pdu_extension,omitempty"`
	Qfi            uint8                          `binapi:"u8,name=qfi" json:"qfi,omitempty"`
	IsForwarding   bool                           `binapi:"bool,name=is_forwarding" json:"is_forwarding,omitempty"`
	ForwardingType GtpuForwardingType             `binapi:"gtpu_forwarding_type,name=forwarding_type" json:"forwarding_type,omitempty"`
	Counters       SwIfCounters                   `binapi:"sw_if_counters,name=counters" json:"counters,omitempty"`
}

dump details of an GTPU tunnel

  • sw_if_index - software index of the interface
  • src_address - GTPU tunnel's source address.
  • dst_address - GTPU tunnel's destination address.
  • mcast_sw_if_index - version, O-bit and C-bit (see nsh_packet.h)
  • encap_vrf_id - fib identifier used for outgoing encapsulated packets
  • decap_next_index - the index of the next node if success
  • teid - Local (rx) Tunnel Endpoint Identifier
  • tteid - Remote (tx) Tunnel Endpoint Identifier
  • pdu_extension - add PDU session container extension to each packet
  • qfi - the QFI to set in the PDU session container, 6 bits only
  • is_forwarding - tunnel used for forwarding packets
  • forwarding_type - the type of packets forwarded
  • counters - Number of packets/bytes that is sent/received via this tunnel. Inaccurate (with in flight packets), sum for the entire set of per-thread counters.

GtpuTunnelV2Details defines message 'gtpu_tunnel_v2_details'. InProgress: the message form may change in the future versions

func (*GtpuTunnelV2Details) GetCrcString added in v0.10.0

func (*GtpuTunnelV2Details) GetCrcString() string

func (*GtpuTunnelV2Details) GetMessageName added in v0.10.0

func (*GtpuTunnelV2Details) GetMessageName() string

func (*GtpuTunnelV2Details) GetMessageType added in v0.10.0

func (*GtpuTunnelV2Details) GetMessageType() api.MessageType

func (*GtpuTunnelV2Details) Marshal added in v0.10.0

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

func (*GtpuTunnelV2Details) Reset added in v0.10.0

func (m *GtpuTunnelV2Details) Reset()

func (*GtpuTunnelV2Details) Size added in v0.10.0

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

func (*GtpuTunnelV2Details) Unmarshal added in v0.10.0

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

type GtpuTunnelV2Dump added in v0.10.0

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

Dump GTPU tunnel

  • sw_if_index - software index of the interface

GtpuTunnelV2Dump defines message 'gtpu_tunnel_v2_dump'. InProgress: the message form may change in the future versions

func (*GtpuTunnelV2Dump) GetCrcString added in v0.10.0

func (*GtpuTunnelV2Dump) GetCrcString() string

func (*GtpuTunnelV2Dump) GetMessageName added in v0.10.0

func (*GtpuTunnelV2Dump) GetMessageName() string

func (*GtpuTunnelV2Dump) GetMessageType added in v0.10.0

func (*GtpuTunnelV2Dump) GetMessageType() api.MessageType

func (*GtpuTunnelV2Dump) Marshal added in v0.10.0

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

func (*GtpuTunnelV2Dump) Reset added in v0.10.0

func (m *GtpuTunnelV2Dump) Reset()

func (*GtpuTunnelV2Dump) Size added in v0.10.0

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

func (*GtpuTunnelV2Dump) Unmarshal added in v0.10.0

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

type RPCService

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 RPCService_GtpuTunnelV2DumpClient added in v0.10.0

type RPCService_GtpuTunnelV2DumpClient interface {
	Recv() (*GtpuTunnelV2Details, error)
	api.Stream
}

type SwIfCounters added in v0.10.0

type SwIfCounters struct {
	PacketsRx uint64 `binapi:"u64,name=packets_rx" json:"packets_rx,omitempty"`
	PacketsTx uint64 `binapi:"u64,name=packets_tx" json:"packets_tx,omitempty"`
	BytesRx   uint64 `binapi:"u64,name=bytes_rx" json:"bytes_rx,omitempty"`
	BytesTx   uint64 `binapi:"u64,name=bytes_tx" json:"bytes_tx,omitempty"`
}

SwIfCounters defines type 'sw_if_counters'.

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

Interface set gtpu-bypass request

  • sw_if_index - interface used to reach neighbor
  • is_ipv6 - if non-zero, enable ipv6-gtpu-bypass, else ipv4-gtpu-bypass
  • enable - if non-zero enable, else disable

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

type TunnelMetrics added in v0.10.0

type TunnelMetrics struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Reserved  uint32                         `binapi:"u32,name=reserved" json:"reserved,omitempty"`
	Counters  SwIfCounters                   `binapi:"sw_if_counters,name=counters" json:"counters,omitempty"`
}

TunnelMetrics defines type 'tunnel_metrics'.

Jump to

Keyboard shortcuts

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