libosmo-netif 1.6.0.16-c51c Osmocom network interface library

Loading...
Searching...
No Matches
Macros | Functions
osmux.c File Reference
Osmocom Multiplex Protocol

Osmocom multiplex protocol helpers. More...

`#include <stdio.h>`
`#include <string.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 | SNPRINTF_BUFFER_SIZE(ret, remain, offset)

## Functions
int | osmux_snprintf (char *buf, size_t size, struct msgb *msg)
| Print osmux header fields and payload from msg into buffer buf.

## Detailed Description

Osmocom multiplex protocol helpers.

## Macro Definition Documentation

## ◆ SNPRINTF_BUFFER_SIZE

#define SNPRINTF_BUFFER_SIZE | ( |  | ret,
|  |  | remain,
|  |  | offset
| ) |  |

Value:
if (ret < 0) \
ret = 0; \
offset += ret; \
if (ret > remain) \
ret = remain; \
remain -= ret;