ebpf-lab

example code from Learning eBPF by Liz Rice, https://github.com/lizrice/learning-ebpf
git clone https://git.in0rdr.ch/ebpf-lab.git
Log | Files | Refs | Pull requests |Archive | README

commit b7e3c816175d251eb022bb899ab171850694eaff
parent b184aa2dfa60f724fe717e97722744f7d6d25929
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sun, 14 May 2023 11:30:53 +0200

fix: comment

Diffstat:
Msamples/xdp/hello-xdp.bcc.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/samples/xdp/hello-xdp.bcc.c b/samples/xdp/hello-xdp.bcc.c @@ -14,7 +14,8 @@ SEC("xdp") int hello_xdp(struct xdp_md *ctx) { - // libpf version of BCCs bpf_trace_printk() + // helper macro to print out debug messages, wrapper for bpf_trace_printk() + // /usr/include/bpf/bpf_helpers.h bpf_printk("received packet"); // XDP_PASS : let the packet pass // XDP_DROP : you shall not pass