aboutsummaryrefslogtreecommitdiffstats
path: root/packet-fcsp.h
blob: 2c1f9ef5a8568906bb4890a0b192635699b57dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* packet-fc-sp.h
 * Routines for Fibre Channel Security Protocol
 * This decoder is for FC-SP version 1.1
 * Copyright 2003 Dinesh G Dutt (ddutt@cisco.com)
 *
 * Ethereal - Network traffic analyzer
 * By Gerald Combs <gerald@ethereal.com>
 * Copyright 1998 Gerald Combs
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#ifndef __PACKET_FCSP_H_
#define __PACKET_FCSP_H_

/* Message Codes */
#define FC_AUTH_MSG_AUTH_REJECT        0x0A 
#define FC_AUTH_MSG_AUTH_NEGOTIATE     0x0B 
#define FC_AUTH_MSG_AUTH_DONE          0x0C 
#define FC_AUTH_DHCHAP_CHALLENGE       0x10 
#define FC_AUTH_DHCHAP_REPLY           0x11 
#define FC_AUTH_DHCHAP_SUCCESS         0x12 
#define FC_AUTH_FCAP_REQUEST           0x13 
#define FC_AUTH_FCAP_ACKNOWLEDGE       0x14 
#define FC_AUTH_FCAP_CONFIRM           0x15 
#define FC_AUTH_FCPAP_INIT             0x16 
#define FC_AUTH_FCPAP_ACCEPT           0x17 
#define FC_AUTH_FCPAP_COMPLETE         0x18

#define FC_AUTH_NAME_TYPE_WWN          0x1

#define FC_AUTH_PROTO_TYPE_DHCHAP      0x1
#define FC_AUTH_PROTO_TYPE_FCAP        0x2

#define FC_AUTH_DHCHAP_HASH_MD5        0x5
#define FC_AUTH_DHCHAP_HASH_SHA1       0x6

#define FC_AUTH_DHCHAP_PARAM_HASHLIST  0x1
#define FC_AUTH_DHCHAP_PARAM_DHgIDLIST 0x2

void dissect_fcsp (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);

#endif