You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// how much data can be exchanged in a buffer between eBPF and user space application in one go
8
4
pubconstDATA_BUF_CAPACITY:usize = 16384;
9
-
// note: per SSL_read/SSL_write call OpenSSL supports up to 16 KB (cf. https://www.openssl.org/docs/man1.1.1/man3/SSL_read.html), ie it does not make sense to configure here much more
10
-
// this is also according to the TLS specification: https://www.rfc-editor.org/rfc/rfc8446
5
+
// note: per SSL_read/SSL_write call OpenSSL supports up to 16 KB (cf. https://docs.openssl.org/3.0/man3/SSL_read/), ie it does not make sense to configure here much more
6
+
// this is also according to the TLS specification: https://www.rfc-editor.org/rfc/rfc8446
let current_pid_tgid = unsafe{bpf_get_current_pid_tgid()};
62
63
63
-
// get the parameter containing the read buffer, cf. https://www.openssl.org/docs/man1.1.1/man3/SSL_read.html, Note: aya starts from 0 (ie Parameter 2 = arg(1))
64
-
let buffer_ptr:*const core::ffi::c_void = *&ctx.arg(1).unwrap();
65
-
64
+
// get the parameter containing the read buffer, cf. https://docs.openssl.org/3.0/man3/SSL_read/, Note: aya starts from 0 (ie Parameter 2 = arg(1))
65
+
let buffer_ptr:*const core::ffi::c_void = match*&ctx.arg(1){
let current_pid_tgid = unsafe{bpf_get_current_pid_tgid()};
139
144
140
-
// get the parameter containing the write buffer, cf. https://www.openssl.org/docs/man1.1.1/man3/SSL_write.html, Note: aya starts from 0 (ie Parameter 2 = arg(1))
141
-
let buffer_ptr:*const core::ffi::c_void = *&ctx.arg(1).unwrap();
142
-
145
+
// get the parameter containing the write buffer, cf. https://docs.openssl.org/3.0/man3/SSL_write/, Note: aya starts from 0 (ie Parameter 2 = arg(1))
146
+
let buffer_ptr:*const core::ffi::c_void = match*&ctx.arg(1){
0 commit comments