67#define BSSGP_RIM_ROUTING_INFO_MAXLEN 14
84#define BSSGP_RIM_SI_LEN 21
85#define BSSGP_RIM_PSI_LEN 22
94 const uint8_t *
si[127];
int bssgp_enc_ran_inf_app_err_rim_cont(uint8_t *buf, size_t len, const struct bssgp_ran_inf_app_err_rim_cont *cont)
Encode a RAN Information Application Error RIM Container (3GPP TS 48.018, table 11....
Definition: gprs_bssgp_rim.c:939
bssgp_ran_inf_app_id
Definition: gprs_bssgp_rim.h:129
@ BSSGP_RAN_INF_APP_ID_MBMS
Definition: gprs_bssgp_rim.h:132
@ BSSGP_RAN_INF_APP_ID_UTRA_SI
Definition: gprs_bssgp_rim.h:134
@ BSSGP_RAN_INF_APP_ID_SI3
Definition: gprs_bssgp_rim.h:131
@ BSSGP_RAN_INF_APP_ID_SON
Definition: gprs_bssgp_rim.h:133
@ BSSGP_RAN_INF_APP_ID_NACC
Definition: gprs_bssgp_rim.h:130
const struct value_string bssgp_rim_routing_info_discr_strs[]
Definition: gprs_bssgp_rim.c:45
int bssgp_tx_rim_encoded(struct msgb *msg, uint16_t nsei)
Send encoded RAN TRANSPARENT CONTAINER via BSSGP (3GPP TS 29.060, section 7.7.43).
Definition: gprs_bssgp_rim.c:1208
int bssgp_create_rim_ri(uint8_t *buf, const struct bssgp_rim_routing_info *ri)
Encode a RIM Routing information IE (3GPP TS 48.018, chapter 11.3.70).
Definition: gprs_bssgp_rim.c:124
int bssgp_enc_ran_inf_req_rim_cont(uint8_t *buf, size_t len, const struct bssgp_ran_inf_req_rim_cont *cont)
Encode a RAN Information Request RIM Container (3GPP TS 48.018, table 11.3.62a.1.b).
Definition: gprs_bssgp_rim.c:565
int bssgp_enc_ran_inf_err_rim_cont(uint8_t *buf, size_t len, const struct bssgp_ran_inf_err_rim_cont *cont)
Encode a RAN Information Error RIM Container (3GPP TS 48.018, table 11.3.62a.4.b).
Definition: gprs_bssgp_rim.c:866
int bssgp_parse_rim_ra(struct bssgp_rim_routing_info *ri, const uint8_t *buf, unsigned int len, uint8_t discr)
Parse a RIM Routing address IE (3GPP TS 29.060, chapter 7.7.57 and 7.7.77).
Definition: gprs_bssgp_rim.c:57
int bssgp_enc_ran_inf_rim_cont(uint8_t *buf, size_t len, const struct bssgp_ran_inf_rim_cont *cont)
Encode a RAN Information RIM Container (3GPP TS 48.018, table 11.3.62a.2.b).
Definition: gprs_bssgp_rim.c:683
int bssgp_dec_app_err_cont_nacc(struct bssgp_app_err_cont_nacc *cont, const uint8_t *buf, size_t len)
Decode a Application Error Container for NACC (3GPP TS 48.018, section 11.3.64.1).
Definition: gprs_bssgp_rim.c:379
int bssgp_dec_ran_inf_ack_rim_cont(struct bssgp_ran_inf_ack_rim_cont *cont, const uint8_t *buf, size_t len)
Decode a RAN Information ACK RIM Container (3GPP TS 48.018, table 11.3.62a.3.b).
Definition: gprs_bssgp_rim.c:754
char * bssgp_rim_ri_name_buf(char *buf, size_t buf_len, const struct bssgp_rim_routing_info *ri)
Encode a RIM Routing information into a human readable string.
Definition: gprs_bssgp_rim.c:176
int bssgp_enc_ran_inf_req_app_cont_nacc(uint8_t *buf, size_t len, const struct bssgp_ran_inf_req_app_cont_nacc *cont)
Encode a RAN Information Request Application Container for NACC (3GPP TS 48.018, section 11....
Definition: gprs_bssgp_rim.c:256
int bssgp_parse_rim_pdu(struct bssgp_ran_information_pdu *pdu, const struct msgb *msg)
Parse a given message buffer into a rim-pdu struct.
Definition: gprs_bssgp_rim.c:979
const char * bssgp_rim_ri_name(const struct bssgp_rim_routing_info *ri)
Encode a RIM Routing information into a human readable string.
Definition: gprs_bssgp_rim.c:227
int bssgp_dec_ran_inf_req_rim_cont(struct bssgp_ran_inf_req_rim_cont *cont, const uint8_t *buf, size_t len)
Decode a RAN Information Request RIM Container (3GPP TS 48.018, table 11.3.62a.1.b).
Definition: gprs_bssgp_rim.c:493
int bssgp_dec_ran_inf_err_rim_cont(struct bssgp_ran_inf_err_rim_cont *cont, const uint8_t *buf, size_t len)
Decode a RAN Information Error RIM Container (3GPP TS 48.018, table 11.3.62a.4.b).
Definition: gprs_bssgp_rim.c:821
int bssgp_dec_ran_inf_app_cont_nacc(struct bssgp_ran_inf_app_cont_nacc *cont, const uint8_t *buf, size_t len)
Decode a RAN Information Application Container (3GPP TS 48.018, section 11.3.63.2....
Definition: gprs_bssgp_rim.c:275
int bssgp_enc_app_err_cont_nacc(uint8_t *buf, size_t len, const struct bssgp_app_err_cont_nacc *cont)
Encode Application Error Container for NACC (3GPP TS 48.018, section 11.3.64.1).
Definition: gprs_bssgp_rim.c:403
int bssgp_enc_ran_inf_ack_rim_cont(uint8_t *buf, size_t len, const struct bssgp_ran_inf_ack_rim_cont *cont)
Encode a RAN Information ACK RIM Container (3GPP TS 48.018, table 11.3.62a.3.b).
Definition: gprs_bssgp_rim.c:792
const struct value_string bssgp_ran_inf_app_id_strs[]
Definition: gprs_bssgp_rim.c:480
int bssgp_enc_ran_inf_app_cont_nacc(uint8_t *buf, size_t len, const struct bssgp_ran_inf_app_cont_nacc *cont)
Encode a RAN Information Application Container (3GPP TS 48.018, section 11.3.63.2....
Definition: gprs_bssgp_rim.c:326
const struct value_string bssgp_nacc_cause_strs[]
Definition: gprs_bssgp_rim.c:365
int bssgp_tx_rim(const struct bssgp_ran_information_pdu *pdu, uint16_t nsei)
Send RIM RAN INFORMATION REQUEST via BSSGP (3GPP TS 48.018, section 10.6.1).
Definition: gprs_bssgp_rim.c:1176
static const char * bssgp_ran_inf_app_id_str(enum bssgp_ran_inf_app_id val)
Obtain a human-readable string for RIM Application Identity code.
Definition: gprs_bssgp_rim.h:140
bssgp_nacc_cause
Definition: gprs_bssgp_rim.h:101
@ BSSGP_NACC_CAUSE_SIPSI_LEN_ERR
Definition: gprs_bssgp_rim.h:106
@ BSSGP_NACC_CAUSE_RPRT_CELL_MISSMTCH
Definition: gprs_bssgp_rim.h:104
@ BSSGP_NACC_CAUSE_SYNTAX_ERR
Definition: gprs_bssgp_rim.h:103
@ BSSGP_NACC_CAUSE_UNSPEC
Definition: gprs_bssgp_rim.h:102
@ BSSGP_NACC_CAUSE_SIPSI_TYPE_ERR
Definition: gprs_bssgp_rim.h:105
@ BSSGP_NACC_CAUSE_SIPSI_SET_ERR
Definition: gprs_bssgp_rim.h:107
int bssgp_dec_ran_inf_req_app_cont_nacc(struct bssgp_ran_inf_req_app_cont_nacc *cont, const uint8_t *buf, size_t len)
Decode a RAN Information Request Application Container for NACC (3GPP TS 48.018, section 11....
Definition: gprs_bssgp_rim.c:237
int bssgp_parse_rim_ri(struct bssgp_rim_routing_info *ri, const uint8_t *buf, unsigned int len)
Parse a RIM Routing information IE (3GPP TS 48.018, chapter 11.3.70).
Definition: gprs_bssgp_rim.c:103
int bssgp_dec_ran_inf_app_err_rim_cont(struct bssgp_ran_inf_app_err_rim_cont *cont, const uint8_t *buf, size_t len)
Decode a RAN Information Application Error RIM Container (3GPP TS 48.018, table 11....
Definition: gprs_bssgp_rim.c:899
static const char * bssgp_rim_routing_info_discr_str(enum bssgp_rim_routing_info_discr val)
Obtain a human-readable string for NACC Cause code.
Definition: gprs_bssgp_rim.h:41
int bssgp_dec_ran_inf_rim_cont(struct bssgp_ran_inf_rim_cont *cont, const uint8_t *buf, size_t len)
Decode a RAN Information RIM Container (3GPP TS 48.018, table 11.3.62a.2.b).
Definition: gprs_bssgp_rim.c:616
bssgp_rim_routing_info_discr
Definition: gprs_bssgp_rim.h:32
@ BSSGP_RIM_ROUTING_INFO_UTRAN
Definition: gprs_bssgp_rim.h:34
@ BSSGP_RIM_ROUTING_INFO_EUTRAN
Definition: gprs_bssgp_rim.h:35
@ BSSGP_RIM_ROUTING_INFO_GERAN
Definition: gprs_bssgp_rim.h:33
static const char * bssgp_nacc_cause_str(enum bssgp_nacc_cause val)
Obtain a human-readable string for NACC Cause code.
Definition: gprs_bssgp_rim.h:113
struct msgb * bssgp_encode_rim_pdu(const struct bssgp_ran_information_pdu *pdu)
Encode a given rim-pdu struct into a message buffer.
Definition: gprs_bssgp_rim.c:1083
uint16_t nsei
Identifiers of a BTS, equal to 'struct bssgp_bts_ctx'.
Definition: gprs_msgb.h:7
static size_t len(const char *str)
const char * get_value_string(const struct value_string *vs, uint32_t val)
Definition: gprs_bssgp_rim.h:117
const uint8_t * err_app_cont
Definition: gprs_bssgp_rim.h:121
enum bssgp_nacc_cause nacc_cause
Definition: gprs_bssgp_rim.h:118
size_t err_app_cont_len
Definition: gprs_bssgp_rim.h:122
Definition: gprs_bssgp_rim.h:190
uint8_t prot_ver
Definition: gprs_bssgp_rim.h:193
size_t son_trans_app_id_len
Definition: gprs_bssgp_rim.h:198
enum bssgp_ran_inf_app_id app_id
Definition: gprs_bssgp_rim.h:191
uint32_t seq_num
Definition: gprs_bssgp_rim.h:192
const uint8_t * son_trans_app_id
Definition: gprs_bssgp_rim.h:197
Definition: gprs_bssgp_rim.h:88
const uint8_t * si[127]
Definition: gprs_bssgp_rim.h:94
uint8_t num_si
Definition: gprs_bssgp_rim.h:91
bool type_psi
Definition: gprs_bssgp_rim.h:90
struct osmo_cell_global_id_ps reprt_cell
Definition: gprs_bssgp_rim.h:89
Definition: gprs_bssgp_rim.h:225
uint32_t seq_num
Definition: gprs_bssgp_rim.h:227
uint8_t prot_ver
Definition: gprs_bssgp_rim.h:229
union bssgp_ran_inf_app_err_rim_cont::@12 u
struct bssgp_app_err_cont_nacc app_err_cont_nacc
Definition: gprs_bssgp_rim.h:233
enum bssgp_ran_inf_app_id app_id
Definition: gprs_bssgp_rim.h:226
struct bssgp_rim_pdu_ind pdu_ind
Definition: gprs_bssgp_rim.h:228
Definition: gprs_bssgp_rim.h:205
const uint8_t * err_pdu
Definition: gprs_bssgp_rim.h:212
const uint8_t * son_trans_app_id
Definition: gprs_bssgp_rim.h:217
size_t err_pdu_len
Definition: gprs_bssgp_rim.h:213
enum bssgp_ran_inf_app_id app_id
Definition: gprs_bssgp_rim.h:206
uint8_t prot_ver
Definition: gprs_bssgp_rim.h:208
uint8_t cause
Definition: gprs_bssgp_rim.h:207
size_t son_trans_app_id_len
Definition: gprs_bssgp_rim.h:218
Definition: gprs_bssgp_rim.h:76
struct osmo_cell_global_id_ps reprt_cell
Definition: gprs_bssgp_rim.h:77
Definition: gprs_bssgp_rim.h:144
struct bssgp_rim_pdu_ind pdu_ind
Definition: gprs_bssgp_rim.h:147
size_t son_trans_app_id_len
Definition: gprs_bssgp_rim.h:159
union bssgp_ran_inf_req_rim_cont::@10 u
const uint8_t * son_trans_app_id
Definition: gprs_bssgp_rim.h:158
uint8_t prot_ver
Definition: gprs_bssgp_rim.h:148
enum bssgp_ran_inf_app_id app_id
Definition: gprs_bssgp_rim.h:145
struct bssgp_ran_inf_req_app_cont_nacc app_cont_nacc
Definition: gprs_bssgp_rim.h:152
uint32_t seq_num
Definition: gprs_bssgp_rim.h:146
Definition: gprs_bssgp_rim.h:166
uint8_t prot_ver
Definition: gprs_bssgp_rim.h:170
struct bssgp_rim_pdu_ind pdu_ind
Definition: gprs_bssgp_rim.h:169
struct bssgp_app_err_cont_nacc app_err_cont_nacc
Definition: gprs_bssgp_rim.h:176
enum bssgp_ran_inf_app_id app_id
Definition: gprs_bssgp_rim.h:167
union bssgp_ran_inf_rim_cont::@11 u
bool app_err
Definition: gprs_bssgp_rim.h:171
struct bssgp_ran_inf_app_cont_nacc app_cont_nacc
Definition: gprs_bssgp_rim.h:175
uint32_t seq_num
Definition: gprs_bssgp_rim.h:168
size_t son_trans_app_id_len
Definition: gprs_bssgp_rim.h:183
const uint8_t * son_trans_app_id
Definition: gprs_bssgp_rim.h:182
Definition: gsm_08_18.h:364
BSSGP RIM Routing information, see also 3GPP TS 48.018, section 11.3.70.
Definition: gprs_bssgp_rim.h:45
uint16_t rncid
Definition: gprs_bssgp_rim.h:54
struct gprs_ra_id raid
Definition: gprs_bssgp_rim.h:49
enum bssgp_rim_routing_info_discr discr
Definition: gprs_bssgp_rim.h:46
uint8_t global_enb_id_len
Definition: gprs_bssgp_rim.h:60
uint8_t global_enb_id[8]
Definition: gprs_bssgp_rim.h:59
struct osmo_eutran_tai tai
Definition: gprs_bssgp_rim.h:57
uint16_t cid
Definition: gprs_bssgp_rim.h:50
struct bssgp_rim_routing_info::@5::@7 geran
struct bssgp_rim_routing_info::@5::@9 eutran
struct bssgp_rim_routing_info::@5::@8 utran
Tracking area TS 24.301, section 9.9.3.32.
Definition: gsm_24_301.h:10