library: GTPv1C: fix ts_MM_Context{GSM,UMTS} templates

Set the values according to 3GPP TS 29.060 version 17.4.0 Release 17.

* Field 'spare' is defined as 'Spare 1111' in Table 40 (missing '1').
* Field 'spare1' is defined as 'Spare 111' in Table 41.
* Field 'security' must be set as per Table 47.

Change-Id: Ic8abb048f7c1fa795ee472820c5b88de0073dc66
Fixes: f95460b55 "GTP_Templates: Add templates for some GTPv1C IEs"
Fixes: fdde16846 "library: GTPv1C add ts_MM_ContextGSM"
This commit is contained in:
Vadim Yanitskiy 2024-04-19 01:17:48 +07:00
parent ffe1f887c3
commit 3efcf5423b
1 changed files with 5 additions and 5 deletions

View File

@ -346,10 +346,10 @@ module GTPv1C_Templates {
mmcontGSM := {
lengthf := 0, /* overwritten */
cksn := cksn,
spare := '00000'B,
spare := '11111'B,
usedCipher := gea,
noofVectors := 0,
security := '00'B, /* XXX */
noofVectors := 0, /* overwritten */
security := '01'B, /* GSM key and triplets */
kc := kc,
triplet := ''O,
drx_par := '0000'O,
@ -372,9 +372,9 @@ module GTPv1C_Templates {
usedGPRSIntegrityAlgorithm := '000'B,
ugipai := '1'B, /* Integrity Protection not required */
gupii := '1'B, /* Ignore "Used GPRS integrity protection algorithm" field" */
spare1 := '000'B,
spare1 := '111'B,
noofVectors := 0, /* TODO: fill quintpuplets*/
security := '01'B, /* UMTS key and quintuplets */
security := '10'B, /* UMTS key and quintuplets */
ck := ck,
ik := ik,
quintupletlength := 0, /* overwritten */