|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #include <openssl/bio.h>
17 #include <openssl/err.h>
30 BIO_set_init (bio, 0);
31 BIO_set_data (bio, 0);
32 BIO_set_flags (bio, 0);
33 BIO_set_shutdown (bio, 0);
43 if (BIO_get_shutdown (bio))
45 if (BIO_get_init (bio))
47 BIO_set_init (bio, 0);
48 BIO_set_flags (bio, 0);
75 BIO_set_retry_read (
b);
89 BIO_clear_retry_flags (
b);
118 BIO_set_retry_write (
b);
123 BIO_clear_retry_flags (
b);
141 case BIO_CTRL_GET_CLOSE:
142 ret = BIO_get_shutdown (
b);
144 case BIO_CTRL_SET_CLOSE:
145 BIO_set_shutdown (
b, (
int) larg);
151 case BIO_CTRL_PENDING:
164 static BIO_METHOD *tls_bio_method;
168 tls_bio_method = BIO_meth_new (BIO_TYPE_SOCKET,
"tls_bio");
175 b = BIO_new (tls_bio_method);
long bio_tls_ctrl(BIO *b, int cmd, long larg, void *ptr)
static int app_send_stream_raw(svm_fifo_t *f, svm_msg_q_t *vpp_evt_q, u8 *data, u32 len, u8 evt_type, u8 do_evt, u8 noblock)
static void svm_fifo_unset_event(svm_fifo_t *f)
Unset fifo event flag.
void session_close(session_t *s)
Initialize session closing procedure.
static int bio_tls_read(BIO *b, char *out, int outl)
static uword pointer_to_uword(const void *p)
static u8 svm_fifo_needs_deq_ntf(svm_fifo_t *f, u32 n_last_deq)
Check if fifo needs dequeue notification.
static int app_recv_stream_raw(svm_fifo_t *f, u8 *buf, u32 len, u8 clear_evt, u8 peek)
u8 thread_index
Index of the thread that allocated the session.
BIO * BIO_new_tls(session_handle_t sh)
svm_fifo_t * rx_fifo
Pointers to rx/tx buffers.
static void svm_fifo_clear_deq_ntf(svm_fifo_t *f)
Clear the want notification flag and set has notification.
static int svm_fifo_is_empty_cons(svm_fifo_t *f)
Check if fifo is empty optimized for consumer.
static svm_msg_q_t * session_main_get_vpp_event_queue(u32 thread_index)
static int bio_tls_write(BIO *b, const char *in, int inl)
static session_t * bio_session(BIO *bio)
static session_t * session_get_from_handle(session_handle_t handle)
static int bio_tls_free(BIO *bio)
#define uword_to_pointer(u, type)
#define clib_warning(format, args...)
static int bio_tls_alloc(BIO *bio)
int session_send_io_evt_to_thread(svm_fifo_t *f, session_evt_type_t evt_type)