Loading...
Searching...
No Matches
gprs_msgb.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
struct libgb_msgb_cb {
unsigned char *bssgph;
unsigned char *llch;
unsigned char *bssgp_cell_id;
uint16_t nsei;
uint16_t bvci;
uint32_t tlli;
} __attribute__((packed, may_alias));
#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
#include <osmocom/core/logging.h>
int gprs_log_filter_fn(const struct log_context *ctx,
struct log_target *tar);
gprs_log_filter_fn
int gprs_log_filter_fn(const struct log_context *ctx, struct log_target *tar)
Definition common_vty.c:40
__attribute__
enum gsmtap_um_voice_type __attribute__
logging.h
libgb_msgb_cb
the data structure stored in msgb->cb for libgb apps
Definition gprs_msgb.h:7
libgb_msgb_cb::nsei
uint16_t nsei
Identifiers of a BTS, equal to 'struct bssgp_bts_ctx'.
Definition gprs_msgb.h:15
libgb_msgb_cb::tlli
uint32_t tlli
Identifier of a MS (inside BTS), equal to 'struct sgsn_mm_ctx'.
Definition gprs_msgb.h:19
libgb_msgb_cb::bssgph
unsigned char * bssgph
Definition gprs_msgb.h:8
libgb_msgb_cb::bvci
uint16_t bvci
Definition gprs_msgb.h:16
libgb_msgb_cb::llch
unsigned char * llch
Definition gprs_msgb.h:9
libgb_msgb_cb::bssgp_cell_id
unsigned char * bssgp_cell_id
Cell Identifier.
Definition gprs_msgb.h:12
log_context
log_target