3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef __PACKET_FCCT_H_
11 #define __PACKET_FCCT_H_
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
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
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
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
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 */
59 #define FCCT_PRMBL_SIZE 16
60 #define FCCT_EXTPRMBL_SIZE 88
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 uint8_t get_gs_server (uint8_t type
, uint8_t subtype
);
67 typedef struct _fc_ct_preamble
{
79 uint8_t rjt_code_vendor
;
82 typedef struct _fc_ct_ext_hdr
{
85 uint32_t req_pname
[2];
86 uint32_t timestamp
[2];
87 uint32_t auth_hashblk
[15];