Fix some places where "Ethereal" wasn't capitalized and boldfaced.
[obnox/wireshark/wip.git] / packet-fcbls.h
1 /* packet-fcbls.h
2  * Fibre Channel Basic Link Services header
3  * Copyright 2001, Dinesh G Dutt <ddutt@cisco.com>
4  *
5  * $Id: packet-fcbls.h,v 1.1 2002/12/08 02:32:17 gerald Exp $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
9  * Copyright 1998 Gerald Combs
10  * 
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  * 
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifndef __PACKET_FCBLS_H_
27 #define __PACKET_FCBLS_H_
28
29 #define FC_BLS_NOP          0x00
30 #define FC_BLS_ABTS         0x01
31 #define FC_BLS_RMC          0x02
32 #define FC_BLS_BAACC        0x04 
33 #define FC_BLS_BARJT        0x05
34 #define FC_BLS_PRMT         0x06
35
36 static const value_string fc_bls_proto_val[] = {
37     {FC_BLS_NOP    , "NOP"},
38     {FC_BLS_ABTS   , "ABTS"},
39     {FC_BLS_RMC    , "RMC"},
40     {FC_BLS_BAACC  , "BA_ACC"},
41     {FC_BLS_BARJT  , "BA_RJT"},
42     {FC_BLS_PRMT   , "PRMT"},
43     {0, NULL},
44 };
45
46 #define FC_BLS_BARJT_INVCMDCODE     0x01
47 #define FC_BLS_BARJT_LOGERR         0x03
48 #define FC_BLS_BARJT_LOGBSY         0x05
49 #define FC_BLS_BARJT_PROTERR        0x07
50 #define FC_BLS_BARJT_GENFAIL        0x09
51 #define FC_BLS_BARJT_VENDOR         0xFF
52
53 static const value_string fc_bls_barjt_val[] = {
54     {FC_BLS_BARJT_INVCMDCODE, "Invalid Cmd Code"},
55     {FC_BLS_BARJT_LOGERR    , "Logical Error"},
56     {FC_BLS_BARJT_LOGBSY    , "Logical Busy"},
57     {FC_BLS_BARJT_PROTERR   , "Protocol Error"},
58     {FC_BLS_BARJT_GENFAIL   , "Unable to Perform Cmd"},
59     {FC_BLS_BARJT_VENDOR    , "Vendor Unique Error"},
60     {0, NULL},
61 };
62
63 #define FC_BLS_BARJT_DET_NODET      0x01
64 #define FC_BLS_BARJT_DET_INVEXCHG   0x03
65 #define FC_BLS_BARJT_DET_SEQABT     0x05
66
67 static const value_string fc_bls_barjt_det_val[] = {
68     {FC_BLS_BARJT_DET_NODET   , "No Details"},
69     {FC_BLS_BARJT_DET_INVEXCHG, "Invalid OXID-RXID Combo"},
70     {FC_BLS_BARJT_DET_SEQABT  , "Sequence Aborted"},
71     {0, NULL},
72 };
73
74 static const value_string fc_bls_seqid_val[] = {
75     {0x80, "Yes"},
76     {0x0,  "No"},
77     {0, NULL},
78 };
79
80 typedef struct _fc_bls_ba_rjt {
81     guint8 rsvd;
82     guint8 reason_code;
83     guint8 rjt_detail;
84     guint8 vendor_uniq;
85 } fc_bls_ba_rjt;
86
87 #endif