Files
python-bpf/tests/c-form/ex2.bpf.c
2025-10-08 11:40:12 +05:30

13 lines
248 B
C

#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_endian.h>
SEC("xdp")
int hello(struct xdp_md *ctx) {
// ctx.
bpf_printk("Hello, World! %ud \n", ctx->data);
return XDP_PASS;
}
char LICENSE[] SEC("license") = "GPL";