From 6bc5a4d82dab1e6988920b16845b17f692f2f6f6 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Thu, 24 Mar 2022 11:47:37 +0900 Subject: [PATCH] aya-bpf: expose bpf_sock_ops of SockOpsContext This patch expose bpf_sock_ops of `SockOpsContext`. --- bpf/aya-bpf/src/programs/sock_ops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpf/aya-bpf/src/programs/sock_ops.rs b/bpf/aya-bpf/src/programs/sock_ops.rs index 7f9838b8..91c3ea1b 100644 --- a/bpf/aya-bpf/src/programs/sock_ops.rs +++ b/bpf/aya-bpf/src/programs/sock_ops.rs @@ -5,7 +5,7 @@ use aya_bpf_bindings::helpers::bpf_sock_ops_cb_flags_set; use crate::{bindings::bpf_sock_ops, BpfContext}; pub struct SockOpsContext { - ops: *mut bpf_sock_ops, + pub ops: *mut bpf_sock_ops, } impl SockOpsContext {