libosmo-netif 1.7.0.10-3a9e Osmocom network interface library

Macros | Functions
osmux_input.c File Reference
Osmocom Multiplex Protocol

Osmocom multiplex protocol helpers (input) More...

`#include <stdio.h>`
`#include <string.h>`
`#include <inttypes.h>`
`#include <osmocom/core/msgb.h>`
`#include <osmocom/core/timer.h>`
`#include <osmocom/core/timer_compat.h>`
`#include <osmocom/core/select.h>`
`#include <osmocom/core/talloc.h>`
`#include <osmocom/core/logging.h>`
`#include <osmocom/netif/amr.h>`
`#include <osmocom/netif/rtp.h>`
`#include <osmocom/netif/osmux.h>`
`#include <arpa/inet.h>`

## Macros
#define | DELTA_RTP_MSG 20000
#define | DELTA_RTP_TIMESTAMP 160
#define | LOGMUXLK_(link, lvl, fmt, args ...)
#define | LOGMUXLK(link, lvl, fmt, args ...) LOGMUXLK_(link, lvl, " " fmt, ## args)
#define | LOGMUXCID(link, circuit, lvl, fmt, args ...)

## Functions
void | osmux_xfrm_input_deliver (struct osmux_in_handle *h)
int | osmux_xfrm_input (struct osmux_in_handle *h, struct msgb *msg, int ccid)
| osmux_xfrm_input - add RTP message to OSmux batch More...
struct osmux_in_handle * | osmux_xfrm_input_alloc (void *ctx)
| Allocate a new osmux in handle (osmux source, tx side) More...
void | osmux_xfrm_input_init (struct osmux_in_handle *h) OSMO_DEPRECATED("Use osmux_xfrm_input_alloc() instead")
int | osmux_xfrm_input_set_batch_factor (struct osmux_in_handle *h, uint8_t batch_factor)
void | osmux_xfrm_input_set_batch_size (struct osmux_in_handle *h, uint16_t batch_size)
void | osmux_xfrm_input_set_initial_seqnum (struct osmux_in_handle *h, uint8_t osmux_seqnum)
void | osmux_xfrm_input_set_deliver_cb (struct osmux_in_handle *h, void(*deliver_cb)(struct msgb *msg, void *data), void *data)
void * | osmux_xfrm_input_get_deliver_cb_data (struct osmux_in_handle *h)
void | osmux_xfrm_input_set_name (struct osmux_in_handle *h, const char *name)
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)
void | osmux_xfrm_input_fini (struct osmux_in_handle *h) OSMO_DEPRECATED("Use talloc_free() instead")

## Detailed Description

Osmocom multiplex protocol helpers (input)

## Macro Definition Documentation

## ◆ LOGMUXCID

#define LOGMUXCID | ( |  | link,
|  |  | circuit,
|  |  | lvl,
|  |  | fmt,
|  |  | args ...
| ) |  |

Value:
LOGMUXLK_(link, lvl, "[CID=%" PRIu8 ",batched=%u/%u] " fmt, \
(circuit)->ccid, (circuit)->nmsgs, (link)->h->batch_factor, ## args)

## ◆ LOGMUXLK_

#define LOGMUXLK_ | ( |  | link,
|  |  | lvl,
|  |  | fmt,
|  |  | args ...
| ) |  |

Value:
LOGP(DLMUX, lvl, "[%s,%u/%" PRIu16 "]" fmt, \
(link)->name, (link)->h->batch_size - (link)->remaining_bytes, \
(link)->h->batch_size, \
## args)