af_packet

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

It consists of:

8 messages
4 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "af_packet"
	// APIVersion is the API version of this module.
	APIVersion = "1.0.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x206563c
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type AfPacketCreate

type AfPacketCreate struct {
	HostIfName      []byte `struc:"[64]byte"`
	HwAddr          []byte `struc:"[6]byte"`
	UseRandomHwAddr uint8
}

AfPacketCreate represents VPP binary API message 'af_packet_create'.

func (*AfPacketCreate) GetCrcString

func (*AfPacketCreate) GetCrcString() string

func (*AfPacketCreate) GetMessageName

func (*AfPacketCreate) GetMessageName() string

func (*AfPacketCreate) GetMessageType

func (*AfPacketCreate) GetMessageType() api.MessageType

type AfPacketCreateReply

type AfPacketCreateReply struct {
	Retval    int32
	SwIfIndex uint32
}

AfPacketCreateReply represents VPP binary API message 'af_packet_create_reply'.

func (*AfPacketCreateReply) GetCrcString

func (*AfPacketCreateReply) GetCrcString() string

func (*AfPacketCreateReply) GetMessageName

func (*AfPacketCreateReply) GetMessageName() string

func (*AfPacketCreateReply) GetMessageType

func (*AfPacketCreateReply) GetMessageType() api.MessageType

type AfPacketDelete

type AfPacketDelete struct {
	HostIfName []byte `struc:"[64]byte"`
}

AfPacketDelete represents VPP binary API message 'af_packet_delete'.

func (*AfPacketDelete) GetCrcString

func (*AfPacketDelete) GetCrcString() string

func (*AfPacketDelete) GetMessageName

func (*AfPacketDelete) GetMessageName() string

func (*AfPacketDelete) GetMessageType

func (*AfPacketDelete) GetMessageType() api.MessageType

type AfPacketDeleteReply

type AfPacketDeleteReply struct {
	Retval int32
}

AfPacketDeleteReply represents VPP binary API message 'af_packet_delete_reply'.

func (*AfPacketDeleteReply) GetCrcString

func (*AfPacketDeleteReply) GetCrcString() string

func (*AfPacketDeleteReply) GetMessageName

func (*AfPacketDeleteReply) GetMessageName() string

func (*AfPacketDeleteReply) GetMessageType

func (*AfPacketDeleteReply) GetMessageType() api.MessageType

type AfPacketDetails

type AfPacketDetails struct {
	SwIfIndex  uint32
	HostIfName []byte `struc:"[64]byte"`
}

AfPacketDetails represents VPP binary API message 'af_packet_details'.

func (*AfPacketDetails) GetCrcString

func (*AfPacketDetails) GetCrcString() string

func (*AfPacketDetails) GetMessageName

func (*AfPacketDetails) GetMessageName() string

func (*AfPacketDetails) GetMessageType

func (*AfPacketDetails) GetMessageType() api.MessageType

type AfPacketDump

type AfPacketDump struct{}

AfPacketDump represents VPP binary API message 'af_packet_dump'.

func (*AfPacketDump) GetCrcString

func (*AfPacketDump) GetCrcString() string

func (*AfPacketDump) GetMessageName

func (*AfPacketDump) GetMessageName() string

func (*AfPacketDump) GetMessageType

func (*AfPacketDump) GetMessageType() api.MessageType

type AfPacketSetL4CksumOffload

type AfPacketSetL4CksumOffload struct {
	SwIfIndex uint8
	Set       uint8
}

AfPacketSetL4CksumOffload represents VPP binary API message 'af_packet_set_l4_cksum_offload'.

func (*AfPacketSetL4CksumOffload) GetCrcString

func (*AfPacketSetL4CksumOffload) GetCrcString() string

func (*AfPacketSetL4CksumOffload) GetMessageName

func (*AfPacketSetL4CksumOffload) GetMessageName() string

func (*AfPacketSetL4CksumOffload) GetMessageType

func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType

type AfPacketSetL4CksumOffloadReply

type AfPacketSetL4CksumOffloadReply struct {
	Retval int32
}

AfPacketSetL4CksumOffloadReply represents VPP binary API message 'af_packet_set_l4_cksum_offload_reply'.

func (*AfPacketSetL4CksumOffloadReply) GetCrcString

func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string

func (*AfPacketSetL4CksumOffloadReply) GetMessageName

func (*AfPacketSetL4CksumOffloadReply) GetMessageName() string

func (*AfPacketSetL4CksumOffloadReply) GetMessageType

type RPCService

type RPCService interface {
	DumpAfPacket(ctx context.Context, in *AfPacketDump) (RPCService_DumpAfPacketClient, error)
	AfPacketCreate(ctx context.Context, in *AfPacketCreate) (*AfPacketCreateReply, error)
	AfPacketDelete(ctx context.Context, in *AfPacketDelete) (*AfPacketDeleteReply, error)
	AfPacketSetL4CksumOffload(ctx context.Context, in *AfPacketSetL4CksumOffload) (*AfPacketSetL4CksumOffloadReply, error)
}

RPCService represents RPC service API for af_packet module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpAfPacketClient

type RPCService_DumpAfPacketClient interface {
	Recv() (*AfPacketDetails, error)
}

Jump to

Keyboard shortcuts

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