aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_fc.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/if_fc.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/if_fc.h')
-rw-r--r--include/linux/if_fc.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/include/linux/if_fc.h b/include/linux/if_fc.h
new file mode 100644
index 000000000000..33330b458b95
--- /dev/null
+++ b/include/linux/if_fc.h
@@ -0,0 +1,50 @@
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Global definitions for Fibre Channel.
7 *
8 * Version: @(#)if_fc.h 0.0 11/20/98
9 *
10 * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
11 * Donald Becker, <becker@super.org>
12 * Peter De Schrijver, <stud11@cc4.kuleuven.ac.be>
13 * Vineet Abraham, <vma@iol.unh.edu>
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version
18 * 2 of the License, or (at your option) any later version.
19 */
20#ifndef _LINUX_IF_FC_H
21#define _LINUX_IF_FC_H
22
23
24#define FC_ALEN 6 /* Octets in one ethernet addr */
25#define FC_HLEN (sizeof(struct fch_hdr)+sizeof(struct fcllc))
26#define FC_ID_LEN 3 /* Octets in a Fibre Channel Address */
27
28/* LLC and SNAP constants */
29#define EXTENDED_SAP 0xAA
30#define UI_CMD 0x03
31
32/* This is NOT the Fibre Channel frame header. The FC frame header is
33 * constructed in the driver as the Tachyon needs certain fields in
34 * certains positions. So, it can't be generalized here.*/
35
36struct fch_hdr {
37 __u8 daddr[FC_ALEN]; /* destination address */
38 __u8 saddr[FC_ALEN]; /* source address */
39};
40
41/* This is a Fibre Channel LLC structure */
42struct fcllc {
43 __u8 dsap; /* destination SAP */
44 __u8 ssap; /* source SAP */
45 __u8 llc; /* LLC control field */
46 __u8 protid[3]; /* protocol id */
47 __u16 ethertype; /* ether type field */
48};
49
50#endif /* _LINUX_IF_FC_H */