GSM_TypeS: Add Mobile Identity type 'NONE'

This commit is contained in:
Harald Welte 2017-07-16 21:03:47 +02:00
parent ad091b6b10
commit 57a3150778
1 changed files with 12 additions and 4 deletions

View File

@ -175,19 +175,27 @@ module GSM_Types {
} with { variant "" };
type record MobileIdentityTMSI {
MobileIdentityType mi_type (MI_TYPE_TMSI),
boolean odd (false),
BIT4 pad ('1111'B),
boolean odd (false),
MobileIdentityType mi_type (MI_TYPE_TMSI),
GsmTmsi tmsi
} with { variant "" };
type record MobileIdentityNone {
BIT4 pad ('1111'B),
boolean odd (false),
MobileIdentityType mi_type (MI_TYPE_NONE)
} with { variant "" };
type union MobileIdentity {
MobileIdentityBCD bcd,
MobileIdentityTMSI tmsi
MobileIdentityTMSI tmsi,
MobileIdentityNone unused
} with { variant "TAG(bcd, mi_type = MI_TYPE_IMSI;
bcd, mi_type = MI_TYPE_IMEI;
bcd, mi_type = MI_TYPE_IMEISV;
tmsi, mi_type = MI_TYPE_TMSI)" };
tmsi, mi_type = MI_TYPE_TMSI;
unused, mi_type = MI_TYPE_NONE)" };
type record MobileIdentityLV {
uint8_t len,