af_packet

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 af_packet contains generated bindings for API file af_packet.api.

Contents:

8 messages

Index

Constants

View Source
const (
	APIFile    = "af_packet"
	APIVersion = "2.0.0"
	VersionCrc = 0x4191e8ae
)

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 {
	HwAddr          ethernet_types.MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"`
	UseRandomHwAddr bool                      `binapi:"bool,name=use_random_hw_addr" json:"use_random_hw_addr,omitempty"`
	HostIfName      string                    `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"`
}

AfPacketCreate defines 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

func (*AfPacketCreate) Marshal

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

func (*AfPacketCreate) Reset

func (m *AfPacketCreate) Reset()

func (*AfPacketCreate) Size

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

func (*AfPacketCreate) Unmarshal

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

type AfPacketCreateReply

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

AfPacketCreateReply defines 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

func (*AfPacketCreateReply) Marshal

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

func (*AfPacketCreateReply) Reset

func (m *AfPacketCreateReply) Reset()

func (*AfPacketCreateReply) Size

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

func (*AfPacketCreateReply) Unmarshal

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

type AfPacketDelete

type AfPacketDelete struct {
	HostIfName string `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"`
}

AfPacketDelete defines 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

func (*AfPacketDelete) Marshal

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

func (*AfPacketDelete) Reset

func (m *AfPacketDelete) Reset()

func (*AfPacketDelete) Size

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

func (*AfPacketDelete) Unmarshal

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

type AfPacketDeleteReply

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

AfPacketDeleteReply defines 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

func (*AfPacketDeleteReply) Marshal

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

func (*AfPacketDeleteReply) Reset

func (m *AfPacketDeleteReply) Reset()

func (*AfPacketDeleteReply) Size

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

func (*AfPacketDeleteReply) Unmarshal

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

type AfPacketDetails

type AfPacketDetails struct {
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	HostIfName string                         `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"`
}

AfPacketDetails defines 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

func (*AfPacketDetails) Marshal

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

func (*AfPacketDetails) Reset

func (m *AfPacketDetails) Reset()

func (*AfPacketDetails) Size

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

func (*AfPacketDetails) Unmarshal

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

type AfPacketDump

type AfPacketDump struct{}

AfPacketDump defines 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

func (*AfPacketDump) Marshal

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

func (*AfPacketDump) Reset

func (m *AfPacketDump) Reset()

func (*AfPacketDump) Size

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

func (*AfPacketDump) Unmarshal

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

type AfPacketSetL4CksumOffload

type AfPacketSetL4CksumOffload struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Set       bool                           `binapi:"bool,name=set" json:"set,omitempty"`
}

AfPacketSetL4CksumOffload defines 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

func (*AfPacketSetL4CksumOffload) Marshal

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

func (*AfPacketSetL4CksumOffload) Reset

func (m *AfPacketSetL4CksumOffload) Reset()

func (*AfPacketSetL4CksumOffload) Size

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

func (*AfPacketSetL4CksumOffload) Unmarshal

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

type AfPacketSetL4CksumOffloadReply

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

AfPacketSetL4CksumOffloadReply defines 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

func (*AfPacketSetL4CksumOffloadReply) Marshal

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

func (*AfPacketSetL4CksumOffloadReply) Reset

func (m *AfPacketSetL4CksumOffloadReply) Reset()

func (*AfPacketSetL4CksumOffloadReply) Size

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

func (*AfPacketSetL4CksumOffloadReply) Unmarshal

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

type RPCService

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

RPCService defines RPC service af_packet.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_AfPacketDumpClient

type RPCService_AfPacketDumpClient interface {
	Recv() (*AfPacketDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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