libosmo-netif  0.2.0-dirty
Osmocom network interface library
include/osmocom/netif/osmux.h File Reference
#include <osmocom/core/endian.h>
#include <osmocom/core/timer.h>

Go to the source code of this file.

Data Structures

struct  osmux_hdr
struct  osmux_in_handle
struct  osmux_out_handle

Defines

#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)
void osmux_xfrm_output_set_tx_cb (struct osmux_out_handle *h, void(*tx_cb)(struct msgb *msg, void *data), void *data)
 Set transmission callback to call when a generated RTP packet is to be transmitted.
int osmux_xfrm_output (struct osmux_hdr *osmuxh, struct osmux_out_handle *h, struct llist_head *list) OSMO_DEPRECATED("Use osmux_xfrm_output_sched() instead")
int osmux_xfrm_output_sched (struct osmux_out_handle *h, struct osmux_hdr *osmuxh)
 Generate RTP packets from osmux frame AMR payload set and schedule them for transmission at appropiate time.
void osmux_xfrm_output_flush (struct osmux_out_handle *h)
 Flush all scheduled RTP packets still pending to be transmitted.
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) OSMO_DEPRECATED("Use osmux_xfrm_output_set_tx_cb() instead")

Variables

uint8_t seq
uint8_t circuit_id
struct osmux_in_handle __attribute__

Detailed Description

Osmocom multiplex protocol helpers

 All Data Structures Files Functions