Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

packet-zbee-zdp.h
1 /* packet-zbee-zdp.h
2 * Dissector routines for the ZigBee Device Profile (ZDP)
3 * By Owen Kirby <osk@exegin.com>
4 * Copyright 2009 Exegin Technologies Limited
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13 #ifndef PACKET_ZBEE_ZDP_H
14 #define PACKET_ZBEE_ZDP_H
15
16 /* The Profile ID for the ZigBee Device Profile. */
17 #define ZBEE_ZDP_PROFILE 0x0000
18
19 /* ZDP Cluster Identifiers. */
20 #define ZBEE_ZDP_REQ_NWK_ADDR 0x0000
21 #define ZBEE_ZDP_REQ_IEEE_ADDR 0x0001
22 #define ZBEE_ZDP_REQ_NODE_DESC 0x0002
23 #define ZBEE_ZDP_REQ_POWER_DESC 0x0003
24 #define ZBEE_ZDP_REQ_SIMPLE_DESC 0x0004
25 #define ZBEE_ZDP_REQ_ACTIVE_EP 0x0005
26 #define ZBEE_ZDP_REQ_MATCH_DESC 0x0006
27 #define ZBEE_ZDP_REQ_COMPLEX_DESC 0x0010
28 #define ZBEE_ZDP_REQ_USER_DESC 0x0011
29 #define ZBEE_ZDP_REQ_DISCOVERY_CACHE 0x0012
30 #define ZBEE_ZDP_REQ_DEVICE_ANNCE 0x0013
31 #define ZBEE_ZDP_REQ_SET_USER_DESC 0x0014
32 #define ZBEE_ZDP_REQ_SYSTEM_SERVER_DISC 0x0015 /* ZigBee 2006 & later. */
33 #define ZBEE_ZDP_REQ_STORE_DISCOVERY 0x0016 /* ZigBee 2006 & later. */
34 #define ZBEE_ZDP_REQ_STORE_NODE_DESC 0x0017 /* ZigBee 2006 & later. */
35 #define ZBEE_ZDP_REQ_STORE_POWER_DESC 0x0018 /* ZigBee 2006 & later. */
36 #define ZBEE_ZDP_REQ_STORE_ACTIVE_EP 0x0019 /* ZigBee 2006 & later. */
37 #define ZBEE_ZDP_REQ_STORE_SIMPLE_DESC 0x001a /* ZigBee 2006 & later. */
38 #define ZBEE_ZDP_REQ_REMOVE_NODE_CACHE 0x001b /* ZigBee 2006 & later. */
39 #define ZBEE_ZDP_REQ_FIND_NODE_CACHE 0x001c /* ZigBee 2006 & later. */
40 #define ZBEE_ZDP_REQ_EXT_SIMPLE_DESC 0x001d /* ZigBee 2007 & later. */
41 #define ZBEE_ZDP_REQ_EXT_ACTIVE_EP 0x001e /* ZigBee 2007 & later. */
42 #define ZBEE_ZDP_REQ_PARENT_ANNCE 0x001f /* r21 */
43 #define ZBEE_ZDP_REQ_END_DEVICE_BIND 0x0020
44 #define ZBEE_ZDP_REQ_BIND 0x0021
45 #define ZBEE_ZDP_REQ_UNBIND 0x0022
46 #define ZBEE_ZDP_REQ_BIND_REGISTER 0x0023 /* ZigBee 2006 & later. */
47 #define ZBEE_ZDP_REQ_REPLACE_DEVICE 0x0024 /* ZigBee 2006 & later. */
48 #define ZBEE_ZDP_REQ_STORE_BAK_BIND_ENTRY 0x0025 /* ZigBee 2006 & later. */
49 #define ZBEE_ZDP_REQ_REMOVE_BAK_BIND_ENTRY 0x0026 /* ZigBee 2006 & later. */
50 #define ZBEE_ZDP_REQ_BACKUP_BIND_TABLE 0x0027 /* ZigBee 2006 & later. */
51 #define ZBEE_ZDP_REQ_RECOVER_BIND_TABLE 0x0028 /* ZigBee 2006 & later. */
52 #define ZBEE_ZDP_REQ_BACKUP_SOURCE_BIND 0x0029 /* ZigBee 2006 & later. */
53 #define ZBEE_ZDP_REQ_RECOVER_SOURCE_BIND 0x002a /* ZigBee 2006 & later. */
54 #define ZBEE_ZDP_REQ_MGMT_NWK_DISC 0x0030
55 #define ZBEE_ZDP_REQ_MGMT_LQI 0x0031
56 #define ZBEE_ZDP_REQ_MGMT_RTG 0x0032
57 #define ZBEE_ZDP_REQ_MGMT_BIND 0x0033
58 #define ZBEE_ZDP_REQ_MGMT_LEAVE 0x0034
59 #define ZBEE_ZDP_REQ_MGMT_DIRECT_JOIN 0x0035
60 #define ZBEE_ZDP_REQ_MGMT_PERMIT_JOIN 0x0036 /* ZigBee 2006 & later. */
61 #define ZBEE_ZDP_REQ_MGMT_CACHE 0x0037 /* ZigBee 2006 & later. */
62 #define ZBEE_ZDP_REQ_MGMT_NWKUPDATE 0x0038 /* ZigBee 2007 & later. */
63 #define ZBEE_ZDP_REQ_MGMT_NWKUPDATE_ENH 0x0039 /* R22 */
64 #define ZBEE_ZDP_REQ_MGMT_IEEE_JOIN_LIST 0x003a /* R22 */
65 #define ZBEE_ZDP_REQ_MGMT_UNSOLICITED_NWKUPDATE 0x003b /* R22 */
66
67 #define ZBEE_ZDP_RSP_NWK_ADDR 0x8000
68 #define ZBEE_ZDP_RSP_IEEE_ADDR 0x8001
69 #define ZBEE_ZDP_RSP_NODE_DESC 0x8002
70 #define ZBEE_ZDP_RSP_POWER_DESC 0x8003
71 #define ZBEE_ZDP_RSP_SIMPLE_DESC 0x8004
72 #define ZBEE_ZDP_RSP_ACTIVE_EP 0x8005
73 #define ZBEE_ZDP_RSP_MATCH_DESC 0x8006
74 #define ZBEE_ZDP_RSP_COMPLEX_DESC 0x8010
75 #define ZBEE_ZDP_RSP_USER_DESC 0x8011
76 #define ZBEE_ZDP_RSP_DISCOVERY_CACHE 0x8012
77 #define ZBEE_ZDP_RSP_CONF_USER_DESC 0x8014 /* ZigBee 2006 & later. */
78 #define ZBEE_ZDP_RSP_SYSTEM_SERVER_DISC 0x8015 /* ZigBee 2006 & later. */
79 #define ZBEE_ZDP_RSP_STORE_DISCOVERY 0x8016 /* ZigBee 2006 & later. */
80 #define ZBEE_ZDP_RSP_STORE_NODE_DESC 0x8017 /* ZigBee 2006 & later. */
81 #define ZBEE_ZDP_RSP_STORE_POWER_DESC 0x8018 /* ZigBee 2006 & later. */
82 #define ZBEE_ZDP_RSP_STORE_ACTIVE_EP 0x8019 /* ZigBee 2006 & later. */
83 #define ZBEE_ZDP_RSP_STORE_SIMPLE_DESC 0x801a /* ZigBee 2006 & later. */
84 #define ZBEE_ZDP_RSP_REMOVE_NODE_CACHE 0x801b /* ZigBee 2006 & later. */
85 #define ZBEE_ZDP_RSP_FIND_NODE_CACHE 0x801c /* ZigBee 2006 & later. */
86 #define ZBEE_ZDP_RSP_EXT_SIMPLE_DESC 0x801d /* ZigBee 2007 & later. */
87 #define ZBEE_ZDP_RSP_EXT_ACTIVE_EP 0x801e /* ZigBee 2007 & later. */
88 #define ZBEE_ZDP_RSP_PARENT_ANNCE 0x801f /* r21 */
89 #define ZBEE_ZDP_RSP_END_DEVICE_BIND 0x8020
90 #define ZBEE_ZDP_RSP_BIND 0x8021
91 #define ZBEE_ZDP_RSP_UNBIND 0x8022
92 #define ZBEE_ZDP_RSP_BIND_REGISTER 0x8023 /* ZigBee 2006 & later. */
93 #define ZBEE_ZDP_RSP_REPLACE_DEVICE 0x8024 /* ZigBee 2006 & later. */
94 #define ZBEE_ZDP_RSP_STORE_BAK_BIND_ENTRY 0x8025 /* ZigBee 2006 & later. */
95 #define ZBEE_ZDP_RSP_REMOVE_BAK_BIND_ENTRY 0x8026 /* ZigBee 2006 & later. */
96 #define ZBEE_ZDP_RSP_BACKUP_BIND_TABLE 0x8027 /* ZigBee 2006 & later. */
97 #define ZBEE_ZDP_RSP_RECOVER_BIND_TABLE 0x8028 /* ZigBee 2006 & later. */
98 #define ZBEE_ZDP_RSP_BACKUP_SOURCE_BIND 0x8029 /* ZigBee 2006 & later. */
99 #define ZBEE_ZDP_RSP_RECOVER_SOURCE_BIND 0x802a /* ZigBee 2006 & later. */
100 #define ZBEE_ZDP_RSP_MGMT_NWK_DISC 0x8030
101 #define ZBEE_ZDP_RSP_MGMT_LQI 0x8031
102 #define ZBEE_ZDP_RSP_MGMT_RTG 0x8032
103 #define ZBEE_ZDP_RSP_MGMT_BIND 0x8033
104 #define ZBEE_ZDP_RSP_MGMT_LEAVE 0x8034
105 #define ZBEE_ZDP_RSP_MGMT_DIRECT_JOIN 0x8035
106 #define ZBEE_ZDP_RSP_MGMT_PERMIT_JOIN 0x8036 /* ZigBee 2006 & later. */
107 #define ZBEE_ZDP_RSP_MGMT_CACHE 0x8037 /* ZigBee 2006 & later. */
108 #define ZBEE_ZDP_RSP_MGMT_NWKUPDATE 0x8038 /* ZigBee 2007 & later. */
109 #define ZBEE_ZDP_RSP_MGMT_NWKUPDATE_ENH 0x8039 /* R22 */
110 #define ZBEE_ZDP_RSP_MGMT_IEEE_JOIN_LIST 0x803a /* R22 */
111
112 #define ZBEE_ZDP_MSG_RESPONSE_BIT 0x8000
113 #define ZBEE_ZDP_MSG_MASK (ZBEE_ZDP_MSG_RESPONSE_BIT-1)
114 #define ZBEE_ZDP_MSG_RESPONSE_BIT_2003 0x0080
115 #define ZBEE_ZDP_MSG_MASK_2003 (ZBEE_ZDP_MSG_RESPONSE_BIT_2003-1)
116
117 #define ZBEE_ZDP_STATUS_SUCCESS 0x00
118 #define ZBEE_ZDP_STATUS_INV_REQUESTTYPE 0x80
119 #define ZBEE_ZDP_STATUS_DEVICE_NOT_FOUND 0x81
120 #define ZBEE_ZDP_STATUS_INVALID_EP 0x82
121 #define ZBEE_ZDP_STATUS_NOT_ACTIVE 0x83
122 #define ZBEE_ZDP_STATUS_NOT_SUPPORTED 0x84
123 #define ZBEE_ZDP_STATUS_TIMEOUT 0x85
124 #define ZBEE_ZDP_STATUS_NO_MATCH 0x86
125 #define ZBEE_ZDP_STATUS_NO_ENTRY 0x88
126 #define ZBEE_ZDP_STATUS_NO_DESCRIPTOR 0x89
127 #define ZBEE_ZDP_STATUS_INSUFFICIENT_SPACE 0x8a
128 #define ZBEE_ZDP_STATUS_NOT_PERMITTED 0x8b
129 #define ZBEE_ZDP_STATUS_TABLE_FULL 0x8c
130 #define ZBEE_ZDP_STATUS_NOT_AUTHORIZED 0x8d
131 #define ZBEE_ZDP_STATUS_DEVICE_BINDING_TABLE_FULL 0x8e
132 #define ZBEE_ZDP_STATUS_INVALID_INDEX 0x8f
133
134 #define ZBEE_ZDP_REQ_TYPE_SINGLE 0x00
135 #define ZBEE_ZDP_REQ_TYPE_EXTENDED 0x01
136
137 #define ZBEE_ZDP_NODE_TYPE 0x0007
138 #define ZBEE_ZDP_NODE_TYPE_COORD 0x0000
139 #define ZBEE_ZDP_NODE_TYPE_FFD 0x0001
140 #define ZBEE_ZDP_NODE_TYPE_RFD 0x0002
141 #define ZBEE_ZDP_NODE_COMPLEX 0x0008
142 #define ZBEE_ZDP_NODE_USER 0x0010
143 #define ZBEE_ZDP_NODE_APS 0x0700
144 #define ZBEE_ZDP_NODE_FREQ 0xf800
145 #define ZBEE_ZDP_NODE_FREQ_868MHZ 0x0800
146 #define ZBEE_ZDP_NODE_FREQ_900MHZ 0x2000
147 #define ZBEE_ZDP_NODE_FREQ_2400MHZ 0x4000
148 #define ZBEE_ZDP_NODE_FREQ_EU_SUB_GHZ 0x8000
149
150 #define ZBEE_ZDP_NODE_SERVER_PRIMARY_TRUST 0x0001
151 #define ZBEE_ZDP_NODE_SERVER_BACKUP_TRUST 0x0002
152 #define ZBEE_ZDP_NODE_SERVER_PRIMARY_BIND 0x0004
153 #define ZBEE_ZDP_NODE_SERVER_BACKUP_BIND 0x0008
154 #define ZBEE_ZDP_NODE_SERVER_PRIMARY_DISC 0x0010
155 #define ZBEE_ZDP_NODE_SERVER_BACKUP_DISC 0x0020
156 #define ZBEE_ZDP_NODE_SERVER_NETWORK_MANAGER 0x0040
157 #define ZBEE_ZDP_NODE_SERVER_STACK_COMPL_REV 0xfe00
158
159 #define ZBEE_ZDP_POWER_MODE 0x000f
160 #define ZBEE_ZDP_POWER_MODE_RX_ON 0x0000
161 #define ZBEE_ZDP_POWER_MODE_RX_PERIODIC 0x0001
162 #define ZBEE_ZDP_POWER_MODE_RX_STIMULATE 0x0002
163 #define ZBEE_ZDP_POWER_AVAIL 0x00f0
164 #define ZBEE_ZDP_POWER_AVAIL_AC 0x0010
165 #define ZBEE_ZDP_POWER_AVAIL_RECHARGEABLE 0x0020
166 #define ZBEE_ZDP_POWER_AVAIL_DISPOSEABLE 0x0040
167 #define ZBEE_ZDP_POWER_SOURCE 0x0f00
168 #define ZBEE_ZDP_POWER_SOURCE_AC 0x0100
169 #define ZBEE_ZDP_POWER_SOURCE_RECHARGEABLE 0x0200
170 #define ZBEE_ZDP_POWER_SOURCE_DISPOSEABLE 0x0400
171 #define ZBEE_ZDP_POWER_LEVEL 0xf000
172 #define ZBEE_ZDP_POWER_LEVEL_FULL 0xc000
173 #define ZBEE_ZDP_POWER_LEVEL_OK 0x8000
174 #define ZBEE_ZDP_POWER_LEVEL_LOW 0x4000
175 #define ZBEE_ZDP_POWER_LEVEL_CRITICAL 0x0000
176
177 #define ZBEE_ZDP_ADDR_MODE_GROUP 0x01
178 #define ZBEE_ZDP_ADDR_MODE_UNICAST 0x03
179
180 #define ZBEE_ZDP_MGMT_LEAVE_CHILDREN 0x40
181 #define ZBEE_ZDP_MGMT_LEAVE_REJOIN 0x80
182
183 #define ZBEE_ZDP_NWKUPDATE_SCAN_MAX 0x05
184 #define ZBEE_ZDP_NWKUPDATE_CHANNEL_HOP 0xfe
185 #define ZBEE_ZDP_NWKUPDATE_PARAMETERS 0xff
186
187 #define ZBEE_ZDP_NWKUPDATE_PAGE 0xF8000000
188 #define ZBEE_ZDP_NWKUPDATE_CHANNEL 0x07FFFFFF
189
190 #define ZBEE_ZDP_DCF_EAELA 0x01
191 #define ZBEE_ZDP_DCF_ESDLA 0x02
192
193
194
195 /**************************************
196 * Field Indicies
197 **************************************
198 */
199 /* General indicies. */
200 extern int hf_zbee_zdp_ext_addr;
201 extern int hf_zbee_zdp_nwk_addr;
202 extern int hf_zbee_zdp_req_type;
203 extern int hf_zbee_zdp_index;
204 extern int hf_zbee_zdp_ep_count;
205 extern int hf_zbee_zdp_endpoint;
206 extern int hf_zbee_zdp_profile;
207 extern int hf_zbee_zdp_cluster;
208 extern int hf_zbee_zdp_addr_mode;
209 extern int hf_zbee_zdp_in_count;
210 extern int hf_zbee_zdp_out_count;
211 extern int hf_zbee_zdp_in_cluster;
212 extern int hf_zbee_zdp_out_cluster;
213 extern int hf_zbee_zdp_table_size;
214 extern int hf_zbee_zdp_table_count;
215 extern int hf_zbee_zdp_assoc_device_count;
216 extern int hf_zbee_zdp_assoc_device;
217 extern int hf_zbee_zdp_cache_address;
218
219 /* Discovery indicies. */
220 extern int hf_zbee_zdp_cache;
221 extern int hf_zbee_zdp_disc_node_size;
222 extern int hf_zbee_zdp_disc_power_size;
223 extern int hf_zbee_zdp_disc_ep_count;
224 extern int hf_zbee_zdp_disc_simple_count;
225 extern int hf_zbee_zdp_disc_simple_size;
226
227 /* Descriptor indicies. */
228 extern int hf_zbee_zdp_complex_length;
229 extern int hf_zbee_zdp_user;
230 extern int hf_zbee_zdp_user_length;
231 extern int hf_zbee_zdp_simple_length;
232
233 /* Binding indicies. */
234 extern int hf_zbee_zdp_target;
235 extern int hf_zbee_zdp_replacement;
236 extern int hf_zbee_zdp_replacement_ep;
237 extern int hf_zbee_zdp_bind_src;
238 extern int hf_zbee_zdp_bind_src64;
239 extern int hf_zbee_zdp_bind_src_ep;
240 extern int hf_zbee_zdp_bind_dst;
241 extern int hf_zbee_zdp_bind_dst64;
242 extern int hf_zbee_zdp_bind_dst_ep;
243
244 /* Network Management indicies. */
245 extern int hf_zbee_zdp_duration;
246 extern int hf_zbee_zdp_leave_children;
247 extern int hf_zbee_zdp_leave_rejoin;
248 extern int hf_zbee_zdp_significance;
249 extern int hf_zbee_zdp_scan_count;
250 extern int hf_zbee_zdp_update_id;
251 extern int hf_zbee_zdp_manager;
252 extern int hf_zbee_zdp_tx_total;
253 extern int hf_zbee_zdp_tx_fail;
254 extern int hf_zbee_zdp_tx_retries;
255 extern int hf_zbee_zdp_period_time_results;
256 extern int hf_zbee_zdp_channel_count;
257 extern int hf_zbee_zdp_channel_mask;
258 extern int hf_zbee_zdp_channel_page;
259 extern int hf_zbee_zdp_channel_page_count;
260 extern int hf_zbee_zdp_channel_energy;
261 extern int hf_zbee_zdp_pan_eui64;
262 extern int hf_zbee_zdp_pan_uint;
263 extern int hf_zbee_zdp_channel;
264 extern int hf_zbee_zdp_nwk_desc_profile;
265 extern int hf_zbee_zdp_profile_version;
266 extern int hf_zbee_zdp_beacon;
267 extern int hf_zbee_zdp_superframe;
268 extern int hf_zbee_zdp_permit_joining;
269 extern int hf_zbee_zdp_extended_pan;
270 extern int hf_zbee_zdp_addr;
271 extern int hf_zbee_zdp_table_entry_type;
272 extern int hf_zbee_zdp_table_entry_idle_rx_0c;
273 extern int hf_zbee_zdp_table_entry_relationship_70;
274 extern int hf_zbee_zdp_table_entry_idle_rx_04;
275 extern int hf_zbee_zdp_table_entry_relationship_18;
276 extern int hf_zbee_zdp_depth;
277 extern int hf_zbee_zdp_permit_joining_03;
278 extern int hf_zbee_zdp_lqi;
279 extern int hf_zbee_zdp_ieee_join_start_index;
280 extern int hf_zbee_zdp_ieee_join_status;
281 extern int hf_zbee_zdp_ieee_join_update_id;
282 extern int hf_zbee_zdp_ieee_join_policy;
283 extern int hf_zbee_zdp_ieee_join_list_total;
284 extern int hf_zbee_zdp_ieee_join_list_start;
285 extern int hf_zbee_zdp_ieee_join_list_count;
286 extern int hf_zbee_zdp_ieee_join_list_ieee;
287 extern int hf_zbee_zdp_number_of_children;
288
289 /* Routing Table */
290 extern int hf_zbee_zdp_rtg;
291 extern int hf_zbee_zdp_rtg_entry;
292 extern int hf_zbee_zdp_rtg_destination;
293 extern int hf_zbee_zdp_rtg_next_hop;
294 extern int hf_zbee_zdp_rtg_status;
295
296
297 /* Subtree indicies. */
298 extern gint ett_zbee_zdp_endpoint;
299 extern gint ett_zbee_zdp_match_in;
300 extern gint ett_zbee_zdp_match_out;
301 extern gint ett_zbee_zdp_node;
302 extern gint ett_zbee_zdp_power;
303 extern gint ett_zbee_zdp_simple;
304 extern gint ett_zbee_zdp_cinfo;
305 extern gint ett_zbee_zdp_server;
306 extern gint ett_zbee_zdp_simple_sizes;
307 extern gint ett_zbee_zdp_bind;
308 extern gint ett_zbee_zdp_bind_entry;
309 extern gint ett_zbee_zdp_bind_end_in;
310 extern gint ett_zbee_zdp_bind_end_out;
311 extern gint ett_zbee_zdp_bind_source;
312 extern gint ett_zbee_zdp_assoc_device;
313 extern gint ett_zbee_zdp_nwk;
314 extern gint ett_zbee_zdp_lqi;
315 extern gint ett_zbee_zdp_rtg;
316 extern gint ett_zbee_zdp_cache;
317 extern gint ett_zbee_zdp_nwk_desc;
318 extern gint ett_zbee_zdp_table_entry;
319
320 /**************************************
321 * Helper Functions
322 **************************************
323 */
324 extern const gchar *zdp_status_name (guint8 status);
325 extern void zdp_dump_excess (tvbuff_t *tvb, guint offset, packet_info *pinfo, proto_tree *tree);
326 extern guint64 zbee_parse_eui64 (proto_tree *tree, int hfindex, tvbuff_t *tvb, guint *offset, guint length, proto_item **ti);
327 extern void zbee_append_info (proto_item *item, packet_info *pinfo, const gchar *format, ...) G_GNUC_PRINTF(3, 4);
328
329 extern void zdp_parse_node_desc (proto_tree *tree, packet_info *pinfo, gboolean show_ver_flags, gint ettindex, tvbuff_t *tvb, guint *offset, guint8 version);
330 extern void zdp_parse_power_desc (proto_tree *tree, gint ettindex, tvbuff_t *tvb, guint *offset);
331 extern void zdp_parse_simple_desc (proto_tree *tree, gint ettindex, tvbuff_t *tvb, guint *offset, guint8 version);
332 extern void zdp_parse_complex_desc (proto_tree *tree, gint ettindex, tvbuff_t *tvb, guint *offset, guint length);
333 extern void zdp_parse_bind_table_entry (proto_tree *tree, tvbuff_t *tvb, guint *offset, guint8 version);
334
335 extern guint8 zdp_parse_status (proto_tree *tree, tvbuff_t *tvb, guint *offset);
336 extern guint32 zdp_parse_chanmask (proto_tree *tree, tvbuff_t *tvb, guint *offset, int hf_page, int hf_channel);
337 extern guint8 zdp_parse_cinfo (proto_tree *tree, gint ettindex, tvbuff_t *tvb, guint *offset);
338 extern guint16 zdp_parse_server_flags (proto_tree *tree, gint ettindex, tvbuff_t *tvb, guint *offset);
339
340 /* Message dissector routines. */
341 extern void dissect_zbee_zdp_req_nwk_addr (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
342 extern void dissect_zbee_zdp_req_ext_addr (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
343 extern void dissect_zbee_zdp_req_node_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
344 extern void dissect_zbee_zdp_req_power_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
345 extern void dissect_zbee_zdp_req_simple_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
346 extern void dissect_zbee_zdp_req_active_ep (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
347 extern void dissect_zbee_zdp_req_match_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
348 extern void dissect_zbee_zdp_req_complex_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
349 extern void dissect_zbee_zdp_req_user_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
350 extern void dissect_zbee_zdp_req_discovery_cache (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
351 extern void dissect_zbee_zdp_device_annce (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
352 extern void dissect_zbee_zdp_parent_annce (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
353 extern void dissect_zbee_zdp_rsp_parent_annce (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
354 extern void dissect_zbee_zdp_req_set_user_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
355 extern void dissect_zbee_zdp_req_system_server_disc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
356 extern void dissect_zbee_zdp_req_store_discovery (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
357 extern void dissect_zbee_zdp_req_store_node_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
358 extern void dissect_zbee_zdp_req_store_power_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
359 extern void dissect_zbee_zdp_req_store_active_ep (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
360 extern void dissect_zbee_zdp_req_store_simple_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
361 extern void dissect_zbee_zdp_req_remove_node_cache (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
362 extern void dissect_zbee_zdp_req_find_node_cache (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
363 extern void dissect_zbee_zdp_req_ext_simple_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
364 extern void dissect_zbee_zdp_req_ext_active_ep (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
365
366 extern void dissect_zbee_zdp_req_end_device_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
367 extern void dissect_zbee_zdp_req_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
368 extern void dissect_zbee_zdp_req_unbind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
369 extern void dissect_zbee_zdp_req_bind_register (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
370 extern void dissect_zbee_zdp_req_replace_device (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
371 extern void dissect_zbee_zdp_req_store_bak_bind_entry (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
372 extern void dissect_zbee_zdp_req_remove_bak_bind_entry (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
373 extern void dissect_zbee_zdp_req_backup_bind_table (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
374 extern void dissect_zbee_zdp_req_recover_bind_table (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
375 extern void dissect_zbee_zdp_req_backup_source_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
376 extern void dissect_zbee_zdp_req_recover_source_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
377
378 extern void dissect_zbee_zdp_req_mgmt_nwk_disc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_channel);
379 extern void dissect_zbee_zdp_req_mgmt_lqi (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
380 extern void dissect_zbee_zdp_req_mgmt_rtg (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
381 extern void dissect_zbee_zdp_req_mgmt_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
382 extern void dissect_zbee_zdp_req_mgmt_leave (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
383 extern void dissect_zbee_zdp_req_mgmt_direct_join (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
384 extern void dissect_zbee_zdp_req_mgmt_permit_join (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
385 extern void dissect_zbee_zdp_req_mgmt_cache (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
386 extern void dissect_zbee_zdp_req_mgmt_nwkupdate (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
387 extern void dissect_zbee_zdp_req_mgmt_nwkupdate_enh (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
388 extern void dissect_zbee_zdp_req_mgmt_ieee_join_list (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
389 extern void dissect_zbee_zdp_req_mgmt_unsolicited_nwkupdate (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
390
391 extern void dissect_zbee_zdp_rsp_nwk_addr (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
392 extern void dissect_zbee_zdp_rsp_ext_addr (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
393 extern void dissect_zbee_zdp_rsp_node_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
394 extern void dissect_zbee_zdp_rsp_power_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
395 extern void dissect_zbee_zdp_rsp_simple_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
396 extern void dissect_zbee_zdp_rsp_active_ep (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
397 extern void dissect_zbee_zdp_rsp_match_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
398 extern void dissect_zbee_zdp_rsp_complex_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
399 extern void dissect_zbee_zdp_rsp_user_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
400 extern void dissect_zbee_zdp_rsp_user_desc_conf (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
401 extern void dissect_zbee_zdp_rsp_discovery_cache (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
402 extern void dissect_zbee_zdp_rsp_system_server_disc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
403 extern void dissect_zbee_zdp_rsp_discovery_store (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
404 extern void dissect_zbee_zdp_rsp_store_node_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
405 extern void dissect_zbee_zdp_rsp_store_power_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
406 extern void dissect_zbee_zdp_rsp_store_active_ep (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
407 extern void dissect_zbee_zdp_rsp_store_simple_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
408 extern void dissect_zbee_zdp_rsp_remove_node_cache (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
409 extern void dissect_zbee_zdp_rsp_find_node_cache (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
410 extern void dissect_zbee_zdp_rsp_ext_simple_desc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
411 extern void dissect_zbee_zdp_rsp_ext_active_ep (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
412
413 extern void dissect_zbee_zdp_rsp_end_device_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
414 extern void dissect_zbee_zdp_rsp_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
415 extern void dissect_zbee_zdp_rsp_unbind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
416 extern void dissect_zbee_zdp_rsp_bind_register (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
417 extern void dissect_zbee_zdp_rsp_replace_device (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
418 extern void dissect_zbee_zdp_rsp_store_bak_bind_entry (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
419 extern void dissect_zbee_zdp_rsp_remove_bak_bind_entry (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
420 extern void dissect_zbee_zdp_rsp_backup_bind_table (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
421 extern void dissect_zbee_zdp_rsp_recover_bind_table (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
422 extern void dissect_zbee_zdp_rsp_backup_source_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
423 extern void dissect_zbee_zdp_rsp_recover_source_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
424
425 extern void dissect_zbee_zdp_rsp_mgmt_nwk_disc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
426 extern void dissect_zbee_zdp_rsp_mgmt_lqi (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
427 extern void dissect_zbee_zdp_rsp_mgmt_rtg (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
428 extern void dissect_zbee_zdp_rsp_mgmt_bind (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 version);
429 extern void dissect_zbee_zdp_rsp_mgmt_leave (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
430 extern void dissect_zbee_zdp_rsp_mgmt_direct_join (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
431 extern void dissect_zbee_zdp_rsp_mgmt_permit_join (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
432 extern void dissect_zbee_zdp_rsp_mgmt_cache (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
433 extern void dissect_zbee_zdp_rsp_mgmt_nwkupdate (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
434 extern void dissect_zbee_zdp_rsp_mgmt_ieee_join_list (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
435
436 extern const value_string zbee_zdp_cluster_names[];
437 extern const value_string zbee_zdp_rtg_status_vals[];
438
439 #endif /* PACKET_ZBEE_ZDP_H */
440
441 /*
442 * Editor modelines - http://www.wireshark.org/tools/modelines.html
443 *
444 * Local variables:
445 * c-basic-offset: 4
446 * tab-width: 8
447 * indent-tabs-mode: nil
448 * End:
449 *
450 * vi: set shiftwidth=4 tabstop=8 expandtab:
451 * :indentSize=4:tabSize=8:noTabs=true:
452 */
_packet_info
Definition: packet_info.h:44
tvbuff
Definition: tvbuff-int.h:35
_value_string
Definition: value_string.h:24
_proto_node
Definition: proto.h:759