aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-09-12 21:30:17 +0200
committerHarald Welte <laforge@osmocom.org>2020-09-13 10:18:41 +0200
commit557c9f8cb82eba9332440f5ea53970c16eb7fb79 (patch)
tree12d2963973e93a6d2d14a308083137b4f8534192
parent4231de67fc11235e0c479add066b4a346ddc14b8 (diff)
move some key types from GSM_RR_Types to GSM_Types
This in turn means Osmocom_Gb_Types doesn't need to depend on GSM_RR_Types anymore, which is particularly ugly as the latter now depends on RLCMAC_*, creating a long chain of dependencies. Change-Id: I8c8da7709695ff0023f71b3999291e2515b22e46
-rw-r--r--library/GSM_RR_Types.ttcn20
-rw-r--r--library/GSM_Types.ttcn21
-rw-r--r--library/Osmocom_Gb_Types.ttcn1
-rw-r--r--sgsn/SGSN_Tests.ttcn1
4 files changed, 22 insertions, 21 deletions
diff --git a/library/GSM_RR_Types.ttcn b/library/GSM_RR_Types.ttcn
index 2cb50bcf..b7e02ec4 100644
--- a/library/GSM_RR_Types.ttcn
+++ b/library/GSM_RR_Types.ttcn
@@ -135,8 +135,6 @@ module GSM_RR_Types {
} with { variant "FIELDLENGTH(8)" };
type octetstring RestOctets with { variant "PADDING(yes), PADDING_PATTERN('00101011'B)" };
- type hexstring GsmBcdString with { variant "HEXORDER(low)" };
- type GsmBcdString BcdMccMnc with { variant "FIELDLENGTH(6)" };
type record L2PseudoLength {
uint6_t l2_plen,
@@ -219,18 +217,9 @@ module GSM_RR_Types {
hsn := hsn
};
- /* TS 24.008 10.5.1.1 */
- type uint16_t CellIdentity;
-
/* TS 24.008 10.5.1.2 */
type uint4_t CipheringKeySeqNr (0..7);
- /* 24.008 10.5.1.3 */
- type record LocationAreaIdentification {
- BcdMccMnc mcc_mnc,
- uint16_t lac
- } with { variant "" };
-
/* TS 24.008 10.5.1.4 */
type enumerated MobileIdentityType {
MI_TYPE_NONE (0),
@@ -424,15 +413,6 @@ module GSM_RR_Types {
uint3_t non_drx_timer
} with { variant "" };
- /* 24.008 10.5.5.15 */
- type record RoutingAreaIdentification {
- LocationAreaIdentification lai,
- uint8_t rac
- } with { variant "" };
-
- external function enc_RoutingAreaIdentification(RoutingAreaIdentification rai) return octetstring
- with { extension "prototype(convert)" extension "encode(RAW)" }
-
/* 44.018 10.5.2.16 */
type record IaRestOctHL {
uint6_t freq_par_len,
diff --git a/library/GSM_Types.ttcn b/library/GSM_Types.ttcn
index 5340fee9..ee6635ba 100644
--- a/library/GSM_Types.ttcn
+++ b/library/GSM_Types.ttcn
@@ -356,5 +356,26 @@ function f_gsm_compute_tc(integer fn) return integer {
return (fn / 51) mod 8;
}
+type hexstring GsmBcdString with { variant "HEXORDER(low)" };
+type GsmBcdString BcdMccMnc with { variant "FIELDLENGTH(6)" };
+
+/* 24.008 10.5.1.3 */
+type record LocationAreaIdentification {
+ BcdMccMnc mcc_mnc,
+ uint16_t lac
+} with { variant "" };
+
+/* 24.008 10.5.5.15 */
+type record RoutingAreaIdentification {
+ LocationAreaIdentification lai,
+ uint8_t rac
+} with { variant "" };
+
+external function enc_RoutingAreaIdentification(RoutingAreaIdentification rai) return octetstring
+with { extension "prototype(convert)" extension "encode(RAW)" }
+
+/* TS 24.008 10.5.1.1 */
+type uint16_t CellIdentity;
+
} with { encode "RAW"; variant "FIELDORDER(msb)" }
diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn
index 7ddaada7..c5b0953d 100644
--- a/library/Osmocom_Gb_Types.ttcn
+++ b/library/Osmocom_Gb_Types.ttcn
@@ -6,7 +6,6 @@ module Osmocom_Gb_Types {
import from General_Types all;
import from Osmocom_Types all;
import from GSM_Types all;
- import from GSM_RR_Types all;
import from BSSGP_Types all
import from NS_Types all
import from Native_Functions all;
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index 0e656a3e..ec18b530 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -15,6 +15,7 @@ friend module SGSN_Tests_Iu;
import from General_Types all;
import from Osmocom_Types all;
+import from GSM_Types all;
import from Native_Functions all;
import from NS_Types all;
import from NS_Emulation all;