From edae16aaa3769e3c1013b21b901f227b9e211629 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 3 May 2020 22:35:58 +0700 Subject: library: System Information: use RestOctets where possible The 'RestOctets' is a sub-type of the 'octetstring' with additional padding attributes. Let's use it for SI2bis, SI2ter, and SI6 too. Change-Id: I183d3ba9000e3ced8ecce74a4390b80075ddf25d Signed-off-by: Vadim Yanitskiy --- library/GSM_SystemInformation.ttcn | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'library') diff --git a/library/GSM_SystemInformation.ttcn b/library/GSM_SystemInformation.ttcn index a4688cd6..4cabd774 100644 --- a/library/GSM_SystemInformation.ttcn +++ b/library/GSM_SystemInformation.ttcn @@ -135,14 +135,18 @@ module GSM_SystemInformation { type record SystemInformationType2bis { NeighbourCellDescription extd_bcch_freq_list, RachControlParameters rach_control, - OCT1 rest_octets - } with { variant "" }; + RestOctets rest_octets + } with { + variant (rest_octets) "FIELDLENGTH(1)" + }; /* 44.018 9.1.34 */ type record SystemInformationType2ter { NeighbourCellDescription2 extd_bcch_freq_list, - OCT4 rest_octets - } with { variant "" }; + RestOctets rest_octets + } with { + variant (rest_octets) "FIELDLENGTH(4)" + }; /* 44.018 9.1.35 */ type record SystemInformationType3 { @@ -199,8 +203,10 @@ module GSM_SystemInformation { LocationAreaIdentification lai, CellOptionsSacch cell_options, BIT8 ncc_permitted, - OCT7 rest_octets - } with { variant "" }; + RestOctets rest_octets + } with { + variant (rest_octets) "FIELDLENGTH(7)" + }; type union SystemInformationUnion { SystemInformationType1 si1, -- cgit v1.2.3