Commit 4bb557ec authored by Pau Espin Pedrol's avatar Pau Espin Pedrol
Browse files

NG_NAS_TypeDefs.ttcn: Fix dec of NG_SECURITY_MODE_COMMAND

The iei field in nasSecurityAlgorithms is filled by the decoder, which should be
decoded as "omit".
type record NAS_KeySetIdentifier already has a variant "FORCEOMIT(iei)"
in its definition, but according to "Programmers' Technical Reference
Guide for the TITAN TTCN-3 Toolset", FORCEOMIT "Forces the lower-level
optional field(s) specified by the parameters to always be
omitted. It does not affect the own fields of the defining record/set."

Applying the variant in the parent-level record fixes the decoding
issue.
parent 851a1e83
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -742,6 +742,7 @@ module NG_NAS_TypeDefs {
    S1_UE_SecurityCapability            replayedUESecurityCap         optional  /* cl. 9.11.3.48A O TLV 4-7 IEI=19 Dec18 @sic R5s190421 sic@*/
  } with {
    variant "FIELDORDER(msb)";
    variant (nasSecurityAlgorithms) "FORCEOMIT(iei)";
    variant (ngNasKSI) "FORCEOMIT(iei)";
    variant (ueSecurityCapability) "FORCEOMIT(iei)";
    variant "TAG(imeisvRequest, iei = 'E'H;