Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HookMapABI = ebpf.MapABI{ Type: ebpf.ProgramArray, KeySize: 4, ValueSize: 4, }
HookMapABI is the ABI of the underlying prog map created
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook represents an xdpcap hook point. This hook can be reused with several programs.
func NewHook ¶
NewHook creates a new Hook, that can be Pin()'d to fileName. fileName must be inside a bpffs
func (*Hook) Patch ¶
func (h *Hook) Patch(spec *ebpf.CollectionSpec, hookMapSymbol string) error
Patch edits all programs in the spec that refer to hookMapSymbol to use this hook.
This function is a no-op if called on a nil Hook.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
bpfoff
Program bpfoff converts a tcpdump / libpcap filter expression to a BPF filter matching packets with a fixed set of byte offsets.
|
Program bpfoff converts a tcpdump / libpcap filter expression to a BPF filter matching packets with a fixed set of byte offsets. |
xdpcap
Program xdpcap produces tcpdump compatible PCAPs from a BPF map.
|
Program xdpcap produces tcpdump compatible PCAPs from a BPF map. |
Click to show internal directories.
Click to hide internal directories.