dataplane

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillPacketListFromDataWithCustomAlloc

func FillPacketListFromDataWithCustomAlloc(
	packetList *PacketList,
	alloc *Alloc,
	data ...PacketData,
) error

func Free

func Free(pf *PacketFront)

Types

type Alloc

type Alloc struct {
	// contains filtered or unexported fields
}

func NewAlloc

func NewAlloc(alloc unsafe.Pointer, allocFunc unsafe.Pointer) *Alloc

type Packet

type Packet C.struct_packet

func NewPacketFromData

func NewPacketFromData(
	data PacketData,
	pinner *runtime.Pinner,
) (*Packet, error)

func (*Packet) Data

func (packet *Packet) Data() PacketData

func (*Packet) Info

func (packet *Packet) Info() *framework.PacketInfo

type PacketData

type PacketData struct {
	Data       []uint8
	TxDeviceId uint16
	RxDeviceId uint16
}

type PacketFront

type PacketFront C.struct_packet_front

func (*PacketFront) DropList

func (pf *PacketFront) DropList() *PacketList

func (*PacketFront) InputList

func (pf *PacketFront) InputList() *PacketList

func (*PacketFront) OutputList

func (pf *PacketFront) OutputList() *PacketList

type PacketList

type PacketList C.struct_packet_list

func NewPacketList

func NewPacketList(packets ...Packet) PacketList

func NewPacketListFromData

func NewPacketListFromData(data ...PacketData) (*PacketList, error)

func (*PacketList) Add

func (packetList *PacketList) Add(packet *Packet)

func (*PacketList) Free

func (packetList *PacketList) Free()

func (*PacketList) Iter

func (packetList *PacketList) Iter() *PacketListIter

type PacketListIter

type PacketListIter struct {
	// contains filtered or unexported fields
}

func (*PacketListIter) Next

func (iter *PacketListIter) Next() *Packet

Jump to

Keyboard shortcuts

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