Merge branch 'master' into request-struct

This commit is contained in:
varunrmallya
2025-11-21 02:10:52 +05:30
committed by GitHub
33 changed files with 1541 additions and 179 deletions

View File

@ -0,0 +1,15 @@
#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
SEC("xdp")
int print_xdp_data(struct xdp_md *ctx)
{
// 'data' is a pointer to the start of packet data
long data = (long)ctx->data;
bpf_printk("ctx->data = %lld\n", data);
return XDP_PASS;
}
char LICENSE[] SEC("license") = "GPL";