Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-fcswils.h
1 /* packet-fcswils.h
2  * Fibre Channel Switch InterLink Services Definitions
3  * Copyright 2001 Dinesh G Dutt (ddutt@cisco.com)
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
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
73 
74 typedef struct _fcswils_elp {
75  guint8 revision;
76  guint8 flags[2];
77  guint8 rsvd1;
78  guint32 r_a_tov;
79  guint32 e_d_tov;
80  guint8 req_epname[8];
81  guint8 req_sname[8];
82  guint8 clsf_svcparm[6];
83  guint16 clsf_rcvsize;
84  guint16 clsf_conseq;
85  guint16 clsf_e2e;
86  guint16 clsf_openseq;
87  guint16 rsvd;
88  guint8 cls1_svcparm[2];
89  guint16 cls1_rcvsize;
90  guint8 cls2_svcparm[2];
91  guint16 cls2_rcvsize;
92  guint8 cls3_svcparm[2];
93  guint16 cls3_rcvsize;
94  guint8 rsvd2[20];
95  guint16 isl_flwctrl_mode;
96  guint16 flw_ctrl_parmlen;
97  guint32 b2b_credit;
98  guint32 compat_p1;
99  guint32 compat_p2;
100  guint32 compat_p3;
101  guint32 compat_p4;
102 } fcswils_elp;
103 #define FC_SWILS_ELP_SIZE 100
104 
105 #define FC_SWILS_ELP_FC_VENDOR 0x1
106 #define FC_SWILS_ELP_FC_RRDY 0x2
107 
108 struct _fcswils_efp_didrec {
109  guint8 rec_type;
110  guint8 dom_id;
111  guint16 rsvd1;
112  guint32 rsvd2;
113  guint8 sname[8];
114 };
115 struct _fcswils_efp_mcastrec {
116  guint8 rec_type;
117  guint8 mcast_grpnum;
118  guint8 rsvd[14];
119 };
120 
121 typedef 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
128 
129 typedef struct _fcswils_efp {
130  guint8 opcode;
131  guint8 reclen;
132  guint16 payload_len;
133  guint8 rsvd1[3];
134  guint8 pswitch_prio;
135  guint8 pswitch_name[8];
136 } fcswils_efp;
137 #define FC_SWILS_EFP_SIZE 16
138 
139 typedef struct _fcswils_dia {
140  guint8 switch_name[8];
141  guint8 rsvd[4];
142 } fcswils_dia;
143 
144 typedef struct _fcswils_rdi_req {
145  guint8 rsvd[3];
146  guint8 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 
168 extern 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:26
Definition: packet-fcswils.h:120