Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-fcct.h
1 /* packet-fcct.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef __PACKET_FCCT_H_
11 #define __PACKET_FCCT_H_
12 
13 /* Well-known GSTYPEs */
14 #define FCCT_GSTYPE_KEYSVC 0xF7
15 #define FCCT_GSTYPE_ALIASSVC 0xF8
16 #define FCCT_GSTYPE_MGMTSVC 0xFA
17 #define FCCT_GSTYPE_TIMESVC 0xFB
18 #define FCCT_GSTYPE_DIRSVC 0xFC
19 #define FCCT_GSTYPE_FCTLR 0xFD
20 #define FCCT_GSTYPE_VENDOR 0xE0
21 
22 /* Well-known GSSUBTYPES */
23 /* Actual servers serving the directory service type identified by subtype */
24 #define FCCT_GSSUBTYPE_FCTLR 0x0
25 #define FCCT_GSSUBTYPE_DNS 0x02
26 #define FCCT_GSSUBTYPE_IP 0x03
27 #define FCCT_GSSUBTYPE_FCS 0x01
28 #define FCCT_GSSUBTYPE_UNS 0x02
29 #define FCCT_GSSUBTYPE_FZS 0x03
30 #define FCCT_GSSUBTYPE_AS 0x01
31 #define FCCT_GSSUBTYPE_TS 0x01
32 
33 /* Derived field: Server servicing the request */
34 #define FCCT_GSRVR_DNS 0x1
35 #define FCCT_GSRVR_IP 0x2
36 #define FCCT_GSRVR_FCS 0x3
37 #define FCCT_GSRVR_UNS 0x4
38 #define FCCT_GSRVR_FZS 0x5
39 #define FCCT_GSRVR_AS 0x6
40 #define FCCT_GSRVR_TS 0x7
41 #define FCCT_GSRVR_KS 0x8
42 #define FCCT_GSRVR_FCTLR 0x9
43 #define FCCT_GSRVR_UNKNOWN 0xFF
44 
45 /* Reject code definitions */
46 #define FCCT_RJT_INVCMDCODE 0x1
47 #define FCCT_RJT_INVVERSION 0x2
48 #define FCCT_RJT_LOGICALERR 0x3
49 #define FCCT_RJT_INVSIZE 0x4
50 #define FCCT_RJT_LOGICALBSY 0x5
51 #define FCCT_RJT_PROTOERR 0x7
52 #define FCCT_RJT_GENFAIL 0x9
53 #define FCCT_RJT_CMDNOTSUPP 0xB
54 
55 #define FCCT_MSG_REQ_MAX 0x8000 /* All opcodes below this are requests */
56 #define FCCT_MSG_RJT 0x8001 /* Reject CT message */
57 #define FCCT_MSG_ACC 0x8002 /* Accept CT message */
58 
59 #define FCCT_PRMBL_SIZE 16
60 #define FCCT_EXTPRMBL_SIZE 88
61 
62 extern const value_string fc_ct_gstype_vals [];
63 extern const value_string fc_ct_gsserver_vals [];
64 extern const value_string fc_ct_rjt_code_vals [];
65 extern guint8 get_gs_server (guint8 type, guint8 subtype);
66 
67 typedef struct _fc_ct_preamble {
68  guint32 in_id:24,
69  revision:8;
70  guint8 gstype;
71  guint8 gssubtype;
72  guint8 options;
73  guint8 rsvd1;
74  guint16 opcode;
75  guint16 maxres_size;
76  guint8 rsvd2;
77  guint8 rjt_code;
78  guint8 rjt_code_det;
79  guint8 rjt_code_vendor;
81 
82 typedef struct _fc_ct_ext_hdr {
83  guint32 auth_said;
84  guint32 tid;
85  guint32 req_pname[2];
86  guint32 timestamp[2];
87  guint32 auth_hashblk[15];
89 
90 #endif
Definition: packet-fcct.h:82
Definition: packet-fcct.h:67
Definition: value_string.h:26