Commit 22253ec8 authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

added template

parent 06a3b1f2
Loading
Loading
Loading
Loading
+25 −0
Changes for ttcn/Lib_NG_NAS/lib/Lib_NG_NAS_Templates.ttcn: 25 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2289,6 +2289,31 @@ module Lib_NG_NAS_Templates {
    typeOfId        := p_NAS_IdType
  } // End of template mw_IdentityType

  //from template (value) MobileIdentity cs_MobileIdentityGuti - NAS_Common
  template (value) NG_MobileIdentity m_NG_MobileIdentityGuti(in template (value) octetstring p_Guti) :=
  {
    /* Reference: 24.301 cl. 9.9.3.12;
       @status    APPROVED (ENDC, IMS, IMS_IRAT, LTE, LTE_A_IRAT, LTE_A_PRO, LTE_A_R10_R11, LTE_A_R12, LTE_IRAT, NBIOT, NR5GC_IRAT, POS) */
    iei         := omit,
    iel         := int2oct(lengthof(p_Guti) + 1, 1),    // 11 octets in case of GUTI
    idDigit1    := '1111'B,                             // in case of the GUTI
    oddEvenInd  := '0'B,                                // in case of the GUTI
    typeOfId    := tsc_IdType_GUTI,                     // 3 bits
    otherDigits := p_Guti                               // 10 octets acc. to 24.301
  };

  template (present) NG_MobileIdentity mw_NG_MobileIdentityGuti(in template (present) octetstring p_Guti :=?) :=
  {
    /* Reference: 24.301 cl. 9.9.3.12;
       @status    APPROVED (ENDC, IMS, IMS_IRAT, LTE, LTE_A_IRAT, LTE_A_PRO, LTE_A_R10_R11, LTE_A_R12, LTE_IRAT, NBIOT, NR5GC_IRAT, POS) */
    iei         := omit,
    iel         := int2oct(lengthof(p_Guti) + 1, 1),    // 11 octets in case of GUTI
    idDigit1    := '1111'B,                             // in case of the GUTI
    oddEvenInd  := '0'B,                                // in case of the GUTI
    typeOfId    := tsc_IdType_GUTI,                     // 3 bits
    otherDigits := p_Guti                               // 10 octets acc. to 24.301
  };

  //from template (present) NG_MobileIdentity cr_NG_MobileIdentitySUCI - NG_NAS_Common
  template (value) NG_MobileIdentity m_NG_MobileIdentitySUCI(
                                                             in template (value) B4_Type p_SUPIFormat,