wip
This commit is contained in:
parent
fbfc3b7e51
commit
1cbfd1dda2
|
@ -0,0 +1,12 @@
|
|||
//go:build ignore
|
||||
|
||||
#include <linux/bpf.h>
|
||||
#include <bpf_helpers.h>
|
||||
|
||||
SEC("xdp")
|
||||
int xdp_prog_func(struct xdp_md *ctx) {
|
||||
void *data_end = (void *)(long)ctx->data_end;
|
||||
void *data = (void *)(long)ctx->data;
|
||||
|
||||
return XDP_PASS;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go bpf xdp.c --
|
||||
|
||||
func main() {
|
||||
|
||||
}
|
Loading…
Reference in New Issue