codegen: Add bindings for BPF_F flags

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/144/head
Dave Tucker 3 years ago committed by Alessandro Decina
parent 23d1920854
commit f8021c33fc

@ -111,6 +111,7 @@ fn codegen_bindings(opts: &Options) -> Result<(), anyhow::Error> {
"BPF_W", "BPF_W",
"BPF_H", "BPF_H",
"BPF_B", "BPF_B",
"BPF_F_.*",
"BPF_JMP", "BPF_JMP",
"BPF_CALL", "BPF_CALL",
"SO_ATTACH_BPF", "SO_ATTACH_BPF",
@ -186,6 +187,7 @@ fn codegen_bindings(opts: &Options) -> Result<(), anyhow::Error> {
for x in &vars { for x in &vars {
bindgen = bindgen bindgen = bindgen
.allowlist_var(x) .allowlist_var(x)
.constified_enum("BPF_F_.*")
.constified_enum("BTF_KIND_.*") .constified_enum("BTF_KIND_.*")
.constified_enum("BTF_VAR_.*"); .constified_enum("BTF_VAR_.*");
} }

Loading…
Cancel
Save