Documentation ¶
Overview ¶
Package bpf provides access to compiled eBPF ELF objects.
Index ¶
Constants ¶
View Source
const EnvBpfPath = "NDNDPDK_BPF_PATH"
EnvBpfPath declares an environment variable to explicitly specify a directory containing compiled eBPF ELF objects.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind string
Kind indicates the kind of compiled eBPF ELF object.
func (Kind) Find ¶
Find determines the filesystem path of a compiled eBPF ELF object. It first constructs a filename from the kind and short name. It then searches the file in the following locations:
- The path specified in NDNDPDK_BPF_PATH environ.
- ../lib/bpf relative to the executable. From /usr/local/bin/ndndpdk-svc, this step looks for eBPF objects in /usr/local/lib/bpf.
- build/lib/bpf in the source tree. This is used in unit tests, and is skipped if the executable is installed under /usr.
Click to show internal directories.
Click to hide internal directories.