aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ranap/ranap.cnf
blob: d23be14d79bbfc57d06cf1098d6c37ea947228f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# ranap.cnf
# ranap conformation file

# $Id$

#.EXPORTS
TargetID
Service-Handover
IntegrityProtectionInformation
EncryptionInformation

#.PDU_NEW
RANAP-PDU

#.NO_EMIT

#.TYPE_RENAME

#.FIELD_RENAME

SDU-ErrorRatio/exponent exponent_1_8

PrivateIE-Field/id private_id
ProtocolExtensionField/id ext_id

MessageStructure/_item/repetitionNumber item_repetitionNumber
PrivateIE-Field/value private_value
ProtocolIE-Field/value ie_field_value
RAB-DataVolumeReportItem/dl-UnsuccessfullyTransmittedDataVolume rab-dl-UnsuccessfullyTransmittedDataVolume
#.FN_PARS RANAP-PDU

VAL_PTR = &type_of_message

#.FN_PARS ProcedureCode

VAL_PTR = &ProcedureCode

#.FN_FTR ProcedureCode
	if (check_col(actx->pinfo->cinfo, COL_INFO))
       col_add_fstr(actx->pinfo->cinfo, COL_INFO, "%s ",
                   val_to_str(ProcedureCode, ranap_ProcedureCode_vals,
                              "unknown message"));
#.FN_PARS ProtocolIE-ID
 
VAL_PTR = &ProtocolIE_ID

#.FN_PARS ProtocolExtensionID

VAL_PTR = &ProtocolIE_ID

#.FN_BODY PermanentNAS-UE-ID/iMSI
  tvbuff_t* imsi_tvb;
  offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_ranap_iMSI,
                                       3, 8, &imsi_tvb);
  
	if ( actx->pinfo->sccp_info
		 && actx->pinfo->sccp_info->assoc
		 && ! actx->pinfo->sccp_info->assoc->calling_party ) {
	   
		guint len = tvb_length(imsi_tvb);
		guint8* bytes = ep_tvb_memdup(imsi_tvb,0,len);

		actx->pinfo->sccp_info->assoc->calling_party = 
			se_strdup_printf("IMSI: %%s", bytes_to_str(bytes, len) );
	}
#.FN_BODY Value
	
	offset = dissect_ranap_messages(tvb, offset, %(ACTX)s, tree);

#.FN_BODY RANAP_PROTOCOL_IES_Value

	offset = dissect_ranap_ies(tvb, offset, %(ACTX)s, tree);

#.FN_BODY NAS-PDU  VAL_PTR = &nas_pdu_tvb

tvbuff_t *nas_pdu_tvb=NULL;

%(DEFAULT_BODY)s

	if (nas_pdu_tvb)
		dissector_try_port(nas_pdu_dissector_table, 0x1, nas_pdu_tvb, %(ACTX)s->pinfo, top_tree);

#.FN_BODY SecondValue
	offset = dissect_ranap_SecondValue_ies(tvb, offset, %(ACTX)s, tree);

#.FN_BODY FirstValue
	offset = dissect_ranap_FirstValue_ies(tvb, offset, %(ACTX)s, tree);

#.FN_BODY Extension

	offset = dissect_ranap_ies(tvb, offset, %(ACTX)s, tree);

#.FN_BODY RANAP_PRIVATE_IES_Value
/* FIX ME */

#.FN_BODY PLMNidentity  VAL_PTR = &parameter_tvb

	tvbuff_t *parameter_tvb=NULL;

%(DEFAULT_BODY)s

	 if (!parameter_tvb)
		return offset;
	dissect_e212_mcc_mnc(parameter_tvb, tree, 0);

#.END
#.TYPE_ATTR
ProtocolExtensionID TYPE = FT_UINT8  DISPLAY = BASE_DEC STRINGS = VALS(ranap_ProtocolIE_ID_vals)