xdp

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressFilter

type AddressFilter func(netip.Addr) bool

type XDPReceiver

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

func NewXDPReceiver

func NewXDPReceiver(iface *net.Interface, port int, addressFilter AddressFilter) (xdpReceiver *XDPReceiver, err error)

func (*XDPReceiver) Close

func (r *XDPReceiver) Close() error

func (*XDPReceiver) Recv

func (r *XDPReceiver) Recv(b []byte) (int, netip.AddrPort, error)

func (*XDPReceiver) RunHealthCheck

func (r *XDPReceiver) RunHealthCheck() error

Jump to

Keyboard shortcuts

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