Wireshark  4.3.0
The Wireshark network protocol analyzer
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  * 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_FCBLS_H_
13 #define __PACKET_FCBLS_H_
14 
15 #define FC_BLS_NOP 0x00
16 #define FC_BLS_ABTS 0x01
17 #define FC_BLS_RMC 0x02
18 #define FC_BLS_BAACC 0x04
19 #define FC_BLS_BARJT 0x05
20 #define FC_BLS_PRMT 0x06
21 
22 #define FC_BLS_BARJT_INVCMDCODE 0x01
23 #define FC_BLS_BARJT_LOGERR 0x03
24 #define FC_BLS_BARJT_LOGBSY 0x05
25 #define FC_BLS_BARJT_PROTERR 0x07
26 #define FC_BLS_BARJT_GENFAIL 0x09
27 #define FC_BLS_BARJT_VENDOR 0xFF
28 
29 static const value_string fc_bls_barjt_val[] = {
30  {FC_BLS_BARJT_INVCMDCODE, "Invalid Cmd Code"},
31  {FC_BLS_BARJT_LOGERR , "Logical Error"},
32  {FC_BLS_BARJT_LOGBSY , "Logical Busy"},
33  {FC_BLS_BARJT_PROTERR , "Protocol Error"},
34  {FC_BLS_BARJT_GENFAIL , "Unable to Perform Cmd"},
35  {FC_BLS_BARJT_VENDOR , "Vendor Unique Error"},
36  {0, NULL},
37 };
38 
39 #define FC_BLS_BARJT_DET_NODET 0x01
40 #define FC_BLS_BARJT_DET_INVEXCHG 0x03
41 #define FC_BLS_BARJT_DET_SEQABT 0x05
42 
43 static const value_string fc_bls_barjt_det_val[] = {
44  {FC_BLS_BARJT_DET_NODET , "No Details"},
45  {FC_BLS_BARJT_DET_INVEXCHG, "Invalid OXID-RXID Combo"},
46  {FC_BLS_BARJT_DET_SEQABT , "Sequence Aborted"},
47  {0, NULL},
48 };
49 
50 static const value_string fc_bls_seqid_val[] = {
51  {0x80, "Yes"},
52  {0x0, "No"},
53  {0, NULL},
54 };
55 
56 typedef struct _fc_bls_ba_rjt {
57  guint8 rsvd;
58  guint8 reason_code;
59  guint8 rjt_detail;
60  guint8 vendor_uniq;
62 
63 #endif
Definition: packet-fcbls.h:56
Definition: value_string.h:26