| 1 |
/****************************************************************************** |
| 2 |
* Copyright (c) 2000-2021 Ericsson Telecom AB |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v2.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html |
| 7 |
* |
| 8 |
* Contributors: |
| 9 |
* Balasko, Jeno |
| 10 |
* Lovassy, Arpad |
| 11 |
* Raduly, Csaba |
| 12 |
* |
| 13 |
******************************************************************************/ |
| 14 |
|
| 15 |
module NAS_EPS_v970 |
| 16 |
{ |
| 17 |
|
| 18 |
import from General_Types all; |
| 19 |
|
| 20 |
|
| 21 |
external function enc_PDU_NAS_EPS(in PDU_NAS_EPS pdu) return octetstring |
| 22 |
with { extension "prototype(convert)" extension "encode(RAW)" } |
| 23 |
|
| 24 |
external function dec_PDU_NAS_EPS(in octetstring stream) return PDU_NAS_EPS |
| 25 |
with { extension "prototype(convert)" extension "decode(RAW)" } |
| 26 |
|
| 27 |
type record ESM_CauseV |
| 28 |
{ |
| 29 |
OCT1 causeValue |
| 30 |
} |
| 31 |
|
| 32 |
// 8.2.32 PDU_NAS_EPS_Uplink_Generic_NAS_Transport |
| 33 |
type record PDU_NAS_EPS_Uplink_Generic_NAS_Transport |
| 34 |
{ |
| 35 |
BIT4 securityHeaderType, |
| 36 |
BIT8 messageType, |
| 37 |
BIT8 generic_MessageContainerType |
| 38 |
} with { |
| 39 |
variant "PRESENCE(securityHeaderType='0000'B)" |
| 40 |
} |
| 41 |
|
| 42 |
// 8.3.15 PDU_NAS_EPS_ESM_Status |
| 43 |
type record PDU_NAS_EPS_ESM_Status |
| 44 |
{ |
| 45 |
BIT4 ePSBearerIdentity, |
| 46 |
BIT8 procedureTransactionIdentifier, |
| 47 |
BIT8 messageType, |
| 48 |
ESM_CauseV esmCause |
| 49 |
} |
| 50 |
|
| 51 |
//see table 9.8.2/24.301: |
| 52 |
type union EPS_SessionManagement |
| 53 |
{ |
| 54 |
PDU_NAS_EPS_ESM_Status pDU_NAS_EPS_ESM_Status |
| 55 |
} with { |
| 56 |
variant "TAG ( |
| 57 |
|
| 58 |
pDU_NAS_EPS_ESM_Status, messageType = '11101000'B; |
| 59 |
)" |
| 60 |
} |
| 61 |
|
| 62 |
//see Table 9.8.1/24.301: |
| 63 |
type union EPS_MobilityManagement |
| 64 |
{ |
| 65 |
PDU_NAS_EPS_Uplink_Generic_NAS_Transport pDU_NAS_EPS_Uplink_Generic_NAS_Transport //Table 9.8.1/23.301 v10.1.0 |
| 66 |
} with { |
| 67 |
variant "TAG ( |
| 68 |
|
| 69 |
pDU_NAS_EPS_Uplink_Generic_NAS_Transport, messageType = '01101001'B; |
| 70 |
)" |
| 71 |
}; |
| 72 |
|
| 73 |
|
| 74 |
type union EPS_messages |
| 75 |
{ |
| 76 |
EPS_SessionManagement ePS_SessionManagement, |
| 77 |
EPS_MobilityManagement ePS_MobilityManagement |
| 78 |
}; |
| 79 |
|
| 80 |
//see 11.2.3.1.1/24.007 |
| 81 |
type record PDU_NAS_EPS |
| 82 |
{ |
| 83 |
BIT4 protocolDiscriminator, |
| 84 |
EPS_messages ePS_messages |
| 85 |
} with { variant (ePS_messages)"CROSSTAG( |
| 86 |
ePS_SessionManagement, protocolDiscriminator='0010'B; |
| 87 |
ePS_MobilityManagement, protocolDiscriminator='0111'B; |
| 88 |
)" |
| 89 |
}; |
| 90 |
|
| 91 |
} with { encode "RAW"} // End of module |