libosmogb  0.12.0.47-7c74
Osmocom Gb library
gprs_msgb.h File Reference
#include <stdint.h>
#include <osmocom/core/logging.h>

Go to the source code of this file.

Data Structures

struct  libgb_msgb_cb
 

Macros

#define LIBGB_MSGB_CB(__msgb)   ((struct libgb_msgb_cb *)&((__msgb)->cb[0]))
 
#define msgb_tlli(__x)   LIBGB_MSGB_CB(__x)->tlli
 
#define msgb_nsei(__x)   LIBGB_MSGB_CB(__x)->nsei
 
#define msgb_bvci(__x)   LIBGB_MSGB_CB(__x)->bvci
 
#define msgb_gmmh(__x)   (__x)->l3h
 
#define msgb_bssgph(__x)   LIBGB_MSGB_CB(__x)->bssgph
 
#define msgb_bssgp_len(__x)   ((__x)->tail - (uint8_t *)msgb_bssgph(__x))
 
#define msgb_bcid(__x)   LIBGB_MSGB_CB(__x)->bssgp_cell_id
 
#define msgb_llch(__x)   LIBGB_MSGB_CB(__x)->llch
 

Functions

struct libgb_msgb_cb __attribute__ ((packed, may_alias))
 
int gprs_log_filter_fn (const struct log_context *ctx, struct log_target *tar)
 

Variables

unsigned char * bssgph
 
unsigned char * llch
 
unsigned char * bssgp_cell_id
 
uint16_t nsei
 
uint16_t bvci
 
uint32_t tlli
 

Macro Definition Documentation

◆ LIBGB_MSGB_CB

#define LIBGB_MSGB_CB (   __msgb)    ((struct libgb_msgb_cb *)&((__msgb)->cb[0]))

Referenced by bssgp_msgb_copy().

◆ msgb_bcid

#define msgb_bcid (   __x)    LIBGB_MSGB_CB(__x)->bssgp_cell_id

Referenced by bssgp_rx_ul_ud().

◆ msgb_bssgp_len

#define msgb_bssgp_len (   __x)    ((__x)->tail - (uint8_t *)msgb_bssgph(__x))

◆ msgb_bssgph

◆ msgb_bvci

◆ msgb_gmmh

#define msgb_gmmh (   __x)    (__x)->l3h

◆ msgb_llch

#define msgb_llch (   __x)    LIBGB_MSGB_CB(__x)->llch

Referenced by bssgp_rx_ul_ud().

◆ msgb_nsei

◆ msgb_tlli

#define msgb_tlli (   __x)    LIBGB_MSGB_CB(__x)->tlli

Referenced by bssgp_rx_ul_ud(), and bssgp_tx_dl_ud().

Function Documentation

◆ __attribute__()

struct libgb_msgb_cb __attribute__ ( (packed, may_alias)  )

◆ gprs_log_filter_fn()

int gprs_log_filter_fn ( const struct log_context ctx,
struct log_target tar 
)

Variable Documentation

◆ bssgp_cell_id

unsigned char* bssgp_cell_id

◆ bssgph

unsigned char* bssgph

◆ bvci

◆ llch

unsigned char* llch

◆ nsei

◆ tlli