#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>

SEC("xdp") // GCC/Clang のセクション属性
int xdp_hello_prog(struct xdp_md *ctx)
{
    // カーネル・ログに "Hello eBPF" を出力
    bpf_printk("Hello eBPF\n");

    // パケットはそのままカーネル・スタックに渡す
    return XDP_PASS;
}

char _license[] SEC("license") = "GPL";
