Author name: Anamika

Userspace program

Major components you might find in this userspace eBPF program written using the Cilium eBPF library in Go are as follows: Loading pre-compiled eBPF programs into the kernel Attaching the eBPF program to a network interface using XDP (eXpress Data Path) Printing the contents of the BPF hash map (source IP address -> packet count) to stdout every …

Userspace program Read More »

Kernel Space eBPF program for XDP hook

//go:build ignore This is a build constraint for Go. It specifies that this file should be ignored by the Go build system. #include “bpf_endian.h” #include “common.h” Header files that provide some utility functions and macros that are used in the program defined in the Cilium eBPF library. bpf_endian.h: This header file defines macros for converting between …

Kernel Space eBPF program for XDP hook Read More »

What is XDP

eBPF (extended Berkeley Packet Filter) XDP (Express Data Path) programs are a type of eBPF program that are attached to a network interface using the XDP hook. The XDP hook is a low-level hook that allows eBPF programs to be executed early in the packet receive path, before the packet is passed up the network …

What is XDP Read More »

Scroll to Top