Fork me on GitHub
Data Structures | Typedefs | Functions
dtls-bio.c File Reference
#include <glib.h>
#include "dtls-bio.h"
#include "debug.h"
#include "mutex.h"
Include dependency graph for dtls-bio.c:

Data Structures

struct  janus_dtls_bio_filter
 

Typedefs

typedef struct janus_dtls_bio_filter janus_dtls_bio_filter
 

Functions

void janus_dtls_bio_filter_set_mtu (int start_mtu)
 Set the MTU for the BIO filter. More...
 
int janus_dtls_bio_filter_write (BIO *h, const char *buf, int num)
 
long janus_dtls_bio_filter_ctrl (BIO *h, int cmd, long arg1, void *arg2)
 
int janus_dtls_bio_filter_new (BIO *h)
 
int janus_dtls_bio_filter_free (BIO *data)
 
int janus_dtls_bio_filter_init (void)
 OpenSSL BIO filter for fragmentation initialization. More...
 
BIO_METHOD * BIO_janus_dtls_filter (void)
 OpenSSL BIO filter for fragmentation constructor. More...
 

Typedef Documentation

◆ janus_dtls_bio_filter

Function Documentation

◆ BIO_janus_dtls_filter()

BIO_METHOD* BIO_janus_dtls_filter ( void  )

OpenSSL BIO filter for fragmentation constructor.

◆ janus_dtls_bio_filter_ctrl()

long janus_dtls_bio_filter_ctrl ( BIO *  h,
int  cmd,
long  arg1,
void *  arg2 
)

◆ janus_dtls_bio_filter_free()

int janus_dtls_bio_filter_free ( BIO *  data)

◆ janus_dtls_bio_filter_init()

int janus_dtls_bio_filter_init ( void  )

OpenSSL BIO filter for fragmentation initialization.

◆ janus_dtls_bio_filter_new()

int janus_dtls_bio_filter_new ( BIO *  h)

◆ janus_dtls_bio_filter_set_mtu()

void janus_dtls_bio_filter_set_mtu ( int  start_mtu)

Set the MTU for the BIO filter.

Note
The default starting MTU is 1472, in case fragmentation is needed the OpenSSL DTLS stack automatically decreases it. That said, if you know for sure the MTU in the network Janus is deployed in is smaller than that, it makes sense to configure an according value to start from
Parameters
start_mtuThe MTU to start from (1472 by default)

◆ janus_dtls_bio_filter_write()

int janus_dtls_bio_filter_write ( BIO *  h,
const char *  buf,
int  num 
)