]> ruderich.org/simon Gitweb - bpf/xdp-example.git/blob - example.bpf.c
Initial commit
[bpf/xdp-example.git] / example.bpf.c
1 // SPDX-License-Identifier: (LGPL-2.1-or-later OR BSD-2-Clause)
2
3 #include "vmlinux.h"
4
5 #include <bpf/bpf_helpers.h>
6
7
8 SEC("xdp")
9 int xdp_prog(struct xdp_md *ctx) {
10     (void)ctx;
11     return XDP_PASS;
12 }
13
14 char LICENSE[] SEC("license") = "GPL";