Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-fcswils.h
1/* packet-fcswils.h
2 * Fibre Channel Switch InterLink Services Definitions
3 * Copyright 2001 Dinesh G Dutt ([email protected])
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <[email protected]>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12#ifndef __PACKET_FCSWILS_H_
13#define __PACKET_FCSWILS_H_
14
15/* Command codes */
16#define FC_SWILS_SWRJT 0x01
17#define FC_SWILS_SWACC 0x02
18#define FC_SWILS_ELP 0x10
19#define FC_SWILS_EFP 0x11
20#define FC_SWILS_DIA 0x12
21#define FC_SWILS_RDI 0x13
22#define FC_SWILS_HLO 0x14
23#define FC_SWILS_LSU 0x15
24#define FC_SWILS_LSA 0x16
25#define FC_SWILS_BF 0x17
26#define FC_SWILS_RCF 0x18
27#define FC_SWILS_RSCN 0x1B
28#define FC_SWILS_DRLIR 0x1E
29#define FC_SWILS_DSCN 0x20
30#define FC_SWILS_LOOPD 0x21
31#define FC_SWILS_MR 0x22
32#define FC_SWILS_ACA 0x23
33#define FC_SWILS_RCA 0x24
34#define FC_SWILS_SFC 0x25
35#define FC_SWILS_UFC 0x26
36#define FC_SWILS_ESC 0x30
37#define FC_SWILS_ESS 0x31
38#define FC_SWILS_MRRA 0x34
39#define FC_SWILS_AUTH_ILS 0x40
40#define FC_SWILS_MAXCODE 0x35 /* the dissector jump table is sized to
41 this table */
42
43/* Reject reason codes */
44
45#define FC_SWILS_RJT_INVCODE 0x01
46#define FC_SWILS_RJT_INVVER 0x02
47#define FC_SWILS_RJT_LOGERR 0x03
48#define FC_SWILS_RJT_INVSIZE 0x04
49#define FC_SWILS_RJT_LOGBSY 0x05
50#define FC_SWILS_RJT_PROTERR 0x07
51#define FC_SWILS_RJT_GENFAIL 0x09
52#define FC_SWILS_RJT_CMDNOTSUPP 0x0B
53#define FC_SWILS_RJT_VENDUNIQ 0xFF
54
55/* Detailed reason code defines */
56#define FC_SWILS_RJT_NODET 0x0
57#define FC_SWILS_RJT_CLSF_ERR 0x1
58#define FC_SWILS_RJT_CLSN_ERR 0x3
59#define FC_SWILS_RJT_INVFC_CODE 0x4
60#define FC_SWILS_RJT_INVFC_PARM 0x5
61#define FC_SWILS_RJT_INV_PNAME 0xD
62#define FC_SWILS_RJT_INV_SNAME 0xE
63#define FC_SWILS_RJT_TOV_MSMTCH 0xF
64#define FC_SWILS_RJT_INV_DIDLST 0x10
65#define FC_SWILS_RJT_CMD_INPROG 0x19
66#define FC_SWILS_RJT_OORSRC 0x29
67#define FC_SWILS_RJT_NO_DID 0x2A
68#define FC_SWILS_RJT_INV_DID 0x2B
69#define FC_SWILS_RJT_NO_REQ 0x2C
70#define FC_SWILS_RJT_NOLNK_PARM 0x2D
71#define FC_SWILS_RJT_NO_REQDID 0x2E
72#define FC_SWILS_RJT_EP_ISOL 0x2F
74typedef struct _fcswils_elp {
75 uint8_t revision;
76 uint8_t flags[2];
77 uint8_t rsvd1;
78 uint32_t r_a_tov;
79 uint32_t e_d_tov;
80 uint8_t req_epname[8];
81 uint8_t req_sname[8];
82 uint8_t clsf_svcparm[6];
83 uint16_t clsf_rcvsize;
84 uint16_t clsf_conseq;
85 uint16_t clsf_e2e;
86 uint16_t clsf_openseq;
87 uint16_t rsvd;
88 uint8_t cls1_svcparm[2];
89 uint16_t cls1_rcvsize;
90 uint8_t cls2_svcparm[2];
91 uint16_t cls2_rcvsize;
92 uint8_t cls3_svcparm[2];
93 uint16_t cls3_rcvsize;
94 uint8_t rsvd2[20];
95 uint16_t isl_flwctrl_mode;
96 uint16_t flw_ctrl_parmlen;
97 uint32_t b2b_credit;
98 uint32_t compat_p1;
99 uint32_t compat_p2;
100 uint32_t compat_p3;
101 uint32_t compat_p4;
103#define FC_SWILS_ELP_SIZE 100
104
105#define FC_SWILS_ELP_FC_VENDOR 0x1
106#define FC_SWILS_ELP_FC_RRDY 0x2
108struct _fcswils_efp_didrec {
109 uint8_t rec_type;
110 uint8_t dom_id;
111 uint16_t rsvd1;
112 uint32_t rsvd2;
113 uint8_t sname[8];
116 uint8_t rec_type;
117 uint8_t mcast_grpnum;
118 uint8_t rsvd[14];
119};
121typedef union _fcswils_efp_listrec {
122 struct _fcswils_efp_didrec didrec;
123 struct _fcswils_efp_mcastrec mcastrec;
125
126#define FC_SWILS_LRECTYPE_DOMAIN 0x1
127#define FC_SWILS_LRECTYPE_MCAST 0x2
129typedef struct _fcswils_efp {
130 uint8_t opcode;
131 uint8_t reclen;
132 uint16_t payload_len;
133 uint8_t rsvd1[3];
134 uint8_t pswitch_prio;
135 uint8_t pswitch_name[8];
137#define FC_SWILS_EFP_SIZE 16
139typedef struct _fcswils_dia {
140 uint8_t switch_name[8];
141 uint8_t rsvd[4];
144typedef struct _fcswils_rdi_req {
145 uint8_t rsvd[3];
146 uint8_t domain_id;
148#define FC_SWILS_RDIREQ_SIZE 4
149
150#define FC_SWILS_LSR_SLR 0x1 /* switch link record */
151#define FC_SWILS_LSR_ARS 0x2 /* AR Summary record */
152
153#define FC_SWILS_PDESC_FSPF_BB 0x01
154#define FC_SWILS_PDESC_FSPF 0x02
155
156#define FC_SWILS_ZONEOBJ_ZONESET 1
157#define FC_SWILS_ZONEOBJ_ZONE 2
158#define FC_SWILS_ZONEOBJ_ZONEALIAS 3
159
160#define FC_SWILS_ZONEMBR_WWN 1
161#define FC_SWILS_ZONEMBR_DP 2
162#define FC_SWILS_ZONEMBR_FCID 3
163#define FC_SWILS_ZONEMBR_ALIAS 4
164#define FC_SWILS_ZONEMBR_WWN_LUN 0xE1
165#define FC_SWILS_ZONEMBR_DP_LUN 0xE2
166#define FC_SWILS_ZONEMBR_FCID_LUN 0xE3
167
168extern const value_string fc_swils_zonembr_type_val[];
169
170#endif
Definition packet-fcswils.h:138
Definition packet-fcswils.h:107
Definition packet-fcswils.h:114
Definition packet-fcswils.h:128
Definition packet-fcswils.h:73
Definition packet-fcswils.h:143
Definition value_string.h:25
Definition packet-fcswils.h:120