tapv2

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 6 Imported by: 7

Documentation

Overview

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

It consists of:

6 messages
3 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "tapv2"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x41375eca
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

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 SwInterfaceTapV2Details

type SwInterfaceTapV2Details struct {
	SwIfIndex        uint32
	ID               uint32
	DevName          []byte `struc:"[64]byte"`
	TxRingSz         uint16
	RxRingSz         uint16
	HostMacAddr      []byte `struc:"[6]byte"`
	HostIfName       []byte `struc:"[64]byte"`
	HostNamespace    []byte `struc:"[64]byte"`
	HostBridge       []byte `struc:"[64]byte"`
	HostIP4Addr      []byte `struc:"[4]byte"`
	HostIP4PrefixLen uint8
	HostIP6Addr      []byte `struc:"[16]byte"`
	HostIP6PrefixLen uint8
	HostMtuSize      uint32
	TapFlags         uint32
}

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

type SwInterfaceTapV2Dump

type SwInterfaceTapV2Dump struct{}

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

type TapCreateV2

type TapCreateV2 struct {
	ID               uint32
	UseRandomMac     uint8
	MacAddress       []byte `struc:"[6]byte"`
	TxRingSz         uint16
	RxRingSz         uint16
	HostNamespaceSet uint8
	HostNamespace    []byte `struc:"[64]byte"`
	HostMacAddrSet   uint8
	HostMacAddr      []byte `struc:"[6]byte"`
	HostIfNameSet    uint8
	HostIfName       []byte `struc:"[64]byte"`
	HostBridgeSet    uint8
	HostBridge       []byte `struc:"[64]byte"`
	HostIP4AddrSet   uint8
	HostIP4Addr      []byte `struc:"[4]byte"`
	HostIP4PrefixLen uint8
	HostIP6AddrSet   uint8
	HostIP6Addr      []byte `struc:"[16]byte"`
	HostIP6PrefixLen uint8
	HostIP4GwSet     uint8
	HostIP4Gw        []byte `struc:"[4]byte"`
	HostIP6GwSet     uint8
	HostIP6Gw        []byte `struc:"[16]byte"`
	HostMtuSet       uint8
	HostMtuSize      uint32
	Tag              []byte `struc:"[64]byte"`
	TapFlags         uint32
}

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

type TapCreateV2Reply

type TapCreateV2Reply struct {
	Retval    int32
	SwIfIndex uint32
}

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

type TapDeleteV2

type TapDeleteV2 struct {
	SwIfIndex uint32
}

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

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

Jump to

Keyboard shortcuts

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