diff options
author | Max <msuraev@sysmocom.de> | 2017-05-22 14:48:27 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-05-24 22:13:14 +0000 |
commit | 54ca30c8d3b26285bcf2f960265b2a50469f3af3 (patch) | |
tree | 0d8b79b09e90d2da1dfa8c78a020cd24c11a74a0 /src/gb/gprs_ns.c | |
parent | c8cf82059518855298b87da4757e8e1face74359 (diff) |
Add human-readable names for signal_ns
Change-Id: Id664355eb8305fb287e4dae0800fb20dc2f9b8cd
Related: SYS#3610
Diffstat (limited to 'src/gb/gprs_ns.c')
-rw-r--r-- | src/gb/gprs_ns.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gb/gprs_ns.c b/src/gb/gprs_ns.c index d0c5a177..23c0be88 100644 --- a/src/gb/gprs_ns.c +++ b/src/gb/gprs_ns.c @@ -150,6 +150,16 @@ static const struct osmo_stat_item_group_desc nsvc_statg_desc = { .class_id = OSMO_STATS_CLASS_PEER, }; +const struct value_string gprs_ns_signal_ns_names[] = { + { S_NS_RESET, "NS-RESET" }, + { S_NS_BLOCK, "NS-BLOCK" }, + { S_NS_UNBLOCK, "NS-UNBLOCK" }, + { S_NS_ALIVE_EXP, "NS-ALIVE expired" }, + { S_NS_REPLACED, "NSVC replaced" }, + { S_NS_MISMATCH, "Unexpected IE" }, + { 0, NULL } +}; + #define CHECK_TX_RC(rc, nsvc) \ if (rc < 0) \ LOGP(DNS, LOGL_ERROR, "TX failed (%d) to peer %s\n", \ |