libosmocore
1.6.0.113-b17c
Osmocom core library
|
Osmocom message buffer. More...
#include <msgb.h>
Data Fields | |
struct llist_head | list |
linked list header More... | |
union { | |
void * dst | |
reference of origin/destination More... | |
struct gsm_bts_trx * trx | |
}; | |
struct gsm_lchan * | lchan |
logical channel More... | |
unsigned char * | l1h |
pointer to Layer1 header (if any) More... | |
unsigned char * | l2h |
pointer to A-bis layer 2 header: OML, RSL(RLL), NS More... | |
unsigned char * | l3h |
pointer to Layer 3 header. More... | |
unsigned char * | l4h |
pointer to layer 4 header More... | |
unsigned long | cb [5] |
control buffer More... | |
uint16_t | data_len |
length of underlying data array More... | |
uint16_t | len |
length of bytes used in msgb More... | |
unsigned char * | head |
start of underlying memory buffer More... | |
unsigned char * | tail |
end of message in buffer More... | |
unsigned char * | data |
start of message in buffer More... | |
unsigned char | _data [0] |
optional immediate data array More... | |
Osmocom message buffer.
union { ... } |
unsigned char msgb::_data[0] |
optional immediate data array
Referenced by msgb_alloc_c(), msgb_copy_c(), msgb_push(), msgb_put(), and msgb_reset().
unsigned long msgb::cb[5] |
control buffer
Referenced by msgb_reset().
unsigned char* msgb::data |
start of message in buffer
Referenced by gsmtap_sendmsg(), gsmtap_wq_w_cb(), msgb_alloc_c(), msgb_copy_c(), msgb_data(), msgb_headroom(), msgb_hexdump_buf(), msgb_l3trim(), msgb_pull(), msgb_pull_to_l2(), msgb_pull_to_l3(), msgb_push(), msgb_push_tl(), msgb_reserve(), msgb_reset(), msgb_resize_area(), msgb_test_invariant(), msgb_trim(), and osmo_sercomm_drv_pull().
uint16_t msgb::data_len |
length of underlying data array
Referenced by msgb_alloc_c(), msgb_copy_c(), msgb_headlen(), msgb_hexdump_buf(), msgb_push(), msgb_put(), msgb_tailroom(), msgb_test_invariant(), and msgb_trim().
void* msgb::dst |
reference of origin/destination
unsigned char* msgb::head |
start of underlying memory buffer
Referenced by msgb_alloc_c(), msgb_copy_c(), msgb_headroom(), msgb_hexdump_buf(), msgb_push(), msgb_put(), msgb_reset(), msgb_tailroom(), and msgb_test_invariant().
unsigned char* msgb::l1h |
pointer to Layer1 header (if any)
Referenced by msgb_copy_c(), msgb_hexdump_buf(), msgb_pull_to_l2(), msgb_pull_to_l3(), msgb_resize_area(), and msgb_test_invariant().
unsigned char* msgb::l2h |
pointer to A-bis layer 2 header: OML, RSL(RLL), NS
Referenced by msgb_copy_c(), msgb_hexdump_buf(), msgb_pull_to_l2(), msgb_pull_to_l3(), msgb_reset(), msgb_resize_area(), and msgb_test_invariant().
unsigned char* msgb::l3h |
pointer to Layer 3 header.
For OML: FOM; RSL: 04.08; GPRS: BSSGP
Referenced by msgb_copy_c(), msgb_hexdump_buf(), msgb_l3trim(), msgb_pull_to_l3(), msgb_reset(), msgb_resize_area(), and msgb_test_invariant().
unsigned char* msgb::l4h |
pointer to layer 4 header
Referenced by msgb_copy_c(), msgb_hexdump_buf(), msgb_reset(), msgb_resize_area(), and msgb_test_invariant().
struct gsm_lchan* msgb::lchan |
logical channel
Referenced by msgb_reset().
uint16_t msgb::len |
length of bytes used in msgb
Referenced by gsmtap_sendmsg(), gsmtap_wq_w_cb(), msgb_alloc_c(), msgb_copy_c(), msgb_get(), msgb_headlen(), msgb_length(), msgb_pull(), msgb_push(), msgb_push_tl(), msgb_put(), msgb_reserve(), msgb_reset(), msgb_resize_area(), msgb_test_invariant(), and msgb_trim().
struct llist_head msgb::list |
linked list header
Referenced by msgb_enqueue(), and osmo_wqueue_bfd_cb().
unsigned char* msgb::tail |
end of message in buffer
Referenced by _gsmtap_raw_output(), msgb_alloc_c(), msgb_copy_c(), msgb_get(), msgb_hexdump_buf(), msgb_l1len(), msgb_l2len(), msgb_l3len(), msgb_l4len(), msgb_printf(), msgb_put(), msgb_reserve(), msgb_reset(), msgb_resize_area(), msgb_tailroom(), msgb_test_invariant(), msgb_trim(), and osmo_sercomm_drv_pull().
struct gsm_bts_trx* msgb::trx |
Referenced by msgb_reset().