2 * Fibre Channel Basic Link Services header
3 * Copyright 2001, Dinesh G Dutt <ddutt@cisco.com>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef __PACKET_FCBLS_H_
27 #define __PACKET_FCBLS_H_
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
36 #define FC_BLS_BARJT_INVCMDCODE 0x01
37 #define FC_BLS_BARJT_LOGERR 0x03
38 #define FC_BLS_BARJT_LOGBSY 0x05
39 #define FC_BLS_BARJT_PROTERR 0x07
40 #define FC_BLS_BARJT_GENFAIL 0x09
41 #define FC_BLS_BARJT_VENDOR 0xFF
43 static const value_string fc_bls_barjt_val
[] = {
44 {FC_BLS_BARJT_INVCMDCODE
, "Invalid Cmd Code"},
45 {FC_BLS_BARJT_LOGERR
, "Logical Error"},
46 {FC_BLS_BARJT_LOGBSY
, "Logical Busy"},
47 {FC_BLS_BARJT_PROTERR
, "Protocol Error"},
48 {FC_BLS_BARJT_GENFAIL
, "Unable to Perform Cmd"},
49 {FC_BLS_BARJT_VENDOR
, "Vendor Unique Error"},
53 #define FC_BLS_BARJT_DET_NODET 0x01
54 #define FC_BLS_BARJT_DET_INVEXCHG 0x03
55 #define FC_BLS_BARJT_DET_SEQABT 0x05
57 static const value_string fc_bls_barjt_det_val
[] = {
58 {FC_BLS_BARJT_DET_NODET
, "No Details"},
59 {FC_BLS_BARJT_DET_INVEXCHG
, "Invalid OXID-RXID Combo"},
60 {FC_BLS_BARJT_DET_SEQABT
, "Sequence Aborted"},
64 static const value_string fc_bls_seqid_val
[] = {
70 typedef struct _fc_bls_ba_rjt
{