Merge pull request #1020 from l2dy/sockops-ctx

aya-ebpf: Add set_reply accessor to SockOpsContext
pull/1021/head
Alessandro Decina 2 weeks ago committed by GitHub
commit 635ed3baed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -61,6 +61,10 @@ impl SockOpsContext {
pub fn arg(&self, n: usize) -> u32 {
unsafe { (*self.ops).__bindgen_anon_1.args[n] }
}
pub fn set_reply(&mut self, reply: u32) {
unsafe { (*self.ops).__bindgen_anon_1.reply = reply }
}
}
impl EbpfContext for SockOpsContext {

@ -1821,6 +1821,7 @@ pub fn aya_ebpf::programs::sock_ops::SockOpsContext::remote_ip4(&self) -> u32
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::remote_ip6(&self) -> [u32; 4]
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::remote_port(&self) -> u32
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::set_cb_flags(&self, flags: i32) -> core::result::Result<(), i64>
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::set_reply(&mut self, reply: u32)
impl aya_ebpf::EbpfContext for aya_ebpf::programs::sock_ops::SockOpsContext
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::as_ptr(&self) -> *mut core::ffi::c_void
impl core::marker::Freeze for aya_ebpf::programs::sock_ops::SockOpsContext
@ -2466,6 +2467,7 @@ pub fn aya_ebpf::programs::sock_ops::SockOpsContext::remote_ip4(&self) -> u32
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::remote_ip6(&self) -> [u32; 4]
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::remote_port(&self) -> u32
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::set_cb_flags(&self, flags: i32) -> core::result::Result<(), i64>
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::set_reply(&mut self, reply: u32)
impl aya_ebpf::EbpfContext for aya_ebpf::programs::sock_ops::SockOpsContext
pub fn aya_ebpf::programs::sock_ops::SockOpsContext::as_ptr(&self) -> *mut core::ffi::c_void
impl core::marker::Freeze for aya_ebpf::programs::sock_ops::SockOpsContext

Loading…
Cancel
Save