aboutsummaryrefslogtreecommitdiffstats
path: root/src/sccp_sap.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-26 18:07:53 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-08-09 13:54:44 +0200
commit603e065f43a9b0a6d9d92584ba458fefee32b516 (patch)
tree3d2df2bb9d4890ff31b5037445b6c88bd540bb0e /src/sccp_sap.c
parentc881c4912709be005cbb3ffb02ba06f13c69d24b (diff)
add osmo_sccp_addr_name() and three value_string[]s
osmo_sccp_addr_dump() just prints the raw values. In osmo_sccp_addr_name(), use osmo_ss7_pointcode_print() and newly added RI, SSN and GT value_string[] to print more human readable log output. Change-Id: Ie1aedd7894acd69ddc887cd65a8a0df4b888838c
Diffstat (limited to 'src/sccp_sap.c')
-rw-r--r--src/sccp_sap.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/sccp_sap.c b/src/sccp_sap.c
index d4580ae..e5addb1 100644
--- a/src/sccp_sap.c
+++ b/src/sccp_sap.c
@@ -85,3 +85,50 @@ char *osmo_xlm_prim_name(struct osmo_prim_hdr *oph)
return prim_name_buf;
}
+
+const struct value_string osmo_sccp_routing_ind_names[] = {
+ { OSMO_SCCP_RI_NONE, "NONE" },
+ { OSMO_SCCP_RI_GT, "GT" },
+ { OSMO_SCCP_RI_SSN_PC, "SSN_PC" },
+ { OSMO_SCCP_RI_SSN_IP, "SSN_IP" },
+ { 0, NULL }
+};
+
+const struct value_string osmo_sccp_gti_names[] = {
+ { OSMO_SCCP_GTI_NO_GT, "NO_GT" },
+ { OSMO_SCCP_GTI_NAI_ONLY, "NAI_ONLY" },
+ { OSMO_SCCP_GTI_TT_ONLY, "TT_ONLY" },
+ { OSMO_SCCP_GTI_TT_NPL_ENC, "TT_NPL_ENC" },
+ { OSMO_SCCP_GTI_TT_NPL_ENC_NAI, "TT_NPL_ENC_NAI" },
+ { 0, NULL }
+};
+
+const struct value_string osmo_sccp_ssn_names[] = {
+ { OSMO_SCCP_SSN_MGMT, "MGMT" },
+ { OSMO_SCCP_SSN_ISUP, "ISUP" },
+ { OSMO_SCCP_SSN_OMAP, "OMAP" },
+ { OSMO_SCCP_SSN_MAP, "MAP" },
+ { OSMO_SCCP_SSN_HLR, "HLR" },
+ { OSMO_SCCP_SSN_VLR, "VLR" },
+ { OSMO_SCCP_SSN_MSC, "MSC" },
+ { OSMO_SCCP_SSN_EIR, "EIR" },
+ { OSMO_SCCP_SSN_AUC, "AUC" },
+ { OSMO_SCCP_SSN_ISDN_SS, "ISDN_SS" },
+ { OSMO_SCCP_SSN_RES_INTL, "RES_INTL" },
+ { OSMO_SCCP_SSN_BISDN, "BISDN" },
+ { OSMO_SCCP_SSN_TC_TEST, "TC_TEST" },
+ { OSMO_SCCP_SSN_RANAP, "RANAP" },
+ { OSMO_SCCP_SSN_RNSAP, "RNSAP" },
+ { OSMO_SCCP_SSN_GMLC_MAP, "GMLC_MAP" },
+ { OSMO_SCCP_SSN_CAP, "CAP" },
+ { OSMO_SCCP_SSN_gsmSCF_MAP, "gsmSCF_MAP" },
+ { OSMO_SCCP_SSN_SIWF_MAP, "SIWF_MAP" },
+ { OSMO_SCCP_SSN_SGSN_MAP, "SGSN_MAP" },
+ { OSMO_SCCP_SSN_GGSN_MAP, "GGSN_MAP" },
+ { OSMO_SCCP_SSN_PCAP, "PCAP" },
+ { OSMO_SCCP_SSN_BSC_BSSAP, "BSC_BSSAP" },
+ { OSMO_SCCP_SSN_MSC_BSSAP, "MSC_BSSAP" },
+ { OSMO_SCCP_SSN_SMLC_BSSAP, "SMLC_BSSAP" },
+ { OSMO_SCCP_SSN_BSS_OAM, "BSS_OAM" },
+ { 0, NULL }
+};