Documentation
¶
Index ¶
Constants ¶
View Source
const ( Namespace = "enet" BpfFsPath = "/sys/fs/bpf" )
View Source
const (
EnetProgName = "enet_prog"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook provides a set of operations that allow for managing the execution of the XDP program including attaching it on the network interface, or removing the program from the interface.
func (*Hook) Attach ¶
func (h *Hook) Attach(device string, mode link.XDPAttachFlags) error
Attach loads the XDP program to specified interface.
Click to show internal directories.
Click to hide internal directories.