Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-fcct.h
1/* packet-fcct.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <[email protected]>
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
62extern const value_string fc_ct_gstype_vals [];
63extern const value_string fc_ct_gsserver_vals [];
64extern const value_string fc_ct_rjt_code_vals [];
65extern uint8_t get_gs_server (uint8_t type, uint8_t subtype);
66
67typedef struct _fc_ct_preamble {
68 uint32_t in_id:24,
69 revision:8;
70 uint8_t gstype;
71 uint8_t gssubtype;
72 uint8_t options;
73 uint8_t rsvd1;
74 uint16_t opcode;
75 uint16_t maxres_size;
76 uint8_t rsvd2;
77 uint8_t rjt_code;
78 uint8_t rjt_code_det;
79 uint8_t rjt_code_vendor;
81
82typedef struct _fc_ct_ext_hdr {
83 uint32_t auth_said;
84 uint32_t tid;
85 uint32_t req_pname[2];
86 uint32_t timestamp[2];
87 uint32_t auth_hashblk[15];
89
90#endif
Definition packet-fcct.h:82
Definition packet-fcct.h:67
Definition value_string.h:25