From 162b160678801842bb40084812ce0060c94fd201 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 16 Jul 2017 03:05:02 +0200 Subject: add SI3 matching template --- sysinfo/GSM_SystemInformation.ttcn | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'sysinfo') diff --git a/sysinfo/GSM_SystemInformation.ttcn b/sysinfo/GSM_SystemInformation.ttcn index 86cba2a7..4a7bfd51 100644 --- a/sysinfo/GSM_SystemInformation.ttcn +++ b/sysinfo/GSM_SystemInformation.ttcn @@ -14,7 +14,7 @@ module GSM_SystemInformation { BIT2 zero_one } with { variant "" }; - template L2PseudoLength t_L2Pseudolength(uint6_t len) := { + template L2PseudoLength t_L2Pseudolength(template uint6_t len) := { l2_plen := len, zero_one := '01'B }; @@ -36,8 +36,9 @@ module GSM_SystemInformation { RrMessageType message_type } with { variant "" }; - template SystemInformationHeader t_SiHeader(RrMessageType msg_type, uint6_t len) := { + template SystemInformationHeader t_SiHeader(RrMessageType msg_type, template uint6_t len) := { l2_plen := t_L2Pseudolength(len), + skip_indicator := 0, rr_protocol_discriminator := 6, message_type := msg_type }; @@ -112,6 +113,8 @@ module GSM_SystemInformation { uint8_t t3212 } with { variant "" }; + template ControlChannelDescription t_ControlChannelDescription := { ?, ?, ?, ?, ?, ?, '00'B, ?, ? }; + /* 44.018 10.5.2.21 */ type record MobileAllocation { OCT1 iei, @@ -183,6 +186,17 @@ module GSM_SystemInformation { Si3RestOctets rest_octets } with { variant "" }; + template SystemInformationType3 t_SI3 := { + cell_id := ?, + lai := ?, + ctrl_chan_desc := t_ControlChannelDescription, + cell_options := ?, + cell_sel_par := ?, + rach_control := ?, + rest_octets := ? + }; + + /* 44.018 9.1.36 */ type record SystemInformationType4 { //SystemInformationHeader header, -- cgit v1.2.3