libosmo-netif  0.0.7.20171026
Osmocom network interface library
 All Data Structures Files Functions Modules
osmux.h File Reference
#include <osmocom/core/endian.h>

Go to the source code of this file.

Data Structures

struct  osmux_hdr
 
struct  osmux_in_handle
 
struct  osmux_out_handle
 

Macros

#define OSMUX_FT_SIGNAL   0
 
#define OSMUX_FT_VOICE_AMR   1
 
#define OSMUX_FT_DUMMY   2
 
#define OSMUX_CID_MAX   255 /* determined by circuit_id */
 
#define OSMUX_MAX_CONCURRENT_CALLS   8
 
#define OSMUX_BATCH_DEFAULT_MAX   1472
 

Functions

struct osmux_hdr __attribute__ ((packed))
 
static uint8_t * osmux_get_payload (struct osmux_hdr *osmuxh)
 
int osmux_snprintf (char *buf, size_t size, struct msgb *msg)
 
void osmux_xfrm_input_init (struct osmux_in_handle *h)
 
void osmux_xfrm_input_fini (struct osmux_in_handle *h)
 
int osmux_xfrm_input_open_circuit (struct osmux_in_handle *h, int ccid, int dummy)
 
void osmux_xfrm_input_close_circuit (struct osmux_in_handle *h, int ccid)
 
int osmux_xfrm_input (struct osmux_in_handle *h, struct msgb *msg, int ccid)
 
void osmux_xfrm_input_deliver (struct osmux_in_handle *h)
 
void osmux_xfrm_output_init (struct osmux_out_handle *h, uint32_t rtp_ssrc)
 
int osmux_xfrm_output (struct osmux_hdr *osmuxh, struct osmux_out_handle *h, struct llist_head *list)
 
struct osmux_hdrosmux_xfrm_output_pull (struct msgb *msg)
 
void osmux_tx_sched (struct llist_head *list, void(*tx_cb)(struct msgb *msg, void *data), void *data)
 

Variables

uint8_t seq
 
uint8_t circuit_id
 
struct osmux_in_handle __attribute__
 

Detailed Description

Osmocom multiplex protocol helpers