2 * WiMax MAC Management RNG-RSP Message decoder
4 * Copyright (c) 2007 by Intel Corporation.
6 * Author: John R. Underwood <junderx@yahoo.com>
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1999 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.
36 #include <epan/packet.h>
38 #include "wimax_tlv.h"
39 #include "wimax_mac.h"
40 #include "wimax_utils.h"
42 extern gint proto_mac_mgmt_msg_rng_req_decoder;
43 extern gboolean include_cor2_changes;
45 /* external reference */
46 extern void dissect_power_saving_class(proto_tree *rng_req_tree, gint tlv_type, tvbuff_t *tvb, guint compound_tlv_len, packet_info *pinfo, guint offset);
47 extern void dissect_mac_mgmt_msg_sbc_rsp_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
48 extern void dissect_mac_mgmt_msg_reg_rsp_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
50 static gint proto_mac_mgmt_msg_rng_rsp_decoder = -1;
51 static gint ett_mac_mgmt_msg_rng_rsp_decoder = -1;
52 static gint ett_rng_rsp_message_tree = -1;
55 static gint hf_rng_rsp_message_type = -1;
56 static gint hf_rng_req_reserved = -1;
57 static gint hf_rng_rsp_ul_channel_id = -1;
58 static gint hf_rng_rsp_timing_adjust = -1;
59 static gint hf_rng_rsp_power_level_adjust = -1;
60 static gint hf_rng_rsp_offset_freq_adjust = -1;
61 static gint hf_rng_rsp_ranging_status = -1;
62 static gint hf_rng_rsp_dl_freq_override = -1;
63 static gint hf_rng_rsp_ul_chan_id_override = -1;
64 static gint hf_rng_rsp_dl_operational_burst_profile = -1;
65 static gint hf_rng_rsp_dl_operational_burst_profile_diuc = -1;
66 static gint hf_rng_rsp_dl_operational_burst_profile_ccc = -1;
67 static gint hf_rng_rsp_ss_mac_address = -1;
68 static gint hf_rng_rsp_basic_cid = -1;
69 static gint hf_rng_rsp_primary_mgmt_cid = -1;
70 static gint hf_rng_rsp_broadcast = -1;
71 static gint hf_rng_rsp_frame_number = -1;
72 static gint hf_rng_rsp_opportunity_number = -1;
73 static gint hf_rng_rsp_service_level_prediction = -1;
74 static gint hf_rng_rsp_resource_retain_flag = -1;
75 static gint hf_rng_rsp_ho_process_optimization = -1;
76 static gint hf_rng_rsp_ho_process_optimization_0 = -1;
77 static gint hf_rng_rsp_ho_process_optimization_1_2 = -1;
78 static gint hf_rng_rsp_ho_process_optimization_3 = -1;
79 static gint hf_rng_rsp_ho_process_optimization_4 = -1;
80 static gint hf_rng_rsp_ho_process_optimization_5 = -1;
81 static gint hf_rng_rsp_ho_process_optimization_6 = -1;
82 static gint hf_rng_rsp_ho_process_optimization_7 = -1;
83 static gint hf_rng_rsp_ho_process_optimization_8 = -1;
84 static gint hf_rng_rsp_ho_process_optimization_9 = -1;
85 static gint hf_rng_rsp_ho_process_optimization_10 = -1;
86 static gint hf_rng_rsp_ho_process_optimization_11 = -1;
87 static gint hf_rng_rsp_ho_process_optimization_12 = -1;
88 static gint hf_rng_rsp_ho_process_optimization_13 = -1;
89 static gint hf_rng_rsp_ho_process_optimization_14 = -1;
90 static gint hf_rng_rsp_ho_process_optimization_15 = -1;
91 /* Added the following to help implement RNG-RSP message encoding 33 (Table 367 in IEEE 802.16e-2007) */
92 static gint hf_rng_rsp_dl_op_burst_profile_ofdma = -1;
93 static gint hf_rng_rsp_least_robust_diuc = -1;
94 static gint hf_rng_rsp_repetition_coding_indication = -1;
95 static gint hf_rng_rsp_config_change_count_of_dcd = -1;
96 /* Added the following to help implement RNG-RSP message encoding 22 (Table 367 in IEEE 802.16e-2007) */
97 static gint hf_rng_rsp_ho_id = -1;
98 static gint hf_rng_rsp_location_update_response = -1;
99 /* Added the following to help implement RNG-RSP message encoding 24 (Table 367 in IEEE 802.16e-2007) */
100 static gint hf_rng_rsp_paging_information = -1;
101 static gint hf_rng_rsp_paging_cycle = -1;
102 static gint hf_rng_rsp_paging_offset = -1;
103 static gint hf_rng_rsp_paging_group_id = -1;
104 static gint hf_rng_rsp_bs_random = -1;
105 static gint hf_rng_rsp_akid = -1;
106 static gint hf_rng_rsp_ranging_subchan = -1;
107 static gint hf_rng_rsp_time_symbol_reference = -1;
108 static gint hf_rng_rsp_subchannel_reference = -1;
109 static gint hf_rng_rsp_ranging_code_index = -1;
110 static gint hf_rng_rsp_frame_number2 = -1;
111 static gint hf_tlv_type = -1;
112 static gint hf_tlv_value = -1;
113 static gint hf_rng_invalid_tlv = -1;
115 /* STRING RESOURCES */
117 static const true_false_string tfs_rng_rsp_aas_broadcast = {
118 "SS shall not issue contention-based Bandwidth Request",
119 "SS may issue contention-based Bandwidth Request"
122 static const true_false_string tfs_rng_rsp_resource_retain_flag = {
123 "Retained by the BS",
127 static const value_string vals_rng_rsp_ranging_status[] = {
135 static const value_string vals_rng_rsp_level_of_service[] = {
136 {0, "No service possible for this MS"},
137 {1, "Some service is available for one or"
138 " several service flows authorized for the MS"},
139 {2, "For each authorized service flow, a MAC"
140 " connection can be established with QoS"
141 " specified by the AuthorizedQoSParamSet"},
142 {3, "No service level prediction available"},
146 static const value_string vals_rng_rsp_ho_process_optimization_0[] = {
147 {0, "SBC-REQ management messages during current re-entry"
148 " processing required"},
149 {1, "Omit SBC-REQ management messages during current"
150 " re-entry processing"},
154 static const value_string vals_rng_rsp_ho_process_optimization_1_2[] = {
155 {0, "Perform re-authentication and SA-TEK 3-way handshake."
156 " BS should include SA-TEK-Update TLV in the"
157 " SA-TEK-Response message. In addition, the RNG-RSP"
158 " message does not include SA-TEK-Update TLV or SA"
159 " Challenge Tuple TLV."},
160 {1, "SA-TEK-Update TLV is included in the RNG-RSP message."
161 " In this case, SA-TEK 3-way handshake is avoided and"
162 " SA Challenge Tuple TLV shall not be included in the"
163 " RNG-RSP message."},
165 {3, "Re-authentication and SA-TEK 3-way handshake is not"
166 " performed. The RNG-RSP message does not include"
167 " SA-TEK-Update TLV nor SA Challenge Tuple TLV. All the"
168 " TEKs received from the serving BS are reused"},
172 static const value_string vals_rng_rsp_ho_process_optimization_3[] = {
173 {0, "Network Address Acquisition management messages during"
174 " current reentry processing required"},
175 {1, "Omit Network Address Acquisition management messages"
176 " during current reentry processing"},
180 static const value_string vals_rng_rsp_ho_process_optimization_4[] = {
181 {0, "Time of Day Acquisition management messages during"
182 " current reentry processing required"},
183 {1, "Omit Time of Day Acquisition management messages"
184 " during current reentry processing"},
188 static const value_string vals_rng_rsp_ho_process_optimization_5[] = {
189 {0, "TFTP management messages during current re-entry"
190 " processing required"},
191 {1, "Omit TFTP management messages during current re-entry"
196 static const value_string vals_rng_rsp_ho_process_optimization_6[] = {
197 {0, "Full service and operational state transfer or sharing"
198 " between Serving BS and Target BS required"},
199 {1, "Omit Full service and operational state transfer or"
200 " sharing between Serving BS and Target BS"},
204 static const value_string vals_rng_rsp_ho_process_optimization_7[] = {
205 {0, "REG-REQ management message during current re-entry"
206 " processing required"},
207 {1, "Omit REG-REQ management message during current re-entry"
212 static const value_string vals_rng_rsp_ho_process_optimization_8[] = {
213 {0, "BS shall send not send an unsolicited SBC-RSP"
214 " management message"},
215 {1, "BS shall send an unsolicited SBC-RSP management message"},
219 static const value_string vals_rng_rsp_ho_process_optimization_9[] = {
220 {0, "No post-HO re-entry MS DL data pending at target BS"},
221 {1, "post-HO re-entry MS DL data pending at target BS"},
225 static const value_string vals_rng_rsp_ho_process_optimization_10[] = {
226 {0, "BS shall not send an unsolicited REG-RSP management"
228 {1, "BS shall send an unsolicited REG-RSP management message"},
232 static const value_string vals_rng_rsp_ho_process_optimization_11[] = {
233 {0, "(Target) BS does not support virtual SDU SN"},
234 {1, "(Target} BS supports virtual SDU SN"},
238 static const value_string vals_rng_rsp_ho_process_optimization_12[] = {
239 {0, "MS shall not send a notification of MS's successful"
240 " re-entry registration"},
241 {1, "MS shall send a notification of MS's successful"
242 " re-entry registration"},
246 static const value_string vals_rng_rsp_ho_process_optimization_13[] = {
247 {0, "MS shall not trigger a higher layer protocol required"
248 " to refresh its traffic IP address"},
249 {1, "MS shall trigger a higher layer protocol required to"
250 " refresh its traffic IP address"},
254 static const value_string vals_rng_rsp_repetition_coding_indication[] = {
255 {0, "No repetition coding"},
256 {1, "Repetition coding of 2"},
257 {2, "Repetition coding of 4"},
258 {3, "Repetition coding of 6"},
262 static const value_string vals_rng_rsp_location_update_response[] = {
263 {0, "Success of Location Update"},
264 {1, "Failure of Location Update"},
265 {3, "Success of location update and DL traffic pending"},
271 /* Decode RNG-RSP messages. */
272 void dissect_mac_mgmt_msg_rng_rsp_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
274 proto_item *ranging_status_item = NULL;
275 proto_item *dl_freq_override_item = NULL;
276 proto_item *ss_mac_address_item = NULL;
277 proto_item *frame_number_item = NULL;
278 proto_item *opportunity_number_item = NULL;
282 guint tvb_len, payload_type;
283 proto_item *rng_rsp_item = NULL;
284 proto_item *tlv_item = NULL;
285 proto_tree *rng_rsp_tree = NULL;
286 proto_tree *sub_tree = NULL;
287 proto_tree *tlv_tree = NULL;
291 guint this_offset = 0;
292 tlv_info_t sub_tlv_info;
295 guint sub_tlv_offset;
297 float power_level_adjust;
298 gint offset_freq_adjust;
300 /* Ensure the right payload type */
301 payload_type = tvb_get_guint8(tvb, offset);
302 if(payload_type != MAC_MGMT_MSG_RNG_RSP)
308 { /* we are being asked for details */
310 /* Get the tvb reported length */
311 tvb_len = tvb_reported_length(tvb);
312 /* display MAC payload type RNG-RSP */
313 rng_rsp_item = proto_tree_add_protocol_format(tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, offset, tvb_len, "MAC Management Message, RNG-RSP (5)");
314 /* add MAC RNG-RSP subtree */
315 rng_rsp_tree = proto_item_add_subtree(rng_rsp_item, ett_mac_mgmt_msg_rng_rsp_decoder);
316 /* display the Message Type */
317 proto_tree_add_item(rng_rsp_tree, hf_rng_rsp_message_type, tvb, offset, 1, FALSE);
318 proto_tree_add_item(rng_rsp_tree, hf_rng_req_reserved, tvb, 1, 1, FALSE);
321 while(offset < tvb_len)
323 /* Get the TLV data. */
324 init_tlv_info(&tlv_info, tvb, offset);
325 /* get the TLV type */
326 tlv_type = get_tlv_type(&tlv_info);
327 /* get the TLV length */
328 tlv_len = get_tlv_length(&tlv_info);
329 if(tlv_type == -1 || tlv_len > MAX_TLV_LEN || tlv_len < 1)
330 { /* invalid tlv info */
331 if(check_col(pinfo->cinfo, COL_INFO))
333 col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "RNG-RSP TLV error");
335 proto_tree_add_item(rng_rsp_tree, hf_rng_invalid_tlv, tvb, offset, (tvb_len - offset), FALSE);
338 /* get the offset to the TLV data */
339 tlv_offset = offset + get_tlv_value_offset(&tlv_info);
342 case RNG_RSP_TIMING_ADJUST: {
343 sub_tree = add_protocol_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "Timing Adjust (%u byte(s))", tlv_len);
344 timing_adjust = (float)(gint32)tvb_get_ntohl(tvb, tlv_offset) / 4;
345 tlv_item = proto_tree_add_float_format_value(sub_tree, hf_rng_rsp_timing_adjust, tvb,
346 tlv_offset, 4, timing_adjust, " %.2f modulation symbols", timing_adjust);
347 if ((timing_adjust < -2) || (timing_adjust > 2))
348 proto_item_append_text(tlv_item, " (during periodic ranging shall not exceed +- 2)");
351 case RNG_RSP_POWER_LEVEL_ADJUST: {
352 sub_tree = add_protocol_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "Power Level Adjust (%u byte(s))", tlv_len);
353 power_level_adjust = (float)(gint8)tvb_get_guint8(tvb, tlv_offset) / 4;
354 proto_tree_add_float_format_value(sub_tree, hf_rng_rsp_power_level_adjust, tvb, tlv_offset, 1,
355 power_level_adjust, " %.2f dB", power_level_adjust);
358 case RNG_RSP_OFFSET_FREQ_ADJUST: {
359 sub_tree = add_protocol_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "Offset Frequency Adjust (%u byte(s))", tlv_len);
360 offset_freq_adjust = tvb_get_ntohl(tvb, tlv_offset);
361 proto_tree_add_int_format_value(sub_tree, hf_rng_rsp_offset_freq_adjust, tvb, tlv_offset, 4,
362 offset_freq_adjust, " %d Hz", offset_freq_adjust);
365 case RNG_RSP_RANGING_STATUS:
366 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_ranging_status, tvb, tlv_offset, 1, FALSE);
367 ranging_status_item = proto_tree_add_item(sub_tree, hf_rng_rsp_ranging_status, tvb, tlv_offset, 1, FALSE);
369 case RNG_RSP_DL_FREQ_OVERRIDE: {
370 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_dl_freq_override, tvb, tlv_offset, 4, FALSE);
371 dl_freq_override_item = proto_tree_add_item(sub_tree, hf_rng_rsp_dl_freq_override, tvb, tlv_offset, 4, FALSE);
372 proto_item_append_text(dl_freq_override_item, " kHz");
375 case RNG_RSP_UL_CHANNEL_ID_OVERRIDE:
376 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_ul_chan_id_override, tvb, tlv_offset, 1, FALSE);
377 proto_tree_add_item(sub_tree, hf_rng_rsp_ul_chan_id_override, tvb, tlv_offset, 1, FALSE);
379 case RNG_RSP_DL_OPERATIONAL_BURST_PROFILE:
380 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_dl_operational_burst_profile, tvb, tlv_offset, 2, FALSE);
381 proto_tree_add_item(sub_tree, hf_rng_rsp_dl_operational_burst_profile_diuc, tvb, tlv_offset, 2, FALSE);
382 proto_tree_add_item(sub_tree, hf_rng_rsp_dl_operational_burst_profile_ccc, tvb, tlv_offset, 2, FALSE);
384 case RNG_RSP_SS_MAC_ADDRESS:
387 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_ss_mac_address, tvb, tlv_offset, 6, FALSE);
388 ss_mac_address_item = proto_tree_add_item(sub_tree, hf_rng_rsp_ss_mac_address, tvb, tlv_offset, 6, FALSE);
390 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_invalid_tlv, tvb, tlv_offset, tlv_len, FALSE);
391 proto_tree_add_item(sub_tree, hf_rng_rsp_ss_mac_address, tvb, tlv_offset, 6, FALSE);
394 case RNG_RSP_BASIC_CID:
395 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_basic_cid, tvb, tlv_offset, 1, FALSE);
396 proto_tree_add_item(sub_tree, hf_rng_rsp_basic_cid, tvb, tlv_offset, 2, FALSE);
398 case RNG_RSP_PRIMARY_MGMT_CID:
399 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_primary_mgmt_cid, tvb, tlv_offset, 1, FALSE);
400 proto_tree_add_item(sub_tree, hf_rng_rsp_primary_mgmt_cid, tvb, tlv_offset, 2, FALSE);
402 case RNG_RSP_AAS_BROADCAST_PERMISSION:
403 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_broadcast, tvb, tlv_offset, 1, FALSE);
404 proto_tree_add_item(sub_tree, hf_rng_rsp_broadcast, tvb, tlv_offset, 1, FALSE);
406 case RNG_RSP_FRAME_NUMBER:
407 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_frame_number, tvb, tlv_offset, 3, FALSE);
408 frame_number_item = proto_tree_add_item(sub_tree, hf_rng_rsp_frame_number, tvb, tlv_offset, 3, FALSE);
410 case RNG_RSP_OPPORTUNITY_NUMBER:
411 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_opportunity_number, tvb, tlv_offset, 1, FALSE);
412 opportunity_number_item = proto_tree_add_item(sub_tree, hf_rng_rsp_opportunity_number, tvb, tlv_offset, 1, FALSE);
413 if (tvb_get_ntohl(tvb, tlv_offset) == 0)
414 proto_item_append_text(opportunity_number_item, " (may not be 0!)");
416 case RNG_RSP_SERVICE_LEVEL_PREDICTION:
417 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_service_level_prediction, tvb, tlv_offset, 1, FALSE);
418 proto_tree_add_item(sub_tree, hf_rng_rsp_service_level_prediction, tvb, tlv_offset, 1, FALSE);
420 case RNG_RSP_RESOURCE_RETAIN_FLAG:
421 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_resource_retain_flag, tvb, tlv_offset, 1, FALSE);
422 proto_tree_add_item(sub_tree, hf_rng_rsp_resource_retain_flag, tvb, tlv_offset, 1, FALSE);
424 case RNG_RSP_HO_PROCESS_OPTIMIZATION:
425 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_ho_process_optimization, tvb, tlv_offset, 2, FALSE);
426 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_0, tvb, tlv_offset, 2, FALSE);
427 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_1_2, tvb, tlv_offset, 2, FALSE);
428 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_3, tvb, tlv_offset, 2, FALSE);
429 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_4, tvb, tlv_offset, 2, FALSE);
430 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_5, tvb, tlv_offset, 2, FALSE);
431 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_6, tvb, tlv_offset, 2, FALSE);
432 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_7, tvb, tlv_offset, 2, FALSE);
433 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_8, tvb, tlv_offset, 2, FALSE);
434 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_9, tvb, tlv_offset, 2, FALSE);
435 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_10, tvb, tlv_offset, 2, FALSE);
436 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_11, tvb, tlv_offset, 2, FALSE);
437 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_12, tvb, tlv_offset, 2, FALSE);
438 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_13, tvb, tlv_offset, 2, FALSE);
439 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_14, tvb, tlv_offset, 2, FALSE);
440 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_process_optimization_15, tvb, tlv_offset, 2, FALSE);
442 case RNG_RSP_SBC_RSP_ENCODINGS:
443 sub_tree = add_protocol_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "SBC-RSP Encodings (%u byte(s))", tlv_len);
444 dissect_mac_mgmt_msg_sbc_rsp_decoder(tvb_new_subset(tvb, tlv_offset, tlv_len, tlv_len), pinfo, sub_tree);
446 case RNG_RSP_REG_RSP_ENCODINGS:
447 sub_tree = add_protocol_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "REG-RSP Encodings (%u byte(s))", tlv_len);
448 dissect_mac_mgmt_msg_reg_rsp_decoder(tvb_new_subset(tvb, tlv_offset, tlv_len, tlv_len), pinfo, sub_tree);
450 /* Implemented message encoding 33 (Table 367 in IEEE 802.16e-2007) */
451 case RNG_RSP_DL_OP_BURST_PROFILE_OFDMA:
452 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_dl_op_burst_profile_ofdma, tvb, tlv_offset, 2, FALSE);
453 proto_tree_add_item(sub_tree, hf_rng_rsp_least_robust_diuc, tvb, tlv_offset, 2, FALSE);
454 proto_tree_add_item(sub_tree, hf_rng_rsp_repetition_coding_indication, tvb, tlv_offset, 2, FALSE);
455 proto_tree_add_item(sub_tree, hf_rng_rsp_config_change_count_of_dcd, tvb, tlv_offset, 2, FALSE);
458 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_ho_id, tvb, tlv_offset, 1, FALSE);
459 proto_tree_add_item(sub_tree, hf_rng_rsp_ho_id, tvb, tlv_offset, 1, FALSE);
461 case RNG_RSP_LOCATION_UPDATE_RESPONSE:
462 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_location_update_response, tvb, tlv_offset, 1, FALSE);
463 proto_tree_add_item(sub_tree, hf_rng_rsp_location_update_response, tvb, tlv_offset, 1, FALSE);
465 case RNG_RSP_PAGING_INFORMATION:
466 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_paging_information, tvb, tlv_offset, 5, FALSE);
467 proto_tree_add_item(sub_tree, hf_rng_rsp_paging_cycle, tvb, tlv_offset, 2, FALSE);
468 proto_tree_add_item(sub_tree, hf_rng_rsp_paging_offset, tvb, tlv_offset+2, 1, FALSE);
469 proto_tree_add_item(sub_tree, hf_rng_rsp_paging_group_id, tvb, tlv_offset+3, 2, FALSE);
471 case RNG_RSP_POWER_SAVING_CLASS_PARAMETERS:
472 sub_tree = add_protocol_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "Power Saving Class Parameters (%u byte(s))", tlv_len);
473 dissect_power_saving_class(sub_tree, tlv_type, tvb, tlv_len, pinfo, tlv_offset);
475 case RNG_RSP_SA_CHALLENGE_TUPLE:
476 /* Display SA Challenge Tuple header */
477 sub_tree = add_protocol_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "SA Challenge Tuple (%u byte(s))", tlv_len);
479 /* Use a local copy of tlv_offset */
480 this_offset = tlv_offset;
481 while(this_offset < tlv_len) {
482 /* Get the sub TLV data. */
483 init_tlv_info(&sub_tlv_info, tvb, this_offset);
484 /* get the sub TLV type */
485 sub_tlv_type = get_tlv_type(&sub_tlv_info);
486 /* get the TLV length */
487 sub_tlv_len = get_tlv_length(&sub_tlv_info);
488 if(tlv_type == -1 || sub_tlv_len > MAX_TLV_LEN || sub_tlv_len < 1)
489 { /* invalid tlv info */
490 if(check_col(pinfo->cinfo, COL_INFO))
492 col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "RNG-RSP TLV error");
494 proto_tree_add_item(rng_rsp_tree, hf_rng_invalid_tlv, tvb, tlv_offset, (tvb_len - offset), FALSE);
497 /* get the offset to the sub TLV data */
498 sub_tlv_offset = this_offset + get_tlv_value_offset(&sub_tlv_info);
499 switch (sub_tlv_type) {
500 case RNG_RSP_SA_CHALLENGE_BS_RANDOM:
501 tlv_tree = add_tlv_subtree(&sub_tlv_info, ett_rng_rsp_message_tree, sub_tree, hf_rng_rsp_bs_random, tvb, sub_tlv_offset, sub_tlv_len, FALSE);
502 proto_tree_add_item(tlv_tree, hf_rng_rsp_bs_random, tvb, sub_tlv_offset, sub_tlv_len, FALSE);
504 case RNG_RSP_SA_CHALLENGE_AKID:
505 tlv_tree = add_tlv_subtree(&sub_tlv_info, ett_rng_rsp_message_tree, sub_tree, hf_rng_rsp_akid, tvb, sub_tlv_offset, sub_tlv_len, FALSE);
506 proto_tree_add_item(tlv_tree, hf_rng_rsp_akid, tvb, sub_tlv_offset, sub_tlv_len, FALSE);
509 tlv_tree = add_tlv_subtree(&sub_tlv_info, ett_rng_rsp_message_tree, sub_tree, hf_tlv_type, tvb, sub_tlv_offset, sub_tlv_len, FALSE);
510 proto_tree_add_item(tlv_tree, hf_tlv_type, tvb, sub_tlv_offset, sub_tlv_len, FALSE);
513 this_offset = sub_tlv_len + sub_tlv_offset;
516 case DSx_UPLINK_FLOW:
517 /* display Uplink Service Flow Encodings info */
519 sub_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_rng_rsp_decoder, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "Uplink QOS Parameters (%u bytes)", tlv_len);
520 /* decode and display the DL Service Flow Encodings */
521 wimax_service_flow_encodings_decoder(tvb_new_subset(tvb, tlv_offset, tlv_len, tlv_len), pinfo, sub_tree);
523 case DSx_DOWNLINK_FLOW:
524 /* display Downlink Service Flow Encodings info */
526 sub_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_rng_rsp_decoder, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "Downlink QOS Parameters (%u bytes)", tlv_len);
527 /* decode and display the DL Service Flow Encodings */
528 wimax_service_flow_encodings_decoder(tvb_new_subset(tvb, tlv_offset, tlv_len, tlv_len), pinfo, sub_tree);
530 case RNG_RSP_RANGING_CODE_ATTRIBUTES:
531 /* case SHORT_HMAC_TUPLE: */
532 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_rng_rsp_ranging_subchan, tvb, tlv_offset, 4, FALSE);
533 proto_tree_add_item(sub_tree, hf_rng_rsp_time_symbol_reference, tvb, tlv_offset, 4, FALSE);
534 proto_tree_add_item(sub_tree, hf_rng_rsp_subchannel_reference, tvb, tlv_offset, 4, FALSE);
535 proto_tree_add_item(sub_tree, hf_rng_rsp_ranging_code_index, tvb, tlv_offset, 4, FALSE);
536 proto_tree_add_item(sub_tree, hf_rng_rsp_frame_number2, tvb, tlv_offset, 4, FALSE);
538 case SHORT_HMAC_TUPLE_COR2:
539 if (include_cor2_changes) {
540 sub_tree = add_protocol_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, proto_mac_mgmt_msg_rng_rsp_decoder, tvb, tlv_offset, tlv_len, "Short HMAC Tuple (%u byte(s))", tlv_len);
541 wimax_short_hmac_tuple_decoder(sub_tree, tvb, tlv_offset, tvb_len - offset);
543 /* Unknown TLV type */
544 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_tlv_type, tvb, tlv_offset, 1, FALSE);
545 proto_tree_add_item(sub_tree, hf_tlv_type, tvb, tlv_offset, tlv_len, FALSE);
550 sub_tree = add_tlv_subtree(&tlv_info, ett_rng_rsp_message_tree, rng_rsp_tree, hf_tlv_type, tvb, tlv_offset, 1, FALSE);
551 proto_tree_add_item(sub_tree, hf_tlv_type, tvb, tlv_offset, tlv_len, FALSE);
555 offset = tlv_len + tlv_offset;
556 } /* end of TLV process while loop */
557 if (ranging_status_item && dl_freq_override_item)
558 proto_item_append_text(ranging_status_item, " (shall be set to 2 because Downlink Frequency Override is present)");
559 if (ss_mac_address_item && frame_number_item) {
560 proto_item_append_text(frame_number_item, " (mutually exclusive with SS MAC Address!)");
561 proto_item_append_text(ss_mac_address_item, " (mutually exclusive with Frame Number!)");
563 if (ss_mac_address_item && opportunity_number_item) {
564 proto_item_append_text(opportunity_number_item, " (mutually exclusive with SS MAC Address!)");
565 proto_item_append_text(ss_mac_address_item, " (mutually exclusive with Initial Ranging Opportunity Number!)");
567 if (!ranging_status_item)
568 proto_item_append_text(rng_rsp_tree, " (Ranging status is missing!)");
574 /* Register Wimax Mac Payload Protocol and Dissector */
575 void proto_register_mac_mgmt_msg_rng_rsp(void)
577 /* RNG-RSP fields display */
578 static hf_register_info hf[] =
581 &hf_rng_rsp_message_type,
583 "MAC Management Message Type", "wmx.macmgtmsgtype.rng_rsp",
584 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
588 &hf_rng_rsp_broadcast,
590 "AAS broadcast permission", "wmx.rng_rsp.aas_broadcast",
591 FT_BOOLEAN, BASE_NONE, TFS(&tfs_rng_rsp_aas_broadcast), 0x0, NULL, HFILL
597 "AKId", "wmx.rng_rsp.akid",
598 FT_BYTES, BASE_NONE, NULL, 0x00, NULL, HFILL
602 &hf_rng_rsp_basic_cid,
604 "Basic CID", "wmx.rng_rsp.basic_cid",
605 FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL
609 &hf_rng_rsp_bs_random,
611 "BS_Random", "wmx.rng_rsp.bs_random",
612 FT_BYTES, BASE_NONE, NULL, 0x00, NULL, HFILL
616 &hf_rng_rsp_config_change_count_of_dcd,
618 "Configuration Change Count value of DCD defining DIUC associated burst profile", "wmx.rng_rsp.config_change_count_of_dcd",
619 FT_UINT16, BASE_HEX, NULL, 0xFF00, NULL, HFILL
623 &hf_rng_rsp_dl_freq_override,
625 "Downlink Frequency Override", "wmx.rng_rsp.dl_freq_override",
626 FT_UINT32, BASE_DEC, NULL, 0x00, NULL, HFILL
630 &hf_rng_rsp_dl_operational_burst_profile_ccc,
632 "CCC value of DCD defining the burst profile associated with DIUC", "wmx.rng_rsp.dl_op_burst_prof.ccc",
633 FT_UINT16, BASE_DEC, NULL, 0x00FF, NULL, HFILL
637 &hf_rng_rsp_dl_operational_burst_profile_diuc,
639 "The least robust DIUC that may be used by the BS for transmissions to the SS", "wmx.rng_rsp.dl_op_burst_prof.diuc",
640 FT_UINT16, BASE_DEC, NULL, 0xFF00, NULL, HFILL
644 &hf_rng_rsp_dl_operational_burst_profile,
646 "Downlink Operational Burst Profile", "wmx.rng_rsp.dl_op_burst_profile",
647 FT_UINT16, BASE_HEX, NULL, 0x00, NULL, HFILL
650 /* Added the following to help implement RNG-RSP message encoding 33 (Table 367 in IEEE 802.16e-2007) */
652 &hf_rng_rsp_dl_op_burst_profile_ofdma,
654 "Downlink Operational Burst Profile for OFDMA", "wmx.rng_rsp.dl_op_burst_profile_ofdma",
655 FT_UINT16, BASE_HEX, NULL, 0x00, NULL, HFILL
659 &hf_rng_rsp_frame_number2,
661 "The 8 least significant bits of the frame number of the OFDMA frame where the SS sent the ranging code", "wmx.rng_rsp.eight_bit_frame_num",
662 FT_UINT32, BASE_DEC, NULL, 0x000000FF, NULL, HFILL
666 &hf_rng_rsp_frame_number,
668 "Frame number", "wmx.rng_rsp.frame_number",
669 FT_UINT24, BASE_DEC, NULL, 0x00, NULL, HFILL
672 /* Added the following to help implement RNG-RSP message encoding 22 (IEEE 802.16e-2007) */
676 "HO ID", "wmx.rng_rsp.ho_id",
677 FT_UINT8, BASE_HEX, NULL, 0x00, NULL, HFILL
681 &hf_rng_rsp_ho_process_optimization,
683 "HO Process Optimization", "wmx.rng_rsp.ho_process_optimization",
684 FT_UINT16, BASE_HEX, NULL, 0x0000, NULL, HFILL
688 &hf_rng_rsp_ho_process_optimization_0,
690 "Bit #0", "wmx.rng_rsp.ho_process_optimization.omit_sbc_req",
691 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_0), 0x0001, NULL, HFILL
695 &hf_rng_rsp_ho_process_optimization_1_2,
697 "Bits #1-2", "wmx.rng_rsp.ho_process_optimization.perform_reauthentication",
698 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_1_2), 0x0006, NULL, HFILL
702 &hf_rng_rsp_ho_process_optimization_3,
704 "Bit #3", "wmx.rng_rsp.ho_process_optimization.omit_network_address",
705 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_3), 0x0008, NULL, HFILL
709 &hf_rng_rsp_ho_process_optimization_4,
711 "Bit #4", "wmx.rng_rsp.ho_process_optimization.omit_time_of_day",
712 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_4), 0x0010, NULL, HFILL
716 &hf_rng_rsp_ho_process_optimization_5,
718 "Bit #5", "wmx.rng_rsp.ho_process_optimization.omit_tftp",
719 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_5), 0x0020, NULL, HFILL
723 &hf_rng_rsp_ho_process_optimization_6,
725 "Bit #6", "wmx.rng_rsp.ho_process_optimization.transfer_or_sharing",
726 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_6), 0x0040, NULL, HFILL
730 &hf_rng_rsp_ho_process_optimization_7,
732 "Bit #7", "wmx.rng_rsp.ho_process_optimization.omit_reg_req",
733 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_7), 0x0080, NULL, HFILL
737 &hf_rng_rsp_ho_process_optimization_8,
739 "Bit #8", "wmx.rng_rsp.ho_process_optimization.unsolicited_sbc_rsp",
740 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_8), 0x0100, NULL, HFILL
744 &hf_rng_rsp_ho_process_optimization_9,
746 "Bit #9", "wmx.rng_rsp.ho_process_optimization.post_ho_reentry",
747 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_9), 0x0200, NULL, HFILL
751 &hf_rng_rsp_ho_process_optimization_10,
753 "Bit #10", "wmx.rng_rsp.ho_process_optimization.unsolicited_reg_rsp",
754 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_10), 0x0400, NULL, HFILL
758 &hf_rng_rsp_ho_process_optimization_11,
760 "Bit #11", "wmx.rng_rsp.ho_process_optimization.virtual_sdu_sn",
761 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_11), 0x0800, NULL, HFILL
765 &hf_rng_rsp_ho_process_optimization_12,
767 "Bit #12", "wmx.rng_rsp.ho_process_optimization.send_notification",
768 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_12), 0x1000, NULL, HFILL
772 &hf_rng_rsp_ho_process_optimization_13,
774 "Bit #13", "wmx.rng_rsp.ho_process_optimization.trigger_higher_layer_protocol",
775 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_ho_process_optimization_13), 0x2000, NULL, HFILL
779 &hf_rng_rsp_ho_process_optimization_14,
781 "Bit #14: Reserved", "wmx.rng_rsp.ho_process_optimization.reserved",
782 FT_UINT16, BASE_HEX, NULL, 0x4000, NULL, HFILL
786 &hf_rng_rsp_ho_process_optimization_15,
788 "Bit #15: Reserved", "wmx.rng_rsp.ho_process_optimization.reserved",
789 FT_UINT16, BASE_HEX, NULL, 0x8000, NULL, HFILL
795 "Invalid TLV", "wmx.rng_rsp.invalid_tlv",
796 FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL
800 &hf_rng_rsp_least_robust_diuc,
802 "Least Robust DIUC that may be used by the BS for transmissions to the MS", "wmx.rng_rsp.least_robust_diuc",
803 FT_UINT16, BASE_HEX, NULL, 0x000F, NULL, HFILL
807 &hf_rng_rsp_location_update_response,
809 "Location Update Response", "wmx.rng_rsp.location_update_response",
810 FT_UINT8, BASE_DEC, VALS(vals_rng_rsp_location_update_response), 0xFF, NULL, HFILL
814 &hf_rng_rsp_offset_freq_adjust,
816 "Offset Frequency Adjust", "wmx.rng_rsp.offset_freq_adjust",
817 FT_INT32, BASE_DEC, NULL, 0x00, NULL, HFILL
821 &hf_rng_rsp_opportunity_number,
823 "Initial ranging opportunity number", "wmx.rng_rsp.opportunity_number",
824 FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL
828 &hf_rng_rsp_paging_cycle,
830 "Paging Cycle", "wmx.rng_rsp.paging_cycle",
831 FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL
835 &hf_rng_rsp_paging_group_id,
837 "Paging Group ID", "wmx.rng_rsp.paging_group_id",
838 FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL
842 &hf_rng_rsp_paging_information,
844 "Paging Information", "wmx.rng_rsp.paging_information",
845 FT_BYTES, BASE_NONE, NULL, 0x00, NULL, HFILL
849 &hf_rng_rsp_paging_offset,
851 "Paging Offset", "wmx.rng_rsp.paging_offset",
852 FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL
856 &hf_rng_rsp_power_level_adjust,
858 "Power Level Adjust", "wmx.rng_rsp.power_level_adjust",
859 FT_FLOAT, BASE_NONE, NULL, 0x00, NULL, HFILL
863 &hf_rng_rsp_primary_mgmt_cid,
865 "Primary Management CID", "wmx.rng_rsp.primary_mgmt_cid",
866 FT_UINT16, BASE_DEC, NULL, 0x00, NULL, HFILL
870 &hf_rng_rsp_ranging_code_index,
872 "The ranging code index that was sent by the SS", "wmx.rng_rsp.ranging_code_index",
873 FT_UINT32, BASE_DEC, NULL, 0x0000FF00, NULL, HFILL
877 &hf_rng_rsp_ranging_status,
879 "Ranging status", "wmx.rng_rsp.ranging_status",
880 FT_UINT8, BASE_DEC, VALS(vals_rng_rsp_ranging_status), 0x00, NULL, HFILL
884 &hf_rng_rsp_ranging_subchan,
886 "Ranging code attributes", "wmx.rng_rsp.ranging_subchannel",
887 FT_UINT32, BASE_HEX, NULL, 0x00, NULL, HFILL
891 &hf_rng_rsp_repetition_coding_indication,
893 "Repetition Coding Indication", "wmx.rng_rsp.repetition_coding_indication",
894 FT_UINT16, BASE_HEX, VALS(vals_rng_rsp_repetition_coding_indication), 0x00F0, NULL, HFILL
898 &hf_rng_req_reserved,
900 "Reserved", "wmx.rng_rsp.reserved",
901 FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL
905 &hf_rng_rsp_resource_retain_flag,
907 "The connection information for the MS is", "wmx.rng_rsp.resource_retain_flag",
908 FT_BOOLEAN, BASE_NONE, TFS(&tfs_rng_rsp_resource_retain_flag), 0x0, NULL, HFILL
912 &hf_rng_rsp_service_level_prediction,
914 "Service Level Prediction", "wmx.rng_rsp.service_level_prediction",
915 FT_UINT8, BASE_DEC, VALS(vals_rng_rsp_level_of_service), 0x00, NULL, HFILL
919 &hf_rng_rsp_ss_mac_address,
921 "SS MAC Address", "wmx.rng_rsp.ss_mac_address",
922 FT_ETHER, BASE_NONE, NULL, 0x00, NULL, HFILL
926 &hf_rng_rsp_subchannel_reference,
928 "OFDMA subchannel reference used to transmit the ranging code", "wmx.rng_rsp.subchannel_reference",
929 FT_UINT32, BASE_DEC, NULL, 0x003f0000, NULL, HFILL
933 &hf_rng_rsp_time_symbol_reference,
935 "OFDM time symbol reference used to transmit the ranging code", "wmx.rng_rsp.time_symbol_reference",
936 FT_UINT32, BASE_DEC, NULL, 0xFFC00000, NULL, HFILL
940 &hf_rng_rsp_timing_adjust,
942 "Timing Adjust", "wmx.rng_rsp.timing_adjust",
943 FT_FLOAT, BASE_NONE, NULL, 0x00, NULL, HFILL
947 &hf_rng_rsp_ul_channel_id,
949 "Uplink Channel ID", "wmx.rng_rsp.ul_chan_id",
950 FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL
954 &hf_rng_rsp_ul_chan_id_override,
956 "Uplink channel ID Override", "wmx.rng_rsp.ul_chan_id_override",
957 FT_UINT8, BASE_DEC, NULL, 0x00, NULL, HFILL
963 "Unknown TLV Type", "wmx.rng_rsp.unknown_tlv_type",
964 FT_BYTES, BASE_NONE, NULL, 0x00, NULL, HFILL
970 "Value", "wmx.rng_rsp.tlv_value",
971 FT_BYTES, BASE_NONE, NULL, 0x00, NULL, HFILL
976 /* Setup protocol subtree array */
979 &ett_mac_mgmt_msg_rng_rsp_decoder,
980 &ett_rng_rsp_message_tree
983 proto_mac_mgmt_msg_rng_rsp_decoder = proto_mac_mgmt_msg_rng_req_decoder;
985 proto_register_field_array(proto_mac_mgmt_msg_rng_rsp_decoder, hf, array_length(hf));
986 proto_register_subtree_array(ett, array_length(ett));