1 /* packet-gsm_bssmap_le.c
2 * Routines for GSM Lb Interface BSSMAP dissection
4 * Copyright 2008, Johnny Mitrevski <mitrevj@hotmail.com>
6 * 3GPP TS 49.031 version v7.4.0 (2009-09)
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
35 #include <epan/packet.h>
37 #include <epan/emem.h>
39 #include "packet-bssap.h"
40 #include "packet-sccp.h"
41 #include "packet-gsm_a_common.h"
42 #include "packet-e212.h"
44 /* PROTOTYPES/FORWARDS */
46 /* Message Type definitions */
47 #define BSSMAP_LE_PERFORM_LOCATION_REQUEST 43
48 #define BSSMAP_LE_PERFORM_LOCATION_RESPONSE 45
49 #define BSSMAP_LE_PERFORM_LOCATION_ABORT 46
50 #define BSSMAP_LE_PERFORM_LOCATION_INFORMATION 47
51 #define BSSMAP_LE_CONNECTION_ORIENTED_INFORMATION 42
52 #define BSSMAP_LE_CONNECTIONLESS_INFORMATION 58
53 #define BSSMAP_LE_RESET 48
54 #define BSSMAP_LE_RESET_ACKNOWLEDGE 49
56 static const value_string gsm_bssmap_le_msg_strings[] = {
62 { BSSMAP_LE_PERFORM_LOCATION_REQUEST, "Perform Location Request" },
63 { BSSMAP_LE_PERFORM_LOCATION_RESPONSE, "Perform Location Response" },
64 { BSSMAP_LE_PERFORM_LOCATION_ABORT, "Perform Location Abort" },
65 { BSSMAP_LE_PERFORM_LOCATION_INFORMATION, "Perform Location Information" },
66 { BSSMAP_LE_CONNECTION_ORIENTED_INFORMATION, "Connection Oriented Information" },
67 { BSSMAP_LE_CONNECTIONLESS_INFORMATION, "Connectionless Information" },
68 { BSSMAP_LE_RESET, "Reset" },
69 { BSSMAP_LE_RESET_ACKNOWLEDGE, "Reset Acknowledge" },
70 { 0, NULL } /*Null terminated list. Make sure we add this to our value/string structures. */
73 /* Information Element definitions */
74 #define BSSMAP_LE_LCS_QOS 62
75 #define BSSMAP_LE_LCS_PRIORITY 67
76 #define BSSMAP_LE_LOCATION_TYPE 68
77 #define BSSMAP_LE_GANSS_LOCATION_TYPE 130
78 #define BSSMAP_LE_GEOGRAPHIC_LOCATION 69
79 #define BSSMAP_LE_POSITIONING_DATA 70
80 #define BSSMAP_LE_GANSS_POSITIONING_DATA 131
81 #define BSSMAP_LE_VELOCITY_DATA 85
82 #define BSSMAP_LE_LCS_CAUSE 71
83 #define BSSMAP_LE_LCS_CLIENT_TYPE 72
84 #define BSSMAP_LE_APDU 73
85 #define BSSMAP_LE_NETWORK_ELEMENT_IDENTITY 74
86 #define BSSMAP_LE_REQUESTED_GPS_ASSISTANCE_DATA 75
87 #define BSSMAP_LE_REQUESTED_GANSS_ASSISTANCE_DATA 65
88 #define BSSMAP_LE_DECIPHERING_KEYS 76
89 #define BSSMAP_LE_RETURN_ERROR_REQUEST 77
90 #define BSSMAP_LE_RETURN_ERROR_CAUSE 78
91 #define BSSMAP_LE_SEGMENTATION 79
92 #define BSSMAP_LE_CLASSMARK_INFORMATION_TYPE_3 19
93 #define BSSMAP_LE_CAUSE 4
94 #define BSSMAP_LE_CELL_IDENTIFIER 5
95 #define BSSMAP_LE_CHOSEN_CHANNEL 33
96 #define BSSMAP_LE_IMSI 0
97 #define BSSMAP_LE_RESERVED_NOTE1 1
98 #define BSSMAP_LE_RESERVED_NOTE2 2
99 #define BSSMAP_LE_RESERVED_NOTE3 3
100 #define BSSMAP_LE_LCS_CAPABILITY 80
101 #define BSSMAP_LE_PACKET_MEASUREMENT_REPORT 81
102 #define BSSMAP_LE_CELL_IDENTITY_LIST 82
103 #define BSSMAP_LE_IMEI 128
105 const value_string gsm_bssmap_le_elem_strings[] = {
106 { BSSMAP_LE_LCS_QOS, "LCS QoS" },
107 { BSSMAP_LE_LCS_PRIORITY, "LCS Priority" },
108 { BSSMAP_LE_LOCATION_TYPE, "Location Type" },
109 { BSSMAP_LE_GANSS_LOCATION_TYPE, "GANSS Location Type" },
110 { BSSMAP_LE_GEOGRAPHIC_LOCATION, "Geographic Location" },
111 { BSSMAP_LE_POSITIONING_DATA, "Positioning Data" },
112 { BSSMAP_LE_GANSS_POSITIONING_DATA, "GANSS Positioning Data" },
113 { BSSMAP_LE_VELOCITY_DATA, "Velocity Data" },
114 { BSSMAP_LE_LCS_CAUSE, "LCS Cause" },
115 { BSSMAP_LE_LCS_CLIENT_TYPE, "LCS Client Type" },
116 { BSSMAP_LE_APDU, "APDU" },
117 { BSSMAP_LE_NETWORK_ELEMENT_IDENTITY, "Network Element Identity" },
118 { BSSMAP_LE_REQUESTED_GPS_ASSISTANCE_DATA, "Requested GPS Assistance Data" },
119 { BSSMAP_LE_REQUESTED_GANSS_ASSISTANCE_DATA, "Requested GANSS Assistance Data" },
120 { BSSMAP_LE_DECIPHERING_KEYS, "Deciphering Keys" },
121 { BSSMAP_LE_RETURN_ERROR_REQUEST, "Return Error Request" },
122 { BSSMAP_LE_RETURN_ERROR_CAUSE, "Return Error Cause" },
123 { BSSMAP_LE_SEGMENTATION, "Segmentation" },
124 { BSSMAP_LE_CLASSMARK_INFORMATION_TYPE_3, "Classmark Information Type 3" },
125 { BSSMAP_LE_CAUSE, "Cause" },
126 { BSSMAP_LE_CELL_IDENTIFIER, "Cell Identifier" },
127 { BSSMAP_LE_CHOSEN_CHANNEL, "Chosen Channel" },
128 { BSSMAP_LE_IMSI, "IMSI" },
129 { BSSMAP_LE_RESERVED_NOTE1, "Reserved" },
130 { BSSMAP_LE_RESERVED_NOTE2, "Reserved" },
131 { BSSMAP_LE_RESERVED_NOTE3, "Reserved" },
132 { BSSMAP_LE_LCS_CAPABILITY, "LCS Capability" },
133 { BSSMAP_LE_PACKET_MEASUREMENT_REPORT, "Packet Measurement Report" },
134 { BSSMAP_LE_CELL_IDENTITY_LIST, "Cell Identity List" },
135 { BSSMAP_LE_IMEI, "IMEI" },
139 static const value_string gsm_apdu_protocol_id_strings[] = {
147 /* Velocity Requested definitions */
148 static const value_string bssmap_le_velocity_requested_vals[] = {
149 { 0, "do not report velocity" },
150 { 1, "report velocity if available" },
154 /* Vertical Coordinate definitions */
155 static const value_string bssmap_le_vertical_coordinate_indicator_vals[] = {
156 { 0, "vertical coordinate not requested" },
157 { 1, "vertical coordinate is requested" },
161 /* Horizontal Accuracy definitions */
162 static const value_string bssmap_le_horizontal_accuracy_indicator_vals[] = {
163 { 0, "horizontal accuracy is not specified" },
164 { 1, "horizontal accuracy is specified" },
168 /* Vertical Accuracy definitions */
169 static const value_string bssmap_le_vertical_accuracy_indicator_vals[] = {
170 { 0, "vertical accuracy is not specified" },
171 { 1, "vertical accuracy is specified" },
175 /* Response Time definitions */
176 static const value_string bssmap_le_response_time_definitions_vals[] = {
177 { 0, "Response Time is not specified" },
179 { 2, "Delay Tolerant" },
184 /* Initialize the protocol and registered fields */
185 static int proto_bssmap_le = -1;
186 int hf_gsm_bssmap_le_elem_id = -1;
188 /* The following hf_* variables are used to hold the Wireshark IDs of
189 * our header fields; they are filled out when we call
190 * proto_register_field_array() in proto_register_bssmap_le()
192 static int hf_gsm_bssmap_le_msg_type = -1;
193 static int hf_gsm_bssmap_le_apdu_protocol_id = -1;
194 static int hf_gsm_bssmap_le_spare = -1;
195 static int hf_gsm_bssmap_le_ciphering_key_flag = -1;
196 static int hf_gsm_bssmap_le_current_deciphering_key_value = -1;
197 static int hf_gsm_bssmap_le_next_deciphering_key_value = -1;
198 static int hf_gsm_bssmap_le_acq_ass = -1;
199 static int hf_gsm_bssmap_le_ref_time = -1;
200 static int hf_gsm_bssmap_le_ref_loc = -1;
201 static int hf_gsm_bssmap_le_dgps_corr = -1;
202 static int hf_gsm_bssmap_le_nav_mod = -1;
203 static int hf_gsm_bssmap_le_iono_mod = -1;
204 static int hf_gsm_bssmap_le_utc_mod = -1;
205 static int hf_gsm_bssmap_le_almanac = -1;
206 static int hf_gsm_bssmap_le_ephemeris_ext_chk = -1;
207 static int hf_gsm_bssmap_le_ephemeris_ext = -1;
208 static int hf_gsm_bssmap_le_real_time_int = -1;
209 static int hf_gsm_bssmap_le_lcs_cause_value =-1;
210 static int hf_gsm_bssmap_le_diagnostic_value = -1;
211 static int hf_gsm_bssmap_le_client_category = -1;
212 static int hf_gsm_bssmap_le_client_subtype = -1;
213 static int hf_gsm_bssmap_le_velocity_requested = -1;
214 static int hf_gsm_bssmap_le_vertical_coordinate_indicator = -1;
215 static int hf_gsm_bssmap_le_horizontal_accuracy_indicator = -1;
216 static int hf_gsm_bssmap_le_horizontal_accuracy = -1;
217 static int hf_gsm_bssmap_le_vertical_accuracy_indicator = -1;
218 static int hf_gsm_bssmap_le_vertical_accuracy = -1;
219 static int hf_gsm_bssmap_le_response_time_category = -1;
221 /* Initialize the subtree pointers */
222 static gint ett_bssmap_le_msg = -1;
224 static dissector_handle_t gsm_bsslap_handle = NULL;
226 static packet_info *g_pinfo;
227 static proto_tree *g_tree;
229 #define NUM_GSM_BSSMAP_LE_ELEM (sizeof(gsm_bssmap_le_elem_strings)/sizeof(value_string))
230 gint ett_gsm_bssmap_le_elem[NUM_GSM_BSSMAP_LE_ELEM];
237 de_bmaple_apdu(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_)
240 guint8 apdu_protocol_id;
243 curr_offset = offset;
245 /* curr_offset + 1 is a hack, the length part here is 2 octets and we are off by one */
246 proto_tree_add_text(tree, tvb, curr_offset+1, len, "APDU");
249 * dissect the embedded APDU message
250 * if someone writes a TS 09.31 dissector
252 * The APDU octets 4 to n are coded in the same way as the
253 * equivalent octet in the APDU element of 3GPP TS 49.031 BSSAP-LE.
256 apdu_protocol_id = tvb_get_guint8(tvb,curr_offset+1);
257 proto_tree_add_item(tree, hf_gsm_bssmap_le_apdu_protocol_id, tvb, curr_offset+1, 1, FALSE);
259 switch(apdu_protocol_id){
262 * the embedded message is as defined in 3GPP TS 08.71(3GPP TS 48.071 version 7.2.0 Release 7)
264 APDU_tvb = tvb_new_subset(tvb, curr_offset+2, len-1, len-1);
265 if(gsm_bsslap_handle)
266 call_dissector(gsm_bsslap_handle, APDU_tvb, g_pinfo, g_tree);
270 * The embedded message contains a Facility Information Element as defined in 3GPP TS 04.71
271 * excluding the Facility IEI and length of Facility IEI octets defined in 3GPP TS 04.71.(3GPP TS 44.071).
276 * The embedded message is as defined in 3GPP TS 08.31(TS 48.031).
285 EXTRANEOUS_DATA_CHECK(len, curr_offset - offset);
287 return(curr_offset - offset);
291 * coded as the value part of the Cause IE defined in 3GPP TS 48.008
294 * 10.5 Cell Identifier
295 * coded as the value part of the Cell Identifier IE defined in 3GPP TS 48.008
298 * 10.6 Chosen Channel
299 * coded as the value part of the Chosen Channel IE defined in 3GPP TS 48.008
302 * 10.7 Classmark Information Type 3
303 * coded as the value part of the Classmark Information Type 3 IE defined in 3GPP TS 48.008
306 * 10.8 Deciphering Keys
309 de_bmaple_decihp_keys(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_)
314 bit_offset = (offset<<3);
315 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_spare, tvb, bit_offset, 7, FALSE);
318 /* Extract the Ciphering Key Flag and add to protocol tree */
319 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_ciphering_key_flag, tvb, bit_offset, 1, FALSE);
323 /* Extract the Current Deciphering Key Value and add to protocol tree */
324 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_current_deciphering_key_value, tvb, bit_offset, 56, FALSE);
328 /* Extract the Next Deciphering Key Value and add to protocol tree */
329 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_next_deciphering_key_value, tvb, bit_offset, 56, FALSE);
335 * 10.9 Geographic Location
336 * contains an octet sequence identical to that for Geographical Information
337 * defined in 3GPP TS 23.032..
340 * 10.10 Requested GPS Assistance Data
343 de_bmaple_req_gps_ass_data(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_)
347 curr_offset = offset;
349 /* Octet 3 H G F E D C B A */
350 /* bit H Acquisition Assistance */
351 proto_tree_add_item(tree, hf_gsm_bssmap_le_acq_ass, tvb, curr_offset, 1, FALSE);
352 /* bit G Reference Time */
353 proto_tree_add_item(tree, hf_gsm_bssmap_le_ref_time, tvb, curr_offset, 1, FALSE);
354 /* bit F Reference Location */
355 proto_tree_add_item(tree, hf_gsm_bssmap_le_ref_loc, tvb, curr_offset, 1, FALSE);
356 /* bit E DGPS Corrections */
357 proto_tree_add_item(tree, hf_gsm_bssmap_le_dgps_corr, tvb, curr_offset, 1, FALSE);
358 /* bit D Navigation Model */
359 proto_tree_add_item(tree, hf_gsm_bssmap_le_nav_mod, tvb, curr_offset, 1, FALSE);
360 /* bit C Ionospheric Model */
361 proto_tree_add_item(tree, hf_gsm_bssmap_le_iono_mod, tvb, curr_offset, 1, FALSE);
362 /* bit B UTC Model */
363 proto_tree_add_item(tree, hf_gsm_bssmap_le_utc_mod, tvb, curr_offset, 1, FALSE);
365 proto_tree_add_item(tree, hf_gsm_bssmap_le_almanac, tvb, curr_offset, 1, FALSE);
368 /* Octet 4 P O N M L K J I
369 * bits L through P are Spare bits
371 /* bit K Ephemeris Extension Check */
372 proto_tree_add_item(tree, hf_gsm_bssmap_le_ephemeris_ext_chk, tvb, curr_offset, 1, FALSE);
373 /* bit J Ephemeris Extension */
374 proto_tree_add_item(tree, hf_gsm_bssmap_le_ephemeris_ext, tvb, curr_offset, 1, FALSE);
375 /* bit I Real-Time Integrity */
376 proto_tree_add_item(tree, hf_gsm_bssmap_le_real_time_int, tvb, curr_offset, 1, FALSE);
379 /* Octet 5 to Octet 8+2n Satellite related data */
380 proto_tree_add_text(tree, tvb, curr_offset, len-2, "Satellite related data Not decoded yet");
385 * coded as the value part of the Mobile Identity IE defined in 3GPP TS 24.008 (NOTE 1)
386 * NOTE 1: The Type of identity field in the Mobile Identity IE shall
387 * be ignored by the receiver
395 static const value_string bssmap_le_lcs_cause_values[] = {
396 { 0, "Unspecified" },
397 { 1, "System Failure" },
398 { 2, "Protocol Error" },
399 { 3, "Data missing in position request" },
400 { 4, "Unexpected data value in position request" },
401 { 5, "Position method failure" },
402 { 6, "Target MS Unreachable" },
403 { 7, "Location request aborted" },
404 { 8, "Facility not supported" },
405 { 9, "Inter-BSC Handover Ongoing" },
406 { 10, "Intra-BSC Handover Complete" },
407 { 11, "Congestion" },
408 { 12, "Inter NSE cell change" },
409 { 13, "Routing Area Update" },
410 { 14, "PTMSI reallocation" },
411 { 15, "Suspension of GPRS services" },
415 static const value_string bssmap_le_position_method_failure_diagnostic_vals[] = {
417 { 1, "insufficientResources" },
418 { 2, "insufficientMeasurementData" },
419 { 3, "inconsistentMeasurementData" },
420 { 4, "locationProcedureNotCompleted" },
421 { 5, "locationProcedureNotSupportedByTargetMS" },
422 { 6, "qoSNotAttainable" },
423 { 7, "positionMethodNotAvailableInNetwork" },
424 { 8, "positionMethodNotAvailableInLocaitonArea" },
428 de_bmaple_cause(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_)
432 curr_offset = offset;
435 proto_tree_add_item(tree, hf_gsm_bssmap_le_lcs_cause_value, tvb, curr_offset, 1, FALSE);
440 /* Diagnostic value (note) */
441 proto_tree_add_item(tree, hf_gsm_bssmap_le_diagnostic_value, tvb, curr_offset, 1, FALSE);
445 return(curr_offset - offset);
448 * 10.14 LCS Client Type
450 /* Client Category definitions */
451 static const value_string bssmap_le_client_category[] = {
452 { 0, "Value Added Client" },
453 { 2, "PLMN Operator" },
454 { 3, "Emergency Services"},
455 { 4, "Lawful Intercept Services"},
459 /* Client Subtype definitions */
460 static const value_string bssmap_le_client_subtype[] = {
461 { 0, "unspecified" },
462 { 1, "broadcast service" },
464 { 3, "anonymous statistics" },
465 { 4, "Target MS service support" },
470 de_bmaple_client(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_)
475 bitCount = offset<<3;
476 curr_offset = offset;
478 /* Extract the client category and add to protocol tree */
479 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_client_category, tvb, bitCount, 4, FALSE);
480 bitCount = bitCount + 4;
482 /* Extract the client subtype and add to protocol tree */
483 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_client_subtype, tvb, bitCount, 4, FALSE);
484 bitCount = bitCount + 4;
487 return(curr_offset - offset);
491 * coded as the LCS-Priority octet in 3GPP TS 29.002
497 de_bmaple_lcs_qos(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_)
499 guint64 verticalCoordIndicator, velocityRequested, horizontalAccuracyIndicator, verticalAccuracyIndicator;
502 bitCount = offset << 3;
504 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_spare, tvb, bitCount, 6, FALSE);
505 bitCount = bitCount + 6;
507 /* Extract Velocity requested element */
508 proto_tree_add_bits_ret_val(tree, hf_gsm_bssmap_le_velocity_requested, tvb, bitCount, 1, &velocityRequested, FALSE);
511 /* Extract vertical coordinator element */
512 proto_tree_add_bits_ret_val(tree, hf_gsm_bssmap_le_vertical_coordinate_indicator, tvb, bitCount, 1, &verticalCoordIndicator, FALSE);
515 /* Extract horizontal accuracy element */
516 proto_tree_add_bits_ret_val(tree, hf_gsm_bssmap_le_horizontal_accuracy_indicator, tvb, bitCount, 1, &horizontalAccuracyIndicator, FALSE);
519 if(horizontalAccuracyIndicator == 1)
521 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_horizontal_accuracy, tvb, bitCount, 7, FALSE);
522 bitCount = bitCount + 7;
526 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_spare, tvb, bitCount, 7, FALSE);
527 bitCount = bitCount + 7;
530 /* Extract vertical accuracy element */
531 proto_tree_add_bits_ret_val(tree, hf_gsm_bssmap_le_vertical_accuracy_indicator, tvb, bitCount, 1, &verticalAccuracyIndicator, FALSE);
534 if(verticalAccuracyIndicator == 1)
536 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_vertical_accuracy, tvb, bitCount, 7, FALSE);
537 bitCount = bitCount + 7;
541 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_spare, tvb, bitCount, 7, FALSE);
542 bitCount = bitCount + 7;
545 proto_tree_add_bits_item(tree, hf_gsm_bssmap_le_response_time_category, tvb, bitCount, 2, FALSE);
546 bitCount = bitCount + 2;
554 * 10.18 Location Type
557 * 10.19 Network Element Identity
560 * 10.20 Positioning Data
563 de_bmaple_pos_dta(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_)
568 curr_offset = offset;
570 data_tvb = tvb_new_subset(tvb, curr_offset, len, len);
571 dissect_geographical_description(data_tvb, g_pinfo, tree);
576 * 10.21 Return Error Request
579 * 10.22 Return Error Cause
591 * 10.26 LCS Capability
592 * coded as the value part of the LCS Capability
593 * information element in 3GPP TS 48.018, not including
594 * 3GPP TS 48.018 IEI and length indicator
596 /* Dissector for the LCS Capability element */
598 be_lcs_capability(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_)
600 /* Extract the LCS Capability element and add to protocol tree */
601 proto_tree_add_text(tree, tvb, offset, len, "Not decoded yet");
606 * 10.27 Packet Measurement Report
607 * coded as the Packet Measurement Report
608 * message or the Packet Enhanced Measurement Report message
609 * starting with the 6-bit MESSAGE_TYPE (see clause 11 in
610 * 3GPP TS 44.060) and ending with the Non-distribution contents
611 * (i.e. the RLC/MAC padding bits are not included). The end of the
612 * message is padded with 0-bits to the nearest octet boundary.
614 /* Dissector for the Packet Measurement Report element */
616 be_packet_meas_rep(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_)
618 /* Extract the Packet Measurement Report element and add to protocol tree */
619 proto_tree_add_text(tree, tvb, offset, len, "Not decoded yet");
625 * 10.28 Cell Identity List
626 * coded as the value part of the Cell Identity List IE
627 * defined in 3GPP TS 48.071.
629 /* Dissector for the Measured Cell Identity List element */
631 be_measured_cell_identity(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_)
633 /* Extract the Measured Cell Identity List element and add to protocol tree */
634 proto_tree_add_text(tree, tvb, offset, len, "Not decoded yet");
641 * IMEI coded as the value part of the Mobile Identity IE defined in
642 * 3GPP TS 24.008 (NOTE 1)
643 * NOTE 1: The Type of identity field in the Mobile Identity IE shall
644 * be ignored by the receiver.
647 * 10.30 Velocity Data
648 * contains an octet sequence identical to that for Description of
649 * Velocity defined in 3GPP TS 23.032.
652 * 10.31 Requested GANSS Assistance Data
655 * 10.32 GANSS Positioning Data
658 * 10.33 GANSS Location Type
662 #define NUM_GSM_BSSMAP_LE_MSG (sizeof(gsm_bssmap_le_msg_strings)/sizeof(value_string))
663 static gint ett_gsm_bssmap_le_msg[NUM_GSM_BSSMAP_LE_MSG];
666 This enum is defined in packet-gsm_a_common.h to
667 make it possible to use element dissecton from this dissector
670 It is shown here as a comment for easier reference.
672 Note this enum must be of the same size as the element decoding list below
676 DE_BMAPLE_LCSQOS, / 10.16 LCS QoS /
677 DE_BMAPLE_LCS_PRIO, / LCS Priority /
678 DE_BMAPLE_LOC_TYPE, / 10.18 Location Type /
679 DE_BMAPLE_GANSS_LOC_TYPE, / GANSS Location Type /
680 DE_BMAPLE_GEO_LOC, / 10.9 Geographic Location /
681 DE_BMAPLE_POS_DATA, / 10.20 Positioning Data /
682 DE_BMAPLE_GANSS_POS_DATA, / GANSS Positioning Data /
683 DE_BMAPLE_VELOC_DATA, / Velocity Data /
684 DE_BMAPLE_LCS_CAUSE, / 10.13 LCS Cause /
685 DE_BMAPLE_LCS_CLIENT_TYPE, / LCS Client Type /
686 DE_BMAPLE_APDU, / 10.3 APDU /
687 DE_BMAPLE_NETWORK_ELEM_ID, / Network Element Identity /
688 DE_BMAPLE_REQ_GPS_ASSIST_D, / 10.10 Requested GPS Assistance Data /
689 DE_BMAPLE_REQ_GNSS_ASSIST_D,/ Requested GANSS Assistance Data /
690 DE_BMAPLE_DECIPH_KEYS, / 10.8 Deciphering Keys /
691 DE_BMAPLE_RETURN_ERROR_REQ, / Return Error Request /
692 DE_BMAPLE_RETURN_ERROR_CAUSE, / Return Error Cause /
693 DE_BMAPLE_SEGMENTATION, / Segmentation /
694 DE_BMAPLE_CLASSMARK_TYPE_3, / 10.7 Classmark Information Type 3 /
695 DE_BMAPLE_CAUSE, / 10.4 Cause /
696 DE_BMAPLE_CELL_IDENTIFIER, / 10.5 Cell Identifier /
697 DE_BMAPLE_CHOSEN_CHANNEL, / 10.6 Chosen Channel /
698 DE_BMAPLE_IMSI, / 10.11 IMSI /
699 DE_BMAPLE_RES1, / Reserved /
700 DE_BMAPLE_RES2, / Reserved /
701 DE_BMAPLE_RES3, / Reserved /
702 DE_BMAPLE_LCS_CAPABILITY, / LCS Capability /
703 DE_BMAPLE_PACKET_MEAS_REP, / Packet Measurement Report /
704 DE_BMAPLE_MEAS_CELL_ID, / Measured Cell Identity /
705 DE_BMAPLE_IMEI, / IMEI /
708 bssmap_le_elem_idx_t;
712 guint16 (*bssmap_le_elem_fcn[])(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string, int string_len) = {
713 /* NOTE: The null types below are defined elsewhere. i.e in packet-gsm_a_bssmap.c */
714 de_bmaple_lcs_qos, /* 10.16 LCS QoS */
715 NULL, /* LCS Priority */
716 NULL, /* 10.18 Location Type */
717 be_ganss_loc_type, /* GANSS Location Type */
718 NULL, /* 10.9 Geographic Location */
719 de_bmaple_pos_dta, /* 10.20 Positioning Data */
720 be_ganss_pos_dta, /* GANSS Positioning Data */
721 NULL, /* Velocity Data */
722 de_bmaple_cause, /* 10.13 LCS Cause */
723 de_bmaple_client, /* LCS Client Type */
724 de_bmaple_apdu, /* APDU */
725 NULL, /* Network Element Identity */
726 de_bmaple_req_gps_ass_data, /* 10.10 Requested GPS Assistance Data */
727 be_ganss_ass_dta, /* Requested GANSS Assistance Data */
728 de_bmaple_decihp_keys, /* 10.8 Deciphering Keys */
729 NULL, /* Return Error Request */
730 NULL, /* Return Error Cause */
731 NULL, /* Segmentation */
732 NULL, /* 10.7 Classmark Information Type 3 */
734 NULL, /* Cell Identifier */
735 NULL, /* 10.6 Chosen Channel */
736 de_mid, /* 10.11 IMSI */
740 be_lcs_capability, /* LCS Capability */
741 be_packet_meas_rep, /* Packet Measurement Report */
742 be_measured_cell_identity, /* Measured Cell Identity List */
743 de_mid, /* IMEI (use same dissector as IMSI) */
750 * 9.1 PERFORM LOCATION REQUEST
753 bssmap_le_perf_loc_request(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len)
759 curr_offset = offset;
762 /* Location Type 9.1.1 M 3-n */
763 ELEM_MAND_TLV(gsm_bssmap_elem_strings[BE_LOC_TYPE].value, GSM_A_PDU_TYPE_BSSMAP, BE_LOC_TYPE, NULL)
764 /* Cell Identifier 9.1.2 O 5-10 */
765 ELEM_MAND_TLV(gsm_bssmap_elem_strings[BE_CELL_ID].value, GSM_A_PDU_TYPE_BSSMAP, BE_CELL_ID, NULL);
766 /* Classmark Information Type 3 9.1.3 O 3-14 */
767 ELEM_OPT_TLV(gsm_bssmap_elem_strings[BE_CM_INFO_3].value, GSM_A_PDU_TYPE_BSSMAP, BE_CM_INFO_3, NULL);
768 /* LCS Client Type 9.1.4 C (note 3) 3-n */
769 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_LCS_CLIENT_TYPE].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_LCS_CLIENT_TYPE, NULL);
770 /* Chosen Channel 9.1.5 O 2 */
771 ELEM_OPT_TV(gsm_bssmap_elem_strings[BE_CHOSEN_CHAN].value, GSM_A_PDU_TYPE_BSSMAP, BE_CHOSEN_CHAN, NULL);
772 /* LCS Priority 9.1.6 O 3-n */
773 ELEM_OPT_TLV(gsm_bssmap_elem_strings[BE_LCS_PRIO].value, GSM_A_PDU_TYPE_BSSMAP, BE_LCS_PRIO, NULL);
774 /* LCS QoS 9.1.6a C (note 1) 3-n */
775 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_LCSQOS].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_LCSQOS, NULL);
776 /* GPS Assistance Data 9.1.7 C (note 2) 3-n */
777 ELEM_OPT_TLV(gsm_bssmap_elem_strings[BE_GPS_ASSIST_DATA].value, GSM_A_PDU_TYPE_BSSMAP, BE_GPS_ASSIST_DATA, NULL);
778 /* APDU 9.1.8 O 3-n */
779 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_APDU].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_APDU, NULL);
780 /* LCS Capability 9.1.9 O */
781 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_LCS_CAPABILITY].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_LCS_CAPABILITY, NULL);
782 /* Packet Measurement Report 9.1.10 O*/
783 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_PACKET_MEAS_REP].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_PACKET_MEAS_REP, NULL);
784 /* Measured Cell Identity List 9.1.11 O*/
785 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_MEAS_CELL_ID].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_MEAS_CELL_ID, NULL);
786 /* IMSI 9.1.12 O (note 4) 5-10 */
787 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_IMSI].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_IMSI, NULL);
788 /* IMEI 9.1.13 O (note 4) 10 (use same decode as IMSI) */
789 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_IMEI].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_IMEI, NULL);
790 /* GANSS Location Type 9.1.14 C 3 */
791 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_GANSS_LOC_TYPE].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_GANSS_LOC_TYPE, NULL);
792 /* GANSS Assistance Data 9.1.15 C (note 5) 3-n */
793 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_REQ_GNSS_ASSIST_D].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_REQ_GNSS_ASSIST_D, NULL);
795 EXTRANEOUS_DATA_CHECK(curr_len, 0);
800 * 9.2 PERFORM LOCATION RESPONSE
803 bssmap_le_perf_loc_resp(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len)
809 curr_offset = offset;
812 /* Location Estimate 9.2.1 C (note 1) 3-n */
813 ELEM_OPT_TLV(gsm_bssmap_elem_strings[BE_LOC_EST].value, BSSAP_PDU_TYPE_BSSMAP, BE_LOC_EST, NULL);
814 /* Positioning Data 9.2.2 O 3-n */
815 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_POS_DATA].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_POS_DATA, NULL);
816 /* Deciphering Keys 9.2.3 C (note 2) 3-n */
817 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_DECIPH_KEYS].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_DECIPH_KEYS, NULL);
818 /* LCS Cause 9.2.4 C (note 3) 3-n */
819 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_LCS_CAUSE].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_LCS_CAUSE, NULL);
820 /* Velocity Estimate 9.2.5 O 3-n */
821 ELEM_OPT_TLV(gsm_bssmap_elem_strings[BE_VEL_EST].value, BSSAP_PDU_TYPE_BSSMAP, BE_VEL_EST, NULL);
822 /* GANSS Positioning Data 9.2.6 O 3-n */
823 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_GANSS_POS_DATA].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_GANSS_POS_DATA, NULL);
825 EXTRANEOUS_DATA_CHECK(curr_len, 0);
829 * 9.8 CONNECTION ORIENTED INFORMATION
832 bssmap_le_connection_oriented(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len)
838 curr_offset = offset;
841 /* APDU 9.8.1 M 3-n */
842 ELEM_MAND_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_APDU].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_APDU, NULL);
843 /* Segmentation 9.8.2 */
844 ELEM_OPT_TLV(gsm_bssmap_elem_strings[BE_SEG].value, BSSAP_PDU_TYPE_BSSMAP, BE_SEG, NULL);
846 EXTRANEOUS_DATA_CHECK(curr_len, 0);
850 * 9.9 CONNECTIONLESS INFORMATION
852 Network Element Identity (source) 3.2.2.69 Both M 3-n
853 Network Element Identity (target) 3.2.2.69 Both M 3-n
854 APDU 3.2.2.68 Both M 3-n
855 Segmentation 3.2,2,74 Both C (note 1) 5
856 Return Error Request 3.2.2.72 Both C (note 2) 3-n
857 Return Error Cause 3.2.2.73 Both C (note 3) 3-n
861 * 9.11 RESET ACKNOWLEDGE
866 * 9.12 PERFORM LOCATION INFORMATION
869 bssmap_le_perf_loc_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len)
875 curr_offset = offset;
878 /* Cell Identifier 9.12.1 M */
879 ELEM_MAND_TLV(gsm_bssmap_elem_strings[BE_CELL_ID].value, GSM_A_PDU_TYPE_BSSMAP, BE_CELL_ID, NULL);
880 /* APDU 9.1.8 O 3-n */
881 ELEM_OPT_TLV(gsm_bssmap_le_elem_strings[DE_BMAPLE_APDU].value, GSM_PDU_TYPE_BSSMAP_LE, DE_BMAPLE_APDU, NULL);
883 EXTRANEOUS_DATA_CHECK(curr_len, 0);
886 static void (*bssmap_le_msg_fcn[])(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len) = {
892 bssmap_le_perf_loc_request, /* Perform Location Request */
893 bssmap_le_perf_loc_resp, /* Perform Location Response */
894 bssmap_perf_loc_abort, /* Abort */
895 bssmap_le_perf_loc_info, /* Perform Location Information */
896 bssmap_le_connection_oriented, /* Connection Oriented Information */
897 NULL, /* Connectionless Information */
898 bssmap_reset, /* Reset */
899 NULL, /* Reset Acknowledge */
905 dissect_bssmap_le(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
907 static gsm_a_tap_rec_t tap_rec[4];
908 static gsm_a_tap_rec_t *tap_p;
909 static guint tap_current=0;
911 guint32 offset, saved_offset;
914 proto_item *bssmap_le_item = NULL;
915 proto_tree *bssmap_le_tree = NULL;
917 sccp_msg_info_t* sccp_msg_p;
919 sccp_msg_p = pinfo->sccp_info;
921 if (!(sccp_msg_p && sccp_msg_p->data.co.assoc)) {
925 col_append_str(pinfo->cinfo, COL_INFO, "(BSSMAP LE) ");
928 * set tap record pointer
931 if (tap_current >= 4)
935 tap_p = &tap_rec[tap_current];
939 saved_offset = offset;
944 len = tvb_length(tvb);
947 * add BSSMAP message name
949 oct = tvb_get_guint8(tvb, offset++);
951 str = match_strval_idx((guint32) oct, gsm_bssmap_le_msg_strings, &idx);
953 if (sccp_msg_p && !sccp_msg_p->data.co.label) {
954 sccp_msg_p->data.co.label = se_strdup(val_to_str((guint32) oct, gsm_bssmap_le_msg_strings, "BSSMAP LE(0x%02x)"));
958 * create the protocol tree
963 proto_tree_add_protocol_format(tree, proto_bssmap_le, tvb, 0, len,
964 "Lb - I/F BSSMAP LE - Unknown BSSMAP Message Type (0x%02x)",
967 bssmap_le_tree = proto_item_add_subtree(bssmap_le_item, ett_bssmap_le_msg);
972 proto_tree_add_protocol_format(tree, proto_bssmap_le, tvb, 0, -1,
973 "Lb - I/F BSSMAP LE - %s",
976 bssmap_le_tree = proto_item_add_subtree(bssmap_le_item, ett_gsm_bssmap_le_msg[idx]);
978 if (check_col(pinfo->cinfo, COL_INFO))
980 col_append_fstr(pinfo->cinfo, COL_INFO, "%s ", str);
984 * add BSSMAP message name
986 proto_tree_add_uint_format(bssmap_le_tree, hf_gsm_bssmap_le_msg_type,
987 tvb, saved_offset, 1, oct, "Message Type %s",str);
990 tap_p->pdu_type = BSSAP_PDU_TYPE_BSSMAP;
991 tap_p->message_type = oct;
993 tap_queue_packet(gsm_a_tap, pinfo, tap_p);
995 if (str == NULL) return;
997 if (offset >= len) return;
1002 if (bssmap_le_msg_fcn[idx] == NULL)
1004 proto_tree_add_text(bssmap_le_tree,
1005 tvb, offset, len - offset,
1006 "Message Elements");
1010 (*bssmap_le_msg_fcn[idx])(tvb, bssmap_le_tree, pinfo, offset, len - offset);
1014 /* Register the protocol with Wireshark */
1016 proto_register_gsm_bssmap_le(void)
1021 /* Setup list of header fields */
1022 static hf_register_info hf[] = {
1023 { &hf_gsm_bssmap_le_msg_type,
1024 { "BSSMAP LE Message Type", "bssmap_le.msgtype",
1025 FT_UINT8, BASE_HEX, VALS(gsm_bssmap_le_msg_strings), 0x0,
1028 { &hf_gsm_bssmap_le_elem_id,
1029 { "Element ID", "bssmap_le.elem_id",
1030 FT_UINT8, BASE_DEC, NULL, 0,
1033 { &hf_gsm_bssmap_le_apdu_protocol_id,
1034 { "Protocol ID", "bssmap_le.apdu_protocol_id",
1035 FT_UINT8, BASE_DEC, VALS(gsm_apdu_protocol_id_strings), 0x0,
1036 "APDU embedded protocol id", HFILL }
1038 { &hf_gsm_bssmap_le_spare,
1039 { "Spare", "gsm_bssmap_le.spare",
1040 FT_UINT8, BASE_HEX, NULL, 0x0,
1043 { &hf_gsm_bssmap_le_ciphering_key_flag,
1044 { "Ciphering Key Flag", "gsm_bssmap_le.decipheringKeys.flag",
1045 FT_UINT8, BASE_DEC, NULL, 0x0,
1048 { &hf_gsm_bssmap_le_current_deciphering_key_value,
1049 { "Current Deciphering Key Value", "gsm_bssmap_le.decipheringKeys.current",
1050 FT_UINT8, BASE_DEC, NULL, 0x0, NULL,
1053 { &hf_gsm_bssmap_le_next_deciphering_key_value,
1054 { "Next Deciphering Key Value", "gsm_bssmap_le.decipheringKeys.next",
1055 FT_UINT8, BASE_DEC, NULL, 0x0,
1058 { &hf_gsm_bssmap_le_acq_ass,
1059 { "Acquisition Assistance", "bssap.acq_ass",
1060 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x80,
1063 { &hf_gsm_bssmap_le_ref_time,
1064 { "Reference Time", "bssap.ref_time",
1065 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x40,
1068 { &hf_gsm_bssmap_le_ref_loc,
1069 { "Reference Location", "bssap.ref_loc",
1070 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x20,
1073 { &hf_gsm_bssmap_le_dgps_corr,
1074 { "DGPS Corrections", "bssap.gps_corr",
1075 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x08,
1078 { &hf_gsm_bssmap_le_nav_mod,
1079 { "Navigation Model", "bssap.nav_mod",
1080 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x10,
1083 { &hf_gsm_bssmap_le_iono_mod,
1084 { "Ionospheric Model", "bssap.iono_mod",
1085 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x04,
1088 { &hf_gsm_bssmap_le_utc_mod,
1089 { "UTC Model", "bssap.utc_mod",
1090 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x02,
1093 { &hf_gsm_bssmap_le_almanac,
1094 { "Almanac", "bssap.almanac",
1095 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x01,
1098 { &hf_gsm_bssmap_le_ephemeris_ext_chk,
1099 { "Ephemeris Extension Check", "bssap.ephemeris_ext_chk",
1100 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x04,
1103 { &hf_gsm_bssmap_le_ephemeris_ext,
1104 { "Ephemeris Extension", "bssap.ephemeris_ext",
1105 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x02,
1108 { &hf_gsm_bssmap_le_real_time_int,
1109 { "Real-Time Integrity", "bssap.real_time_int",
1110 FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x01,
1113 { &hf_gsm_bssmap_le_lcs_cause_value,
1114 { "Cause Value", "gsm_bssmap_le.lcsCauseValue",
1115 FT_UINT8, BASE_HEX, VALS(bssmap_le_lcs_cause_values), 0x0,
1118 { &hf_gsm_bssmap_le_diagnostic_value,
1119 { "Diagnostic Value", "gsm_bssmap_le.diagnosticValue",
1120 FT_UINT8, BASE_HEX, VALS(bssmap_le_position_method_failure_diagnostic_vals), 0x0,
1123 { &hf_gsm_bssmap_le_client_category,
1124 { "Client Category", "gsm_bssmap_le.lcsClientType.clientCategory",
1125 FT_UINT8, BASE_HEX, VALS(bssmap_le_client_category), 0x0,
1128 { &hf_gsm_bssmap_le_client_subtype,
1129 { "Client Subtype", "gsm_bssmap_le.lcsClientType.clientSubtype",
1130 FT_UINT8, BASE_HEX, VALS(bssmap_le_client_subtype), 0x0,
1133 { &hf_gsm_bssmap_le_velocity_requested,
1134 { "Velocity Requested", "gsm_bssmap_le.lcsQos.velocityRequested",
1135 FT_UINT8, BASE_HEX, VALS(bssmap_le_velocity_requested_vals), 0x0,
1138 { &hf_gsm_bssmap_le_vertical_coordinate_indicator,
1139 { "Vertical Coordinate Indicator", "gsm_bssmap_le.lcsQos.verticalCoordinateIndicator",
1140 FT_UINT8, BASE_HEX, VALS(bssmap_le_vertical_coordinate_indicator_vals), 0x0,
1143 { &hf_gsm_bssmap_le_horizontal_accuracy_indicator,
1144 { "Horizontal Accuracy Indicator", "gsm_bssmap_le.lcsQos.horizontalAccuracyIndicator",
1145 FT_UINT8, BASE_HEX, VALS(bssmap_le_horizontal_accuracy_indicator_vals), 0x0,
1148 { &hf_gsm_bssmap_le_horizontal_accuracy,
1149 { "Horizontal Accuracy", "gsm_bssmap_le.lcsQos.horizontalAccuracy",
1150 FT_UINT8, BASE_HEX, NULL, 0x0,
1153 { &hf_gsm_bssmap_le_vertical_accuracy,
1154 { "Vertical Accuracy", "gsm_bssmap_le.lcsQos.verticalAccuracy",
1155 FT_UINT8, BASE_HEX, NULL, 0x0,
1158 { &hf_gsm_bssmap_le_vertical_accuracy_indicator,
1159 { "Vertical Accuracy Indicator", "gsm_bssmap_le.lcsQos.verticalAccuracyIndicator",
1160 FT_UINT8, BASE_HEX, VALS(bssmap_le_vertical_accuracy_indicator_vals), 0x0,
1163 { &hf_gsm_bssmap_le_response_time_category,
1164 { "Response Time Category", "gsm_bssmap_le.lcsQos.responseTimeCategory",
1165 FT_UINT8, BASE_HEX, VALS(bssmap_le_response_time_definitions_vals), 0x0,
1170 /* Setup protocol subtree array */
1171 #define NUM_INDIVIDUAL_ELEMS 1
1172 gint *ett[NUM_INDIVIDUAL_ELEMS + NUM_GSM_BSSMAP_LE_MSG +
1173 NUM_GSM_BSSMAP_LE_ELEM];
1175 ett[0] = &ett_bssmap_le_msg;
1177 last_offset = NUM_INDIVIDUAL_ELEMS;
1179 for (i=0; i < NUM_GSM_BSSMAP_LE_MSG; i++, last_offset++)
1181 ett_gsm_bssmap_le_msg[i] = -1;
1182 ett[last_offset] = &ett_gsm_bssmap_le_msg[i];
1185 for (i=0; i < NUM_GSM_BSSMAP_LE_ELEM; i++, last_offset++)
1187 ett_gsm_bssmap_le_elem[i] = -1;
1188 ett[last_offset] = &ett_gsm_bssmap_le_elem[i];
1191 /* Register the protocol name and description */
1194 proto_register_protocol("Lb-I/F BSSMAP LE", "GSM BSSMAP LE", "gsm_bssmap_le");
1196 proto_register_field_array(proto_bssmap_le, hf, array_length(hf));
1198 proto_register_subtree_array(ett, array_length(ett));
1200 register_dissector("gsm_bssmap_le", dissect_bssmap_le, proto_bssmap_le);
1204 proto_reg_handoff_gsm_bssmap_le(void)
1206 dissector_handle_t bssmap_le_handle;
1208 bssmap_le_handle = find_dissector("gsm_bssmap_le");
1210 dissector_add_uint("bssap.pdu_type", BSSAP_PDU_TYPE_BSSMAP, bssmap_le_handle);
1212 gsm_bsslap_handle = find_dissector("gsm_bsslap");