libosmocore 1.11.0.26-c59d.202505092026
Osmocom core library
Loading...
Searching...
No Matches
msgb Struct Reference

Osmocom message buffer. More...

#include <msgb.h>

Data Fields

struct llist_head list
 linked list header
 
union { 
 
   void *   dst 
 reference of origin/destination More...
 
   struct gsm_bts_trx *   trx 
 
};  
 
struct gsm_lchanlchan
 logical channel
 
unsigned charl1h
 pointer to Layer1 header (if any)
 
unsigned charl2h
 pointer to A-bis layer 2 header: OML, RSL(RLL), NS
 
unsigned charl3h
 pointer to Layer 3 header.
 
unsigned charl4h
 pointer to layer 4 header
 
unsigned long cb [5]
 control buffer
 
uint16_t data_len
 length of underlying data array
 
uint16_t len
 length of bytes used in msgb
 
unsigned charhead
 start of underlying memory buffer
 
unsigned chartail
 end of message in buffer
 
unsigned chardata
 start of message in buffer
 
unsigned char _data [0]
 optional immediate data array
 

Detailed Description

Osmocom message buffer.

Field Documentation

◆ [union]

union { ... } msgb

◆ _data

unsigned char msgb::_data[0]

optional immediate data array

Referenced by msgb_push(), and msgb_put().

◆ cb

unsigned long msgb::cb[5]

control buffer

◆ data

◆ data_len

uint16_t msgb::data_len

length of underlying data array

Referenced by msgb_headlen(), msgb_push(), msgb_put(), and msgb_tailroom().

◆ dst

void* msgb::dst

reference of origin/destination

◆ head

unsigned char* msgb::head

start of underlying memory buffer

Referenced by msgb_headroom(), msgb_push(), msgb_put(), and msgb_tailroom().

◆ l1h

unsigned char* msgb::l1h

pointer to Layer1 header (if any)

Referenced by msgb_l1len().

◆ l2h

unsigned char* msgb::l2h

pointer to A-bis layer 2 header: OML, RSL(RLL), NS

Referenced by msgb_l2len().

◆ l3h

unsigned char* msgb::l3h

pointer to Layer 3 header.

For OML: FOM; RSL: 04.08; GPRS: BSSGP

Referenced by msgb_l3len().

◆ l4h

unsigned char* msgb::l4h

pointer to layer 4 header

Referenced by msgb_l4len().

◆ lchan

struct gsm_lchan* msgb::lchan

logical channel

◆ len

◆ list

struct llist_head msgb::list

linked list header

◆ tail

◆ trx

struct gsm_bts_trx* msgb::trx

The documentation for this struct was generated from the following file: