Browse Source

Merge pull request #1010 from aya-rs/codegen

Update libbpf to b07dfe3b2a6cb0905e883510f22f9f7c0bb66d0d
Dave Tucker 6 months ago
parent
commit
bdbd0423f8

+ 7 - 0
ebpf/aya-ebpf-bindings/src/aarch64/bindings.rs

@@ -1716,6 +1716,13 @@ pub struct bpf_sock_tuple__bindgen_ty_1__bindgen_ty_2 {
     pub sport: __be16,
     pub dport: __be16,
 }
+pub mod tcx_action_base {
+    pub type Type = ::aya_ebpf_cty::c_int;
+    pub const TCX_NEXT: Type = -1;
+    pub const TCX_PASS: Type = 0;
+    pub const TCX_DROP: Type = 2;
+    pub const TCX_REDIRECT: Type = 7;
+}
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
 pub struct bpf_xdp_sock {

+ 7 - 0
ebpf/aya-ebpf-bindings/src/armv7/bindings.rs

@@ -1708,6 +1708,13 @@ pub struct bpf_sock_tuple__bindgen_ty_1__bindgen_ty_2 {
     pub sport: __be16,
     pub dport: __be16,
 }
+pub mod tcx_action_base {
+    pub type Type = ::aya_ebpf_cty::c_int;
+    pub const TCX_NEXT: Type = -1;
+    pub const TCX_PASS: Type = 0;
+    pub const TCX_DROP: Type = 2;
+    pub const TCX_REDIRECT: Type = 7;
+}
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
 pub struct bpf_xdp_sock {

+ 7 - 0
ebpf/aya-ebpf-bindings/src/powerpc64/bindings.rs

@@ -1711,6 +1711,13 @@ pub struct bpf_sock_tuple__bindgen_ty_1__bindgen_ty_2 {
     pub sport: __be16,
     pub dport: __be16,
 }
+pub mod tcx_action_base {
+    pub type Type = ::aya_ebpf_cty::c_int;
+    pub const TCX_NEXT: Type = -1;
+    pub const TCX_PASS: Type = 0;
+    pub const TCX_DROP: Type = 2;
+    pub const TCX_REDIRECT: Type = 7;
+}
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
 pub struct bpf_xdp_sock {

+ 7 - 0
ebpf/aya-ebpf-bindings/src/riscv64/bindings.rs

@@ -1716,6 +1716,13 @@ pub struct bpf_sock_tuple__bindgen_ty_1__bindgen_ty_2 {
     pub sport: __be16,
     pub dport: __be16,
 }
+pub mod tcx_action_base {
+    pub type Type = ::aya_ebpf_cty::c_int;
+    pub const TCX_NEXT: Type = -1;
+    pub const TCX_PASS: Type = 0;
+    pub const TCX_DROP: Type = 2;
+    pub const TCX_REDIRECT: Type = 7;
+}
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
 pub struct bpf_xdp_sock {

+ 7 - 0
ebpf/aya-ebpf-bindings/src/s390x/bindings.rs

@@ -1716,6 +1716,13 @@ pub struct bpf_sock_tuple__bindgen_ty_1__bindgen_ty_2 {
     pub sport: __be16,
     pub dport: __be16,
 }
+pub mod tcx_action_base {
+    pub type Type = ::aya_ebpf_cty::c_int;
+    pub const TCX_NEXT: Type = -1;
+    pub const TCX_PASS: Type = 0;
+    pub const TCX_DROP: Type = 2;
+    pub const TCX_REDIRECT: Type = 7;
+}
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
 pub struct bpf_xdp_sock {

+ 7 - 0
ebpf/aya-ebpf-bindings/src/x86_64/bindings.rs

@@ -1711,6 +1711,13 @@ pub struct bpf_sock_tuple__bindgen_ty_1__bindgen_ty_2 {
     pub sport: __be16,
     pub dport: __be16,
 }
+pub mod tcx_action_base {
+    pub type Type = ::aya_ebpf_cty::c_int;
+    pub const TCX_NEXT: Type = -1;
+    pub const TCX_PASS: Type = 0;
+    pub const TCX_DROP: Type = 2;
+    pub const TCX_REDIRECT: Type = 7;
+}
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
 pub struct bpf_xdp_sock {

+ 6 - 0
xtask/public-api/aya-ebpf-bindings.txt

@@ -503,6 +503,12 @@ pub mod aya_ebpf_bindings::bindings::sk_action
 pub const aya_ebpf_bindings::bindings::sk_action::SK_DROP: aya_ebpf_bindings::bindings::sk_action::Type
 pub const aya_ebpf_bindings::bindings::sk_action::SK_PASS: aya_ebpf_bindings::bindings::sk_action::Type
 pub type aya_ebpf_bindings::bindings::sk_action::Type = aya_ebpf_cty::ad::c_uint
+pub mod aya_ebpf_bindings::bindings::tcx_action_base
+pub const aya_ebpf_bindings::bindings::tcx_action_base::TCX_DROP: aya_ebpf_bindings::bindings::tcx_action_base::Type
+pub const aya_ebpf_bindings::bindings::tcx_action_base::TCX_NEXT: aya_ebpf_bindings::bindings::tcx_action_base::Type
+pub const aya_ebpf_bindings::bindings::tcx_action_base::TCX_PASS: aya_ebpf_bindings::bindings::tcx_action_base::Type
+pub const aya_ebpf_bindings::bindings::tcx_action_base::TCX_REDIRECT: aya_ebpf_bindings::bindings::tcx_action_base::Type
+pub type aya_ebpf_bindings::bindings::tcx_action_base::Type = aya_ebpf_cty::ad::c_int
 pub mod aya_ebpf_bindings::bindings::xdp_action
 pub const aya_ebpf_bindings::bindings::xdp_action::XDP_ABORTED: aya_ebpf_bindings::bindings::xdp_action::Type
 pub const aya_ebpf_bindings::bindings::xdp_action::XDP_DROP: aya_ebpf_bindings::bindings::xdp_action::Type