mirror of https://gerrit.osmocom.org/libosmocore
gprs_bssgp_rim: add value strings for enum bssgp_rim_routing_info_discr
Change-Id: Idd06d2e3df0d60409a89a474018a9d97f7772090 Related: SYS#5103
This commit is contained in:
parent
8b19d06643
commit
cf11411ebb
|
@ -33,6 +33,12 @@ enum bssgp_rim_routing_info_discr {
|
|||
BSSGP_RIM_ROUTING_INFO_EUTRAN,
|
||||
};
|
||||
|
||||
extern const struct value_string bssgp_rim_routing_info_discr_strs[];
|
||||
|
||||
/*! Obtain a human-readable string for NACC Cause code */
|
||||
static inline const char *bssgp_rim_routing_info_discr_str(enum bssgp_rim_routing_info_discr val)
|
||||
{ return get_value_string(bssgp_rim_routing_info_discr_strs, val); }
|
||||
|
||||
/*! BSSGP RIM Routing information, see also 3GPP TS 48.018, section 11.3.70 */
|
||||
struct bssgp_rim_routing_info {
|
||||
enum bssgp_rim_routing_info_discr discr;
|
||||
|
|
|
@ -41,6 +41,13 @@
|
|||
* (3GPP TS 48.018, sub-clause 11.3.9) but without IE and length octets. */
|
||||
#define REP_CELL_ID_LEN 8
|
||||
|
||||
const struct value_string bssgp_rim_routing_info_discr_strs[] = {
|
||||
{ BSSGP_RIM_ROUTING_INFO_GERAN, "GERAN cell" },
|
||||
{ BSSGP_RIM_ROUTING_INFO_UTRAN, "UTRAN RNC" },
|
||||
{ BSSGP_RIM_ROUTING_INFO_EUTRAN, "E-UTRAN eNodeB/HeNB" },
|
||||
{ 0, NULL }
|
||||
};
|
||||
|
||||
/*! Parse a RIM Routing information IE (3GPP TS 48.018, chapter 11.3.70).
|
||||
* \param[out] ri user provided memory to store the parsed results.
|
||||
* \param[in] buf input buffer of the value part of the IE.
|
||||
|
|
|
@ -34,6 +34,7 @@ bssgp_parse_cell_id;
|
|||
bssgp_parse_rim_pdu;
|
||||
bssgp_parse_rim_ri;
|
||||
bssgp_ran_inf_app_id_strs;
|
||||
bssgp_rim_routing_info_discr_strs;
|
||||
bssgp_set_bssgp_callback;
|
||||
bssgp_tx_bvc_block;
|
||||
bssgp_tx_bvc_reset;
|
||||
|
|
Loading…
Reference in New Issue