mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
12 lines
236 B
C
12 lines
236 B
C
#include "vmlinux.h"
|
|
#include <bpf/bpf_helpers.h>
|
|
#include <bpf/bpf_endian.h>
|
|
|
|
SEC("xdp")
|
|
int hello(struct xdp_md *ctx) {
|
|
bpf_printk("Hello, World! %ud \n", ctx->data);
|
|
return XDP_PASS;
|
|
}
|
|
|
|
char LICENSE[] SEC("license") = "GPL";
|