add osmo_lu_type_names[], osmo_lu_type_name()

Move lupd_names[] from osmo-msc to libosmo-gsm.

Change-Id: Ica25919758ef6cba8348da199b0ae7e0ba628798
changes/69/12469/4
Neels Hofmeyr 4 years ago committed by Neels Hofmeyr
parent 02fd83d799
commit 92f3f5e491

@ -1652,6 +1652,10 @@ const char *gsm48_pdisc_msgtype_name(uint8_t pdisc, uint8_t msg_type);
#define GSM48_LUPD_IMSI_ATT 0x2
#define GSM48_LUPD_RESERVED 0x3
extern const struct value_string osmo_lu_type_names[];
static inline const char *osmo_lu_type_name(uint8_t lu_type)
{ return get_value_string(osmo_lu_type_names, lu_type); }
/* Table 10.5.4 */
#define GSM_MI_TYPE_MASK 0x07
#define GSM_MI_TYPE_NONE 0x00

@ -1137,4 +1137,12 @@ struct gsm48_hdr *gsm48_push_l3hdr(struct msgb *msg,
return gh;
}
const struct value_string osmo_lu_type_names[] = {
{ GSM48_LUPD_NORMAL, "NORMAL" },
{ GSM48_LUPD_PERIODIC, "PERIODIC" },
{ GSM48_LUPD_IMSI_ATT, "IMSI-ATTACH" },
{ GSM48_LUPD_RESERVED, "RESERVED" },
{}
};
/*! @} */

@ -555,6 +555,7 @@ sgsap_ue_emm_mode_names;
sgsap_ie_tlvdef;
osmo_rat_type_names;
osmo_lu_type_names;
local: *;
};

Loading…
Cancel
Save