mirror of
https://github.com/aya-rs/aya.git
synced 2026-10-25 07:15:18 +01:00
Adds the following to codegen: - `bpf_cgroup_iter_order`: used in `bpf_link_info.iter.group.order` - `NFPROTO_*`: used in `bpf_link_info.netfilter.pf` - `nf_inet_hooks`: used in `bpf_link_info.netfilter.hooknum` Include `linux/netfilter.h` in `linux_wrapper.h` for `NFPROTO_*` and `nf_inet_hooks` to generate.
15 lines
485 B
C
15 lines
485 B
C
#include <asm-generic/socket.h>
|
|
#include <linux/bpf.h>
|
|
#include <linux/btf.h>
|
|
#include <linux/if_link.h>
|
|
#include <linux/netfilter.h>
|
|
#include <linux/perf_event.h>
|
|
#include <linux/pkt_cls.h>
|
|
#include <linux/pkt_sched.h>
|
|
#include <linux/rtnetlink.h>
|
|
|
|
/* workaround the fact that bindgen can't parse the IOC macros */
|
|
int AYA_PERF_EVENT_IOC_ENABLE = PERF_EVENT_IOC_ENABLE;
|
|
int AYA_PERF_EVENT_IOC_DISABLE = PERF_EVENT_IOC_DISABLE;
|
|
int AYA_PERF_EVENT_IOC_SET_BPF = PERF_EVENT_IOC_SET_BPF;
|