Documentation ¶
Index ¶
- func Attach(prog *ebpf.Program, device string) error
- func Detach(device string) error
- func LoadElf(filepath string) (*ebpf.Collection, error)
- func XskAttach(devices []string, queueIDs []int, prog *xdp.Program, ...) (map[string][]*AfXdpL4Socket, error)
- func XskDetach(xskmap map[string][]*AfXdpL4Socket, queueIDs []int, prog *xdp.Program) error
- type AfXdpL4Handler
- type AfXdpL4HandlerOptions
- type AfXdpL4Socket
- type AfXdpL4Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AfXdpL4Handler ¶
type AfXdpL4Handler struct { AfxdpProg *xdp.Program // xskmap map[string][]*xdp.Socket Xskmap map[string][]*AfXdpL4Socket // contains filtered or unexported fields }
func NewAfXdpL4Handler ¶
func NewAfXdpL4Handler(options AfXdpL4HandlerOptions) (*AfXdpL4Handler, error)
func (*AfXdpL4Handler) Close ¶
func (a *AfXdpL4Handler) Close() error
type AfXdpL4HandlerOptions ¶
type AfXdpL4HandlerOptions struct { Port uint32 Devices []string QueueIDs []int ProgramOptions *ebpf.CollectionOptions SocketOptions *xdp.SocketOptions }
type AfXdpL4Socket ¶
type AfXdpL4Socket struct {
// contains filtered or unexported fields
}
type AfXdpL4Worker ¶
type AfXdpL4Worker func(chan []byte)
Click to show internal directories.
Click to hide internal directories.