aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gprs_llc_vty.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-11-18 14:07:04 +0100
committerHarald Welte <laforge@gnumonks.org>2016-12-21 10:27:24 +0000
commit549ebc7d6c001b9ce134c7462f621335dbf671b9 (patch)
tree46c5d896c2ffeb74f6eae0bab306174586065964 /openbsc/src/gprs/gprs_llc_vty.c
parent6903848029071ec91959a53499785195cb2a091a (diff)
Improve GPRS logging
* log xid type as string instead of int * log packet encryption status, algorithm and IOV-UI in debug mode * print encryption parameters when dumping llme via vty * log key propagation from MM to LLC Related: OS#1794 Change-Id: I30c38fdeb0b88bb39bdb9928851300bc79e6aec6
Diffstat (limited to 'openbsc/src/gprs/gprs_llc_vty.c')
-rw-r--r--openbsc/src/gprs/gprs_llc_vty.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gprs_llc_vty.c b/openbsc/src/gprs/gprs_llc_vty.c
index f399b2752..e97416ba5 100644
--- a/openbsc/src/gprs/gprs_llc_vty.c
+++ b/openbsc/src/gprs/gprs_llc_vty.c
@@ -73,9 +73,11 @@ static void vty_dump_llme(struct vty *vty, struct gprs_llc_llme *llme)
struct timespec now_tp = {0};
clock_gettime(CLOCK_MONOTONIC, &now_tp);
- vty_out(vty, "TLLI %08x (Old TLLI %08x) BVCI=%u NSEI=%u Age=%d: State %s%s",
- llme->tlli, llme->old_tlli, llme->bvci, llme->nsei,
- llme->age_timestamp == GPRS_LLME_RESET_AGE ? 0 :
+ vty_out(vty, "TLLI %08x (Old TLLI %08x) BVCI=%u NSEI=%u %s: "
+ "IOV-UI=0x%06x CKSN=%d Age=%d: State %s%s", llme->tlli,
+ llme->old_tlli, llme->bvci, llme->nsei,
+ get_value_string(gprs_cipher_names, llme->algo), llme->iov_ui,
+ llme->cksn, llme->age_timestamp == GPRS_LLME_RESET_AGE ? 0 :
(int)(now_tp.tv_sec - (time_t)llme->age_timestamp),
get_value_string(gprs_llc_state_strs, llme->state), VTY_NEWLINE);