summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-01-05 00:39:13 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2019-01-08 14:07:07 +0000
commit92f3f5e4917d30dad45d26c2776299c625111529 (patch)
tree07a1a2f8b9e7056be184d83e02c2059bdffcc0d5 /src
parent02fd83d79991665d59362f24d7a0ed263c6d91c0 (diff)
add osmo_lu_type_names[], osmo_lu_type_name()
Move lupd_names[] from osmo-msc to libosmo-gsm. Change-Id: Ica25919758ef6cba8348da199b0ae7e0ba628798
Diffstat (limited to 'src')
-rw-r--r--src/gsm/gsm48.c8
-rw-r--r--src/gsm/libosmogsm.map1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c
index 853ea513..099b85d0 100644
--- a/src/gsm/gsm48.c
+++ b/src/gsm/gsm48.c
@@ -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" },
+ {}
+};
+
/*! @} */
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 8b7a1641..cdcbcc98 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -555,6 +555,7 @@ sgsap_ue_emm_mode_names;
sgsap_ie_tlvdef;
osmo_rat_type_names;
+osmo_lu_type_names;
local: *;
};