aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-01-01 23:03:47 +0100
committerlaforge <laforge@osmocom.org>2020-01-03 22:20:50 +0000
commit322c79367b5d38e43c15c3238b18b5f24b9191ee (patch)
treea251bf162279a41fb6099d54b188d328253053b2 /library
parent5e51873d9c3fb46440404a5050f58d5f7d7d67fe (diff)
PCU: fix: actually match IMSI in Packet Paging Request
Diffstat (limited to 'library')
-rw-r--r--library/L3_Templates.ttcn3
-rw-r--r--library/RLCMAC_CSN1_Types.ttcn5
2 files changed, 7 insertions, 1 deletions
diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn
index 0556c972..6b5f5c23 100644
--- a/library/L3_Templates.ttcn
+++ b/library/L3_Templates.ttcn
@@ -2833,6 +2833,9 @@ function f_gen_msisdn(integer suffix) return hexstring {
external function enc_MobileIdentityLV(in MobileIdentityLV si) return octetstring
with { extension "prototype(convert) encode(RAW)" };
+external function dec_MobileIdentityV(in octetstring mi) return MobileIdentityV
+ with { extension "prototype(convert) decode(RAW)" };
+
/* SMS TPDU Layer */
diff --git a/library/RLCMAC_CSN1_Types.ttcn b/library/RLCMAC_CSN1_Types.ttcn
index 321049c0..1bb62329 100644
--- a/library/RLCMAC_CSN1_Types.ttcn
+++ b/library/RLCMAC_CSN1_Types.ttcn
@@ -204,7 +204,10 @@ module RLCMAC_CSN1_Types {
* uses a byte. */
uint4_t len,
octetstring mobile_id
- } with { variant (len) "LENGTHTO(mobile_id)" };
+ } with {
+ variant (len) "LENGTHTO(mobile_id)"
+ variant (mobile_id) "BYTEORDER(first)"
+ };
type record PageInfoPs {
BIT1 presence ('0'B),
BIT1 ptmsi_or_mobile_id,