HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / dissectors / packet-zep.h
blob52b8cb0689e47fcee8bdd02262d5aca0bdc4db84
1 /* packet-zep.h
2 * Dissector routines for the ZigBee Encapsulation Protocol
3 * By Owen Kirby <osk@exegin.com>
4 * Copyright 2009 Exegin Technologies Limited
6 * $Id$
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 #define ZEP_DEFAULT_PORT 17754
29 /* ZEP Preamble Code */
30 #define ZEP_PREAMBLE "EX"
32 /* ZEP Header lengths. */
33 #define ZEP_V1_HEADER_LEN 16
34 #define ZEP_V2_HEADER_LEN 32
35 #define ZEP_V2_ACK_LEN 8
37 #define ZEP_V2_TYPE_DATA 1
38 #define ZEP_V2_TYPE_ACK 2
40 #define ZEP_LENGTH_MASK 0x7F
42 typedef struct{
43 guint8 version;
44 guint8 type;
45 guint8 channel_id;
46 guint16 device_id;
47 gboolean lqi_mode;
48 guint8 lqi;
49 nstime_t ntp_time;
50 guint32 seqno;
51 } zep_info;