Browse Source

codegen: Add bindings for BPF_F flags

Signed-off-by: Dave Tucker <[email protected]>
Dave Tucker 3 years ago
parent
commit
f8021c33fc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      xtask/src/codegen/aya.rs

+ 2 - 0
xtask/src/codegen/aya.rs

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