Harald Welte has submitted this change and it was merged. Change subject: xua: Add value_string for routing key [de]registration results ......................................................................
xua: Add value_string for routing key [de]registration results Change-Id: If8f0a0ad0837810388cfe65a7b571b6ce4df33e3 --- M src/xua_internal.h M src/xua_rkm.c 2 files changed, 30 insertions(+), 0 deletions(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/xua_internal.h b/src/xua_internal.h index 3921309..171756b 100644 --- a/src/xua_internal.h +++ b/src/xua_internal.h @@ -55,3 +55,6 @@ void xua_asp_send_xlm_prim_simple(struct osmo_ss7_asp *asp, enum osmo_xlm_prim_type prim_type, enum osmo_prim_operation op); + +extern const struct value_string m3ua_rkm_reg_status_vals[]; +extern const struct value_string m3ua_rkm_dereg_status_vals[]; diff --git a/src/xua_rkm.c b/src/xua_rkm.c index 12d59c7..ad6c880 100644 --- a/src/xua_rkm.c +++ b/src/xua_rkm.c @@ -27,6 +27,33 @@ #include "xua_internal.h" +const struct value_string m3ua_rkm_reg_status_vals[] = { + { M3UA_RKM_REG_SUCCESS, "SUCCESS" }, + { M3UA_RKM_REG_ERR_UNKNOWN, "Unknown Error" }, + { M3UA_RKM_REG_ERR_INVAL_DPC, "Invalid Destination Pointcode" }, + { M3UA_RKM_REG_ERR_INVAL_NET_APPEAR, "Invalid Network Appearance" }, + { M3UA_RKM_REG_ERR_INVAL_RKEY, "Invalid Routing Key" }, + { M3UA_RKM_REG_ERR_PERM_DENIED, "Permission Denied" }, + { M3UA_RKM_REG_ERR_CANT_SUPP_UNQ_RT, "Cannot Support Unique Routing" }, + { M3UA_RKM_REG_ERR_RKEY_NOT_PROVD, "Routing Key Not Provided" }, + { M3UA_RKM_REG_ERR_INSUFF_RESRC, "Insufficient Resources" }, + { M3UA_RKM_REG_ERR_UNSUPP_RK_PARAM, "Unsupported Routing Key Parameter" }, + { M3UA_RKM_REG_ERR_UNSUPP_TRAF_MODE, "Unsupported Traffic Mode Type" }, + { M3UA_RKM_REG_ERR_RKEY_CHG_REFUSED, "Routing Key Change Refused" }, + { M3UA_RKM_REG_ERR_RKEY_ALRDY_REGD, "Routing Key Already Registered" }, + { 0, NULL } +}; + +const struct value_string m3ua_rkm_dereg_status_vals[] = { + { M3UA_RKM_DEREG_SUCCESS, "SUCCSS" }, + { M3UA_RKM_DEREG_ERR_UNKNOWN, "Unknown Error" }, + { M3UA_RKM_DEREG_ERR_INVAL_RCTX, "Invalid Routing Context" }, + { M3UA_RKM_DEREG_ERR_PERM_DENIED, "Permission Denied" }, + { M3UA_RKM_DEREG_ERR_NOT_REGD, "Error: Not Registered" }, + { M3UA_RKM_DEREG_ERR_ASP_ACTIVE, "Error: ASP Active" }, + { 0, NULL } +}; + /* push a M3UA header to the front of the given message */ static void msgb_push_m3ua_hdr(struct msgb *msg, uint8_t msg_class, uint8_t msg_type) { -- To view, visit https://gerrit.osmocom.org/2298 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: If8f0a0ad0837810388cfe65a7b571b6ce4df33e3 Gerrit-PatchSet: 1 Gerrit-Project: libosmo-sccp Gerrit-Branch: master Gerrit-Owner: Harald Welte <lafo...@gnumonks.org> Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org> Gerrit-Reviewer: Jenkins Builder