libosmo-netif  1.2.0.67-9ee4
Osmocom network interface library
osmux.c File Reference

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

static uint32_t osmux_get_payload_len (struct osmux_hdr *osmuxh)
 
static int osmux_snprintf_header (char *buf, size_t size, struct osmux_hdr *osmuxh)
 
static int osmux_snprintf_payload (char *buf, size_t size, const uint8_t *payload, int payload_len)
 
int osmux_snprintf (char *buf, size_t size, struct msgb *msg)
 

Detailed Description

Osmocom multiplex protocol helpers.