[PATCH] openbsc[master]: Log expected SRES on GPRS AUTH REJECT

Max gerrit-no-reply at lists.osmocom.org
Fri Jan 13 18:19:46 UTC 2017


Review at  https://gerrit.osmocom.org/1600

Log expected SRES on GPRS AUTH REJECT

Change-Id: I19b0001650979bf7f1832f04f9fd5a26beb577d0
---
M openbsc/src/gprs/gprs_gmm.c
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/00/1600/1

diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
index 363b457..ed129bd 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -640,7 +640,9 @@
 	    memcmp(TLVP_VAL(&tp, GSM48_IE_GMM_AUTH_SRES), at->vec.sres,
 		   sizeof(at->vec.sres)) != 0) {
 
-		LOGMMCTXP(LOGL_NOTICE, ctx, "Received SRES doesn't match\n");
+		LOGMMCTXP(LOGL_NOTICE, ctx, "Received SRES doesn't match "
+			  "expected RES %s\n", osmo_hexdump(at->vec.sres,
+							    sizeof(at->vec.sres));
 		rc = gsm48_tx_gmm_auth_ciph_rej(ctx);
 		mm_ctx_cleanup_free(ctx, "GPRS AUTH AND CIPH REJECT");
 		return rc;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I19b0001650979bf7f1832f04f9fd5a26beb577d0
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>


More information about the gerrit-log mailing list