lynxis lazus has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38414?usp=email )


Change subject: SGSN: fix encoding of IMEISV in Auth and Ciphering Response
......................................................................

SGSN: fix encoding of IMEISV in Auth and Ciphering Response

According to 24.008 the IMEISV field is exact 11 bytes long and
must contain a IMEI + SV which is exact 16 digits long, not 15.

Change-Id: I79dd79840de58f450c1a05e704fd9bd831455716
---
M sgsn/BSSGP_ConnHdlr.ttcn
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/14/38414/1

diff --git a/sgsn/BSSGP_ConnHdlr.ttcn b/sgsn/BSSGP_ConnHdlr.ttcn
index e91f86b..b38bb89 100644
--- a/sgsn/BSSGP_ConnHdlr.ttcn
+++ b/sgsn/BSSGP_ConnHdlr.ttcn
@@ -341,7 +341,7 @@
                if 
(ispresent(l3_mt.msgs.gprs_mm.authenticationAndCipheringRequest.imeisvRequest) 
and
                    
l3_mt.msgs.gprs_mm.authenticationAndCipheringRequest.imeisvRequest.valueField 
== '001'B) {
                        
l3_mo.msgs.gprs_mm.authenticationAndCipheringResponse.imeisv :=
-                                               
valueof(ts_MI_IMEISV_TLV(g_pars.imei & '0'H));
+                                               
valueof(ts_MI_IMEISV_TLV(g_pars.imei & '00'H));
                }
                f_send_l3(l3_mo, ran_index);
 }
@@ -422,7 +422,7 @@
                if 
(ispresent(l3_mt.msgs.gprs_mm.authenticationAndCipheringRequest.imeisvRequest) 
and
                    
l3_mt.msgs.gprs_mm.authenticationAndCipheringRequest.imeisvRequest.valueField 
== '001'B) {
                        
l3_mo.msgs.gprs_mm.authenticationAndCipheringResponse.imeisv :=
-                                               
valueof(ts_MI_IMEISV_TLV(g_pars.imei & '0'H));
+                                               
valueof(ts_MI_IMEISV_TLV(g_pars.imei & '00'H));
                }
                f_send_l3(l3_mo, ran_index);


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38414?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I79dd79840de58f450c1a05e704fd9bd831455716
Gerrit-Change-Number: 38414
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <[email protected]>

Reply via email to