5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef __PACKET_FCFZS_H_
25 #define __PACKET_FCFZS_H_
27 /* Opcode definitions */
28 #define FC_FZS_GZC 0x100
29 #define FC_FZS_GEST 0x111
30 #define FC_FZS_GZSN 0x112
31 #define FC_FZS_GZD 0x113
32 #define FC_FZS_GZM 0x114
33 #define FC_FZS_GAZS 0x115
34 #define FC_FZS_GZS 0x116
35 #define FC_FZS_ADZS 0x200
36 #define FC_FZS_AZSD 0x201
37 #define FC_FZS_AZS 0x202
38 #define FC_FZS_DZS 0x203
39 #define FC_FZS_AZM 0x204
40 #define FC_FZS_AZD 0x205
41 #define FC_FZS_RZM 0x300
42 #define FC_FZS_RZD 0x301
43 #define FC_FZS_RZS 0x302
45 static const value_string fc_fzs_opcode_val
[] = {
46 {FC_FZS_GZC
, "Get Capabilities"},
47 {FC_FZS_GEST
, "Get Enforcement State"},
48 {FC_FZS_GZSN
, "Get Zone Set List"},
49 {FC_FZS_GZD
, "Get Zone List"},
50 {FC_FZS_GZM
, "Get Zone Member List"},
51 {FC_FZS_GAZS
, "Get Active Zone Set"},
52 {FC_FZS_GZS
, "Get Zone Set"},
53 {FC_FZS_ADZS
, "Add Zone Set"},
54 {FC_FZS_AZSD
, "Activate Zone Set Direct"},
55 {FC_FZS_AZS
, "Activate Zone Set"},
56 {FC_FZS_DZS
, "Deactivate Zone Set"},
57 {FC_FZS_AZM
, "Add Zone Members"},
58 {FC_FZS_AZD
, "Add Zone"},
59 {FC_FZS_RZM
, "Remove Zone Members"},
60 {FC_FZS_RZD
, "Remove Zone"},
61 {FC_FZS_RZS
, "Remove Zone Set"},
62 {FCCT_MSG_ACC
, "MSG_ACC"},
63 {FCCT_MSG_RJT
, "MSG_RJT"},
67 /* Reason code explanations */
68 #define FC_FZS_RJT_NODETAIL 0x0
69 #define FC_FZS_RJT_ZONENOTSUPPORTED 0x1
70 #define FC_FZS_RJT_ZSNUNKNOWN 0x10
71 #define FC_FZS_RJT_NZSACTIVE 0x11
72 #define FC_FZS_RJT_ZONEUNKNOWN 0x12
73 #define FC_FZS_RJT_ZONESTATEUNKNOWN 0x13
74 #define FC_FZS_RJT_INVLDPLEN 0x14
75 #define FC_FZS_RJT_ZSTOOLARGE 0x15
76 #define FC_FZS_RJT_DZSFAIL 0x16
77 #define FC_FZS_RJT_NOTSUPPORTED 0x17
78 #define FC_FZS_RJT_CAPNOTSUPPORTED 0x18
79 #define FC_FZS_RJT_ZMIDTYPEUNKNOWN 0x19
80 #define FC_FZS_RJT_INVLDZSDEF 0x1A
82 static const value_string fc_fzs_rjt_code_val
[] = {
83 {FC_FZS_RJT_NODETAIL
, "No Additional Explanation"},
84 {FC_FZS_RJT_ZONENOTSUPPORTED
, "Zones Not Supported"},
85 {FC_FZS_RJT_ZSNUNKNOWN
, "Zone Set Name Unknown"},
86 {FC_FZS_RJT_NZSACTIVE
, "No Zone Set Active"},
87 {FC_FZS_RJT_ZONEUNKNOWN
, "Zone Name Unknown"},
88 {FC_FZS_RJT_ZONESTATEUNKNOWN
, "Zone State Unknown"},
89 {FC_FZS_RJT_INVLDPLEN
, "Incorrect Payload Length"},
90 {FC_FZS_RJT_ZSTOOLARGE
, "Zone Set to be Activated Too Large"},
91 {FC_FZS_RJT_DZSFAIL
, "Deactivate Zone Set Failed"},
92 {FC_FZS_RJT_NOTSUPPORTED
, "Request Not Supported"},
93 {FC_FZS_RJT_CAPNOTSUPPORTED
, "Capability Not Supported"},
94 {FC_FZS_RJT_ZMIDTYPEUNKNOWN
, "Zone Member Identifier Type Not Supported"},
95 {FC_FZS_RJT_INVLDZSDEF
, "Invalid Zone Set Definition"},
99 /* Zone Member Identifier Types */
101 #define FC_FZS_ZONEMBR_PWWN 1
102 #define FC_FZS_ZONEMBR_DP 2
103 #define FC_FZS_ZONEMBR_FCID 3
104 #define FC_FZS_ZONEMBR_NWWN 4
105 #define FC_FZS_ZONEMBR_PWWN_LUN 0xE1
106 #define FC_FZS_ZONEMBR_DP_LUN 0xE2
107 #define FC_FZS_ZONEMBR_FCID_LUN 0xE3
109 static const value_string fc_fzs_zonembr_type_val
[] = {
111 {FC_FZS_ZONEMBR_PWWN
, "N_Port WWN"},
112 {FC_FZS_ZONEMBR_DP
, "Domain/Physical Port (0x00ddpppp)"},
113 {FC_FZS_ZONEMBR_FCID
, "FC Address"},
114 {FC_FZS_ZONEMBR_NWWN
, "Node WWN"},
115 {FC_FZS_ZONEMBR_PWWN_LUN
, "N_Port WWN+LUN"},
116 {FC_FZS_ZONEMBR_DP_LUN
, "Domain/Physical Port+LUN"},
117 {FC_FZS_ZONEMBR_FCID_LUN
, "FC Address+LUN"},