[MERGED] osmo-bsc[master]: debug log: log Cipher Mode info upon sending down RSL/A-bis

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Dec 14 21:07:44 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: debug log: log Cipher Mode info upon sending down RSL/A-bis
......................................................................


debug log: log Cipher Mode info upon sending down RSL/A-bis

Change-Id: I7f7ec44887f6b40fdce8d348e9e9bd200fe0b689
---
M src/libbsc/bsc_api.c
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/libbsc/bsc_api.c b/src/libbsc/bsc_api.c
index 5ba2cde..845b1b7 100644
--- a/src/libbsc/bsc_api.c
+++ b/src/libbsc/bsc_api.c
@@ -32,6 +32,7 @@
 #include <osmocom/bsc/debug.h>
 #include <osmocom/bsc/trau_mux.h>
 #include <osmocom/bsc/gsm_04_08_utils.h>
+#include <osmocom/bsc/bsc_subscriber.h>
 
 #include <osmocom/gsm/protocol/gsm_08_08.h>
 #include <osmocom/gsm/gsm48.h>
@@ -730,6 +731,9 @@
 		return -1;
 	}
 
+	LOGP(DRSL, LOGL_DEBUG, "(subscr %s) Cipher Mode: cipher=%d key=%s include_imeisv=%d\n",
+	     bsc_subscr_name(conn->bsub), cipher, osmo_hexdump_nospc(key, len), include_imeisv);
+
 	conn->lchan->encr.alg_id = RSL_ENC_ALG_A5(cipher);
 	if (key) {
 		conn->lchan->encr.key_len = len;

-- 
To view, visit https://gerrit.osmocom.org/5379
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7f7ec44887f6b40fdce8d348e9e9bd200fe0b689
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list