tapv2

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tapv2 is a generated VPP binary API for 'tapv2' module.

It consists of:

11 enums
 7 aliases
 6 types
 1 union
 6 messages
 3 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "tapv2"
	// APIVersion is the API version of this module.
	APIVersion = "3.0.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x7d58f9a4
)

Variables

View Source
var TapFlags_name = map[uint32]string{
	1: "TAP_FLAG_GSO",
	2: "TAP_FLAG_CSUM_OFFLOAD",
}
View Source
var TapFlags_value = map[string]uint32{
	"TAP_FLAG_GSO":          1,
	"TAP_FLAG_CSUM_OFFLOAD": 2,
}

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type Address

type Address = ip_types.Address

type AddressFamily

type AddressFamily = ip_types.AddressFamily

type AddressUnion

type AddressUnion = ip_types.AddressUnion

type AddressWithPrefix

type AddressWithPrefix = ip_types.AddressWithPrefix

type IP4Address

type IP4Address = ip_types.IP4Address

type IP4AddressWithPrefix

type IP4AddressWithPrefix = ip_types.IP4AddressWithPrefix

type IP4Prefix

type IP4Prefix = ip_types.IP4Prefix

type IP6Address

type IP6Address = ip_types.IP6Address

type IP6AddressWithPrefix

type IP6AddressWithPrefix = ip_types.IP6AddressWithPrefix

type IP6Prefix

type IP6Prefix = ip_types.IP6Prefix

type IPDscp

type IPDscp = ip_types.IPDscp

type IPEcn

type IPEcn = ip_types.IPEcn

type IPProto

type IPProto = ip_types.IPProto

type IfStatusFlags

type IfStatusFlags = interface_types.IfStatusFlags

type IfType

type IfType = interface_types.IfType

type InterfaceIndex

type InterfaceIndex = interface_types.InterfaceIndex

type LinkDuplex

type LinkDuplex = interface_types.LinkDuplex

type MacAddress

type MacAddress = ethernet_types.MacAddress

type Mprefix

type Mprefix = ip_types.Mprefix

type MtuProto

type MtuProto = interface_types.MtuProto

type Prefix

type Prefix = ip_types.Prefix

type PrefixMatcher

type PrefixMatcher = ip_types.PrefixMatcher

type RPCService

type RPCService interface {
	DumpSwInterfaceTapV2(ctx context.Context, in *SwInterfaceTapV2Dump) (RPCService_DumpSwInterfaceTapV2Client, error)
	TapCreateV2(ctx context.Context, in *TapCreateV2) (*TapCreateV2Reply, error)
	TapDeleteV2(ctx context.Context, in *TapDeleteV2) (*TapDeleteV2Reply, error)
}

RPCService represents RPC service API for tapv2 module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpSwInterfaceTapV2Client

type RPCService_DumpSwInterfaceTapV2Client interface {
	Recv() (*SwInterfaceTapV2Details, error)
}

type RxMode

type RxMode = interface_types.RxMode

type SubIfFlags

type SubIfFlags = interface_types.SubIfFlags

type SwInterfaceTapV2Details

type SwInterfaceTapV2Details struct {
	SwIfIndex     uint32
	ID            uint32
	TxRingSz      uint16
	RxRingSz      uint16
	HostMtuSize   uint32
	HostMacAddr   MacAddress
	HostIP4Prefix IP4AddressWithPrefix
	HostIP6Prefix IP6AddressWithPrefix
	TapFlags      TapFlags
	DevName       string `struc:"[64]byte"`
	HostIfName    string `struc:"[64]byte"`
	HostNamespace string `struc:"[64]byte"`
	HostBridge    string `struc:"[64]byte"`
}

SwInterfaceTapV2Details represents VPP binary API message 'sw_interface_tap_v2_details'.

func (*SwInterfaceTapV2Details) GetCrcString

func (*SwInterfaceTapV2Details) GetCrcString() string

func (*SwInterfaceTapV2Details) GetMessageName

func (*SwInterfaceTapV2Details) GetMessageName() string

func (*SwInterfaceTapV2Details) GetMessageType

func (*SwInterfaceTapV2Details) GetMessageType() api.MessageType

func (*SwInterfaceTapV2Details) Reset

func (m *SwInterfaceTapV2Details) Reset()

type SwInterfaceTapV2Dump

type SwInterfaceTapV2Dump struct {
	SwIfIndex InterfaceIndex
}

SwInterfaceTapV2Dump represents VPP binary API message 'sw_interface_tap_v2_dump'.

func (*SwInterfaceTapV2Dump) GetCrcString

func (*SwInterfaceTapV2Dump) GetCrcString() string

func (*SwInterfaceTapV2Dump) GetMessageName

func (*SwInterfaceTapV2Dump) GetMessageName() string

func (*SwInterfaceTapV2Dump) GetMessageType

func (*SwInterfaceTapV2Dump) GetMessageType() api.MessageType

func (*SwInterfaceTapV2Dump) Reset

func (m *SwInterfaceTapV2Dump) Reset()

type TapCreateV2

type TapCreateV2 struct {
	ID               uint32
	UseRandomMac     bool
	MacAddress       MacAddress
	NumRxQueues      uint8
	TxRingSz         uint16
	RxRingSz         uint16
	HostMtuSet       bool
	HostMtuSize      uint32
	HostMacAddrSet   bool
	HostMacAddr      MacAddress
	HostIP4PrefixSet bool
	HostIP4Prefix    IP4AddressWithPrefix
	HostIP6PrefixSet bool
	HostIP6Prefix    IP6AddressWithPrefix
	HostIP4GwSet     bool
	HostIP4Gw        IP4Address
	HostIP6GwSet     bool
	HostIP6Gw        IP6Address
	TapFlags         TapFlags
	HostNamespaceSet bool
	HostNamespace    string `struc:"[64]byte"`
	HostIfNameSet    bool
	HostIfName       string `struc:"[64]byte"`
	HostBridgeSet    bool
	HostBridge       string `struc:"[64]byte"`
	XXX_TagLen       uint32 `struc:"sizeof=Tag"`
	Tag              string
}

TapCreateV2 represents VPP binary API message 'tap_create_v2'.

func (*TapCreateV2) GetCrcString

func (*TapCreateV2) GetCrcString() string

func (*TapCreateV2) GetMessageName

func (*TapCreateV2) GetMessageName() string

func (*TapCreateV2) GetMessageType

func (*TapCreateV2) GetMessageType() api.MessageType

func (*TapCreateV2) Reset

func (m *TapCreateV2) Reset()

type TapCreateV2Reply

type TapCreateV2Reply struct {
	Retval    int32
	SwIfIndex InterfaceIndex
}

TapCreateV2Reply represents VPP binary API message 'tap_create_v2_reply'.

func (*TapCreateV2Reply) GetCrcString

func (*TapCreateV2Reply) GetCrcString() string

func (*TapCreateV2Reply) GetMessageName

func (*TapCreateV2Reply) GetMessageName() string

func (*TapCreateV2Reply) GetMessageType

func (*TapCreateV2Reply) GetMessageType() api.MessageType

func (*TapCreateV2Reply) Reset

func (m *TapCreateV2Reply) Reset()

type TapDeleteV2

type TapDeleteV2 struct {
	SwIfIndex InterfaceIndex
}

TapDeleteV2 represents VPP binary API message 'tap_delete_v2'.

func (*TapDeleteV2) GetCrcString

func (*TapDeleteV2) GetCrcString() string

func (*TapDeleteV2) GetMessageName

func (*TapDeleteV2) GetMessageName() string

func (*TapDeleteV2) GetMessageType

func (*TapDeleteV2) GetMessageType() api.MessageType

func (*TapDeleteV2) Reset

func (m *TapDeleteV2) Reset()

type TapDeleteV2Reply

type TapDeleteV2Reply struct {
	Retval int32
}

TapDeleteV2Reply represents VPP binary API message 'tap_delete_v2_reply'.

func (*TapDeleteV2Reply) GetCrcString

func (*TapDeleteV2Reply) GetCrcString() string

func (*TapDeleteV2Reply) GetMessageName

func (*TapDeleteV2Reply) GetMessageName() string

func (*TapDeleteV2Reply) GetMessageType

func (*TapDeleteV2Reply) GetMessageType() api.MessageType

func (*TapDeleteV2Reply) Reset

func (m *TapDeleteV2Reply) Reset()

type TapFlags

type TapFlags uint32

TapFlags represents VPP binary API enum 'tap_flags'.

const (
	TAP_FLAG_GSO          TapFlags = 1
	TAP_FLAG_CSUM_OFFLOAD TapFlags = 2
)

func (TapFlags) String

func (x TapFlags) String() string

Jump to

Keyboard shortcuts

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