summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-05-25 15:25:02 +0200
committerHolger Freyther <holger@freyther.de>2016-05-30 21:21:20 +0000
commitadef12a3497d14aafe677b77b468b952f4c6b5d5 (patch)
treea4c843dfed0beb38b1e0550751e7e3b7a83997b0 /src
parente4c294f79b8df9a2a36a630d97f8dc7ed206c7d6 (diff)
Add strings with PH primitive names
It's useful debugging helper while troubleshooting L1-related issues. Change-Id: Id7a6d478fd725c51f54ad746bdf9b9095579ff77 Reviewed-on: https://gerrit.osmocom.org/117 Tested-by: Jenkins Builder Reviewed-by: Max <msuraev@sysmocom.de> Reviewed-by: Holger Freyther <holger@freyther.de>
Diffstat (limited to 'src')
-rw-r--r--src/gsm/lapdm.c12
-rw-r--r--src/gsm/libosmogsm.map2
2 files changed, 14 insertions, 0 deletions
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index d44335fe..fa7769b2 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -111,6 +111,18 @@ enum lapdm_format {
LAPDm_FMT_B4,
};
+const struct value_string osmo_ph_prim_names[] = {
+ { PRIM_PH_DATA, "PH-DATA" },
+ { PRIM_PH_RACH, "PH-RANDOM_ACCESS" },
+ { PRIM_PH_CONN, "PH-CONNECT" },
+ { PRIM_PH_EMPTY_FRAME, "PH-EMPTY_FRAME" },
+ { PRIM_PH_RTS, "PH-RTS" },
+ { PRIM_MPH_INFO, "MPH-INFO" },
+ { PRIM_TCH, "TCH" },
+ { PRIM_TCH_RTS, "TCH-RTS" },
+ { 0, NULL }
+};
+
static int lapdm_send_ph_data_req(struct lapd_msg_ctx *lctx, struct msgb *msg);
static int send_rslms_dlsap(struct osmo_dlsap_prim *dp,
struct lapd_msg_ctx *lctx);
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 1e2d3238..301f5aa1 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -223,6 +223,8 @@ lapdm_phsap_dequeue_prim;
lapdm_phsap_up;
lapdm_rslms_recvmsg;
+osmo_ph_prim_names;
+
milenage_auts;
milenage_check;
milenage_f1;