aya-bpf: expose bpf_sock_ops of SockOpsContext

This patch expose bpf_sock_ops of `SockOpsContext`.
pull/239/head
Kenjiro Nakayama 3 years ago
parent f01497e021
commit 6bc5a4d82d

@ -5,7 +5,7 @@ use aya_bpf_bindings::helpers::bpf_sock_ops_cb_flags_set;
use crate::{bindings::bpf_sock_ops, BpfContext}; use crate::{bindings::bpf_sock_ops, BpfContext};
pub struct SockOpsContext { pub struct SockOpsContext {
ops: *mut bpf_sock_ops, pub ops: *mut bpf_sock_ops,
} }
impl SockOpsContext { impl SockOpsContext {

Loading…
Cancel
Save