Add templates for FLUSH_LL

Change-Id: Id432022fdd7f96bc014f0fd81658fa4aa796a688
Related: SYS#5210
This commit is contained in:
Daniel Willmann 2020-11-20 18:34:22 +01:00 committed by laforge
parent 3191d73f6c
commit 379fc250de
1 changed files with 61 additions and 7 deletions

View File

@ -768,13 +768,43 @@ octetstring sdu) := {
} with { variant "FIELDLENGTH(8)" };
template BVCI t_BSSGP_BVCI(template BssgpBvci bvci) := {
iEI := '04'O,
ext := '1'B,
lengthIndicator := {
length1 := 2
},
unstructured_value := f_oct_or_wc(bvci, 2)
private function t_BSSGP_BVCI(template BssgpBvci bvci)
return template BVCI {
var template BVCI r;
if (istemplatekind(bvci, "omit")) {
return omit;
} else if (istemplatekind(bvci, "*")) {
return *;
} else {
r := {
iEI := '04'O,
ext := '1'B,
lengthIndicator := {
length1 := 2
},
unstructured_value := f_oct_or_wc(bvci, 2)
}
return r;
}
}
private function t_BSSGP_NSEI(template Nsei nsei)
return template NSEI_BSSGP {
var template NSEI_BSSGP r;
if (istemplatekind(nsei, "omit")) {
return omit;
} else if (istemplatekind(nsei, "*")) {
return *;
} else {
r := {
iEI:= '3E'O,
ext := '1'B,
lengthIndicator := {
length1 := 2
},
nSEI := f_oct_or_wc(nsei, 2)
}
return r;
}
}
template (value) TLLI_BSSGP ts_BSSGP_TLLI(template (value) GprsTlli tlli) := {
@ -1728,6 +1758,30 @@ octetstring sdu) := {
}
}
/* 10.4.1 */
template (value) PDU_BSSGP ts_BSSGP_FLUSH_LL(GprsTlli tlli, template (value) BssgpBvci bvci_old,
template (omit) BssgpBvci bvci_new := omit,
template (omit) Nsei nsei := omit) := {
pDU_BSSGP_FLUSH_LL := {
bssgpPduType := '2A'O,
tLLI := ts_BSSGP_TLLI(tlli),
bVCI_old := t_BSSGP_BVCI(bvci_old),
bVCI_new := t_BSSGP_BVCI(bvci_new),
nSEI := t_BSSGP_NSEI(nsei)
}
}
template PDU_BSSGP tr_BSSGP_FLUSH_LL(template GprsTlli tlli, template BssgpBvci bvci_old,
template (omit) BssgpBvci bvci_new := omit,
template (omit) Nsei nsei := omit) := {
pDU_BSSGP_FLUSH_LL := {
bssgpPduType := '2A'O,
tLLI := tr_BSSGP_TLLI(tlli),
bVCI_old := t_BSSGP_BVCI(bvci_old),
bVCI_new := t_BSSGP_BVCI(bvci_new),
nSEI := t_BSSGP_NSEI(nsei)
}
}
/* 10.2.3 */
template (value) PDU_BSSGP ts_BSSGP_RA_CAP(GprsTlli tlli,
template (omit) MSRadioAccessCapabilityV_BSSGP racap := omit) := {