libosmo-netif: src/osmux.c File Reference

libosmo-netif 1.7.0.15-fe2d Osmocom network interface library

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. More...

## 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;