|
uint8_t | chantype_rsl2gsmtap (uint8_t rsl_chantype, uint8_t link_id) |
| convert RSL channel number to GSMTAP channel type More...
|
|
struct msgb * | gsmtap_makemsg_ex (uint8_t type, uint16_t arfcn, uint8_t ts, uint8_t chan_type, uint8_t ss, uint32_t fn, int8_t signal_dbm, uint8_t snr, const uint8_t *data, unsigned int len) |
| create an arbitrary type GSMTAP message More...
|
|
struct msgb * | gsmtap_makemsg (uint16_t arfcn, uint8_t ts, uint8_t chan_type, uint8_t ss, uint32_t fn, int8_t signal_dbm, uint8_t snr, const uint8_t *data, unsigned int len) |
| create L1/L2 data and put it into GSMTAP More...
|
|
static int | gsmtap_inst_fd (struct gsmtap_inst *gti) |
| obtain the file descriptor associated with a gsmtap instance More...
|
|
int | gsmtap_source_init_fd (const char *host, uint16_t port) |
|
int | gsmtap_source_add_sink_fd (int gsmtap_fd) |
|
struct gsmtap_inst * | gsmtap_source_init (const char *host, uint16_t port, int ofd_wq_mode) |
|
int | gsmtap_source_add_sink (struct gsmtap_inst *gti) |
|
int | gsmtap_sendmsg (struct gsmtap_inst *gti, struct msgb *msg) |
|
int | gsmtap_send_ex (struct gsmtap_inst *gti, uint8_t type, uint16_t arfcn, uint8_t ts, uint8_t chan_type, uint8_t ss, uint32_t fn, int8_t signal_dbm, uint8_t snr, const uint8_t *data, unsigned int len) |
|
int | gsmtap_send (struct gsmtap_inst *gti, uint16_t arfcn, uint8_t ts, uint8_t chan_type, uint8_t ss, uint32_t fn, int8_t signal_dbm, uint8_t snr, const uint8_t *data, unsigned int len) |
|
GSMTAP utility routines.
Encapsulates GSM messages over UDP.
struct msgb * gsmtap_makemsg_ex |
( |
uint8_t |
type, |
|
|
uint16_t |
arfcn, |
|
|
uint8_t |
ts, |
|
|
uint8_t |
chan_type, |
|
|
uint8_t |
ss, |
|
|
uint32_t |
fn, |
|
|
int8_t |
signal_dbm, |
|
|
uint8_t |
snr, |
|
|
const uint8_t * |
data, |
|
|
unsigned int |
len |
|
) |
| |
create an arbitrary type GSMTAP message
- Parameters
-
[in] | type | The GSMTAP_TYPE_xxx constant of the message to create |
[in] | arfcn | GSM ARFCN (Channel Number) |
[in] | ts | GSM time slot |
[in] | chan_type | Channel Type |
[in] | ss | Sub-slot |
[in] | fn | GSM Frame Number |
[in] | signal_dbm | Signal Strength (dBm) |
[in] | snr | Signal/Noise Ratio (SNR) |
[in] | data | Pointer to data buffer |
[in] | len | Length of data |
- Returns
- dynamically allocated message buffer containing data
This function will allocate a new msgb and fill it with a GSMTAP header containing the information
References gsmtap_hdr::antenna_nr, gsmtap_hdr::arfcn, gsmtap_hdr::frame_number, GSMTAP_VERSION, gsmtap_hdr::hdr_len, msgb_alloc(), msgb_put(), osmo_htonl, osmo_htons, signal_dbm, gsmtap_hdr::signal_dbm, gsmtap_hdr::snr_db, gsmtap_hdr::sub_slot, gsmtap_hdr::sub_type, gsmtap_hdr::timeslot, ts, type, gsmtap_hdr::type, and gsmtap_hdr::version.
Referenced by gsmtap_makemsg().