Move dissectors to epan/dissectors directory.
[obnox/wireshark/wip.git] / epan / dissectors / packet-fclctl.h
1 /* packet-fclctl.h
2  * Fibre Channel Link Control definitions
3  * Copyright 2001 Dinesh G Dutt (ddutt@cisco.com)
4  *
5  * $Id$
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_FCLCTL_H_
27 #define __PACKET_FCLCTL_H_
28
29 #define FC_LCTL_ACK1      0x00
30 #define FC_LCTL_ACK0      0x01
31 #define FC_LCTL_PRJT      0x02
32 #define FC_LCTL_FRJT      0x03
33 #define FC_LCTL_PBSY      0x04
34 #define FC_LCTL_FBSYL     0x05
35 #define FC_LCTL_FBSYB     0x06
36 #define FC_LCTL_LCR       0x07
37 #define FC_LCTL_NTY       0x08
38 #define FC_LCTL_END       0x09
39
40 extern const value_string fc_lctl_proto_val[];
41
42 #define FC_LCTL_FBSY_FBSY  0x01
43 #define FC_LCTL_FBSY_NBSY  0x03
44
45 #define FC_LCTL_PBSY_ACODE_SEQBSY 0x01
46 #define FC_LCTL_PBSY_ACODE_C2BSY  0x02
47
48 #define FC_LCTL_PBSY_PORTBSY      0x01
49 #define FC_LCTL_PBSY_RSRCBSY      0x03
50 #define FC_LCTL_PBSY_MCASTBSY     0x07 
51 #define FC_LCTL_PBSY_VENDBSY      0xFF
52
53 #define FC_LCTL_RJT_ACODE_RETRY   0x01
54 #define FC_LCTL_RJT_ACODE_NORETRY 0x02
55
56 #define FC_LCTL_RJT_INVDID                 0x01
57 #define FC_LCTL_RJT_INVSID                 0x02
58 #define FC_LCTL_RJT_NPORT_NOTAVAIL_T       0x03
59 #define FC_LCTL_RJT_NPORT_NOTAVAIL_P       0x04
60 #define FC_LCTL_RJT_CLASS_NOTSUPP          0x05
61 #define FC_LCTL_RJT_DELIM_USERR            0x06
62 #define FC_LCTL_RJT_TYPE_NOTSUPP           0x07
63 #define FC_LCTL_RJT_INV_LCTL               0x08
64 #define FC_LCTL_RJT_INV_RCTL               0x09
65 #define FC_LCTL_RJT_INV_FCTL               0x0A
66 #define FC_LCTL_RJT_INV_OXID               0x0B
67 #define FC_LCTL_RJT_INV_RXID               0x0C
68 #define FC_LCTL_RJT_INV_SEQID              0x0D
69 #define FC_LCTL_RJT_INV_DFCTL              0x0E
70 #define FC_LCTL_RJT_INV_SEQCNT             0x0F
71 #define FC_LCTL_RJT_INV_PARAM              0x10
72 #define FC_LCTL_RJT_EXCHG_ERR              0x11
73 #define FC_LCTL_RJT_PROTO_ERR              0x12
74 #define FC_LCTL_RJT_INV_LEN                0x13
75 #define FC_LCTL_RJT_UNEXP_ACK              0x14
76 #define FC_LCTL_RJT_CLS_NOTSUPP            0x15
77 #define FC_LCTL_RJT_LOGI_REQD              0x16
78 #define FC_LCTL_RJT_TOOMANY_SEQ            0x17
79 #define FC_LCTL_RJT_EXCHG_NOTESTD          0x18 
80 #define FC_LCTL_RJT_RSVD                   0x19
81 #define FC_LCTL_RJT_FPATH_NOTAVAIL         0x1A
82 #define FC_LCTL_RJT_INV_VCID               0x1B 
83 #define FC_LCTL_RJT_INV_CSCTL              0x1C
84 #define FC_LCTL_RJT_OORSRC                 0x1D
85 #define FC_LCTL_RJT_INV_CLASS              0x1F
86 #define FC_LCTL_RJT_PRMPT_RJT              0x20
87 #define FC_LCTL_RJT_PRMPT_DIS              0x21 
88 #define FC_LCTL_RJT_MCAST_ERR              0x22
89 #define FC_LCTL_RJT_MCAST_TERM             0x23
90 #define FC_LCTL_RJT_PRLI_REQD              0x24
91 #define FC_LCTL_RJT_VEND_ERR               0xFF
92
93 /* Function definitions */
94 gchar *fclctl_get_typestr (guint8 linkctl_type, guint8 type);
95 gchar *fclctl_get_paramstr (guint32 linkctl_type, guint32 param);
96 #endif