HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / dissectors / packet-fcct.h
blob1b4e9bf495750584855d80b7d538bb58f76d26fa
1 /* packet-fcct.h
3 * $Id$
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef __PACKET_FCCT_H_
25 #define __PACKET_FCCT_H_
27 /* Well-known GSTYPEs */
28 #define FCCT_GSTYPE_KEYSVC 0xF7
29 #define FCCT_GSTYPE_ALIASSVC 0xF8
30 #define FCCT_GSTYPE_MGMTSVC 0xFA
31 #define FCCT_GSTYPE_TIMESVC 0xFB
32 #define FCCT_GSTYPE_DIRSVC 0xFC
33 #define FCCT_GSTYPE_FCTLR 0xFD
34 #define FCCT_GSTYPE_VENDOR 0xE0
36 /* Well-known GSSUBTYPES */
37 /* Actual servers serving the directory service type identified by subtype */
38 #define FCCT_GSSUBTYPE_FCTLR 0x0
39 #define FCCT_GSSUBTYPE_DNS 0x02
40 #define FCCT_GSSUBTYPE_IP 0x03
41 #define FCCT_GSSUBTYPE_FCS 0x01
42 #define FCCT_GSSUBTYPE_UNS 0x02
43 #define FCCT_GSSUBTYPE_FZS 0x03
44 #define FCCT_GSSUBTYPE_AS 0x01
45 #define FCCT_GSSUBTYPE_TS 0x01
47 /* Derived field: Server servicing the request */
48 #define FCCT_GSRVR_DNS 0x1
49 #define FCCT_GSRVR_IP 0x2
50 #define FCCT_GSRVR_FCS 0x3
51 #define FCCT_GSRVR_UNS 0x4
52 #define FCCT_GSRVR_FZS 0x5
53 #define FCCT_GSRVR_AS 0x6
54 #define FCCT_GSRVR_TS 0x7
55 #define FCCT_GSRVR_KS 0x8
56 #define FCCT_GSRVR_FCTLR 0x9
57 #define FCCT_GSRVR_UNKNOWN 0xFF
59 /* Reject code definitions */
60 #define FCCT_RJT_INVCMDCODE 0x1
61 #define FCCT_RJT_INVVERSION 0x2
62 #define FCCT_RJT_LOGICALERR 0x3
63 #define FCCT_RJT_INVSIZE 0x4
64 #define FCCT_RJT_LOGICALBSY 0x5
65 #define FCCT_RJT_PROTOERR 0x7
66 #define FCCT_RJT_GENFAIL 0x9
67 #define FCCT_RJT_CMDNOTSUPP 0xB
69 #define FCCT_MSG_REQ_MAX 0x8000 /* All opcodes below this are requests */
70 #define FCCT_MSG_RJT 0x8001 /* Reject CT message */
71 #define FCCT_MSG_ACC 0x8002 /* Accept CT message */
73 #define FCCT_PRMBL_SIZE 16
74 #define FCCT_EXTPRMBL_SIZE 88
76 extern const value_string fc_ct_gstype_vals [];
77 extern const value_string fc_ct_gsserver_vals [];
78 extern const value_string fc_ct_rjt_code_vals [];
79 extern guint8 get_gs_server (guint8 type, guint8 subtype);
81 typedef struct _fc_ct_preamble {
82 guint32 in_id:24,
83 revision:8;
84 guint8 gstype;
85 guint8 gssubtype;
86 guint8 options;
87 guint8 rsvd1;
88 guint16 opcode;
89 guint16 maxres_size;
90 guint8 rsvd2;
91 guint8 rjt_code;
92 guint8 rjt_code_det;
93 guint8 rjt_code_vendor;
94 } fc_ct_preamble;
96 typedef struct _fc_ct_ext_hdr {
97 guint32 auth_said;
98 guint32 tid;
99 guint32 req_pname[2];
100 guint32 timestamp[2];
101 guint32 auth_hashblk[15];
102 } fc_ct_ext_hdr;
104 #endif