Rev 3912 | Rev 4704 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3912 | Rev 4558 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | * Copyright (c) 2009 Lukas Mejdrech |
2 | * Copyright (c) 2009 Lukas Mejdrech |
3 | * All rights reserved. |
3 | * All rights reserved. |
4 | * |
4 | * |
5 | * Redistribution and use in source and binary forms, with or without |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
6 | * modification, are permitted provided that the following conditions |
7 | * are met: |
7 | * are met: |
8 | * |
8 | * |
9 | * - Redistributions of source code must retain the above copyright |
9 | * - Redistributions of source code must retain the above copyright |
10 | * notice, this list of conditions and the following disclaimer. |
10 | * notice, this list of conditions and the following disclaimer. |
11 | * - Redistributions in binary form must reproduce the above copyright |
11 | * - Redistributions in binary form must reproduce the above copyright |
12 | * notice, this list of conditions and the following disclaimer in the |
12 | * notice, this list of conditions and the following disclaimer in the |
13 | * documentation and/or other materials provided with the distribution. |
13 | * documentation and/or other materials provided with the distribution. |
14 | * - The name of the author may not be used to endorse or promote products |
14 | * - The name of the author may not be used to endorse or promote products |
15 | * derived from this software without specific prior written permission. |
15 | * derived from this software without specific prior written permission. |
16 | * |
16 | * |
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup net_nil |
29 | /** @addtogroup net_nil |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** @file |
33 | /** @file |
34 | * Hardware types according to the on-line IANA - Address Resolution Protocol (ARP) Parameters - <http://www.iana.org/assignments/arp-parameters/arp-parameters.xml>, cited January 14 2009. |
34 | * Hardware types according to the on-line IANA - Address Resolution Protocol (ARP) Parameters - <http://www.iana.org/assignments/arp-parameters/arp-parameters.xml>, cited January 14 2009. |
35 | * Names similar to the linux src/include/linux/if_arp.h header file. |
35 | * Names similar to the linux src/include/linux/if_arp.h header file. |
36 | */ |
36 | */ |
37 | 37 | ||
38 | #ifndef __NET_HW_TYPES_H__ |
38 | #ifndef __NET_HW_TYPES_H__ |
39 | #define __NET_HW_TYPES_H__ |
39 | #define __NET_HW_TYPES_H__ |
40 | 40 | ||
- | 41 | #include <sys/types.h> |
|
- | 42 | ||
- | 43 | typedef uint8_t hw_type_t; |
|
- | 44 | ||
41 | /** Ethernet (10Mb) hardware type. |
45 | /** Ethernet (10Mb) hardware type. |
42 | */ |
46 | */ |
43 | #define HW_ETHER 1 |
47 | #define HW_ETHER 1 |
44 | 48 | ||
45 | /** Experimental Ethernet (3Mb) hardware type. |
49 | /** Experimental Ethernet (3Mb) hardware type. |
46 | */ |
50 | */ |
47 | #define HW_EETHER 2 |
51 | #define HW_EETHER 2 |
48 | 52 | ||
49 | /** Amateur Radio AX.25 hardware type. |
53 | /** Amateur Radio AX.25 hardware type. |
50 | */ |
54 | */ |
51 | #define HW_AX25 3 |
55 | #define HW_AX25 3 |
52 | 56 | ||
53 | /** Proteon ProNET Token Ring hardware type. |
57 | /** Proteon ProNET Token Ring hardware type. |
54 | */ |
58 | */ |
55 | #define HW_PRONET 4 |
59 | #define HW_PRONET 4 |
56 | 60 | ||
57 | /** Chaos hardware type. |
61 | /** Chaos hardware type. |
58 | */ |
62 | */ |
59 | #define HW_CHAOS 5 |
63 | #define HW_CHAOS 5 |
60 | 64 | ||
61 | /** IEEE 802 Networks hardware type. |
65 | /** IEEE 802 Networks hardware type. |
62 | */ |
66 | */ |
63 | #define HW_IEEE802 6 |
67 | #define HW_IEEE802 6 |
64 | 68 | ||
65 | /** ARCNET hardware type. |
69 | /** ARCNET hardware type. |
66 | */ |
70 | */ |
67 | #define HW_ARCNET 7 |
71 | #define HW_ARCNET 7 |
68 | 72 | ||
69 | /** Hyperchannel hardware type. |
73 | /** Hyperchannel hardware type. |
70 | */ |
74 | */ |
71 | #define HW_Hyperchannel 8 |
75 | #define HW_Hyperchannel 8 |
72 | 76 | ||
73 | /** Lanstar hardware type. |
77 | /** Lanstar hardware type. |
74 | */ |
78 | */ |
75 | #define HW_Lanstar 9 |
79 | #define HW_Lanstar 9 |
76 | 80 | ||
77 | /** Autonet Short Address hardware type. |
81 | /** Autonet Short Address hardware type. |
78 | */ |
82 | */ |
79 | #define HW_ASA 10 |
83 | #define HW_ASA 10 |
80 | 84 | ||
81 | /** LocalTalk hardware type. |
85 | /** LocalTalk hardware type. |
82 | */ |
86 | */ |
83 | #define HW_LocalTalk 11 |
87 | #define HW_LocalTalk 11 |
84 | 88 | ||
85 | /** LocalNet (IBM PCNet or SYTEK LocalNET) hardware type. |
89 | /** LocalNet (IBM PCNet or SYTEK LocalNET) hardware type. |
86 | */ |
90 | */ |
87 | #define HW_LocalNet 12 |
91 | #define HW_LocalNet 12 |
88 | 92 | ||
89 | /** Ultra link hardware type. |
93 | /** Ultra link hardware type. |
90 | */ |
94 | */ |
91 | #define HW_Ultra_link 13 |
95 | #define HW_Ultra_link 13 |
92 | 96 | ||
93 | /** SMDS hardware type. |
97 | /** SMDS hardware type. |
94 | */ |
98 | */ |
95 | #define HW_SMDS 14 |
99 | #define HW_SMDS 14 |
96 | 100 | ||
97 | /** Frame Relay DLCI hardware type. |
101 | /** Frame Relay DLCI hardware type. |
98 | */ |
102 | */ |
99 | #define HW_DLCI 15 |
103 | #define HW_DLCI 15 |
100 | 104 | ||
101 | /** Asynchronous Transmission Mode (ATM) hardware type. |
105 | /** Asynchronous Transmission Mode (ATM) hardware type. |
102 | */ |
106 | */ |
103 | #define HW_ATM 16 |
107 | #define HW_ATM 16 |
104 | 108 | ||
105 | /** HDLC hardware type. |
109 | /** HDLC hardware type. |
106 | */ |
110 | */ |
107 | #define HW_HDLC 17 |
111 | #define HW_HDLC 17 |
108 | 112 | ||
109 | /** Fibre Channel hardware type. |
113 | /** Fibre Channel hardware type. |
110 | */ |
114 | */ |
111 | #define HW_Fibre_Channel 18 |
115 | #define HW_Fibre_Channel 18 |
112 | 116 | ||
113 | /** Asynchronous Transmission Mode (ATM) hardware type. |
117 | /** Asynchronous Transmission Mode (ATM) hardware type. |
114 | */ |
118 | */ |
115 | #define HW_ATM2 19 |
119 | #define HW_ATM2 19 |
116 | 120 | ||
117 | /** Serial Line hardware type. |
121 | /** Serial Line hardware type. |
118 | */ |
122 | */ |
119 | #define HW_Serial_Line 20 |
123 | #define HW_Serial_Line 20 |
120 | 124 | ||
121 | /** Asynchronous Transmission Mode (ATM) hardware type. |
125 | /** Asynchronous Transmission Mode (ATM) hardware type. |
122 | */ |
126 | */ |
123 | #define HW_ATM3 21 |
127 | #define HW_ATM3 21 |
124 | 128 | ||
125 | /** MIL-STD-188-220 hardware type. |
129 | /** MIL-STD-188-220 hardware type. |
126 | */ |
130 | */ |
127 | #define HW_MIL_STD_188_220 22 |
131 | #define HW_MIL_STD_188_220 22 |
128 | 132 | ||
129 | /** Metricom hardware type. |
133 | /** Metricom hardware type. |
130 | */ |
134 | */ |
131 | #define HW_METRICOM 23 |
135 | #define HW_METRICOM 23 |
132 | 136 | ||
133 | /** IEEE 1394.1995 hardware type. |
137 | /** IEEE 1394.1995 hardware type. |
134 | */ |
138 | */ |
135 | #define HW_IEEE1394 24 |
139 | #define HW_IEEE1394 24 |
136 | 140 | ||
137 | /** MAPOS hardware type. |
141 | /** MAPOS hardware type. |
138 | */ |
142 | */ |
139 | #define HW_MAPOS 25 |
143 | #define HW_MAPOS 25 |
140 | 144 | ||
141 | /** Twinaxial hardware type. |
145 | /** Twinaxial hardware type. |
142 | */ |
146 | */ |
143 | #define HW_Twinaxial 26 |
147 | #define HW_Twinaxial 26 |
144 | 148 | ||
145 | /** EUI-64 hardware type. |
149 | /** EUI-64 hardware type. |
146 | */ |
150 | */ |
147 | #define HW_EUI64 27 |
151 | #define HW_EUI64 27 |
148 | 152 | ||
149 | /** HIPARP hardware type. |
153 | /** HIPARP hardware type. |
150 | */ |
154 | */ |
151 | #define HW_HIPARP 28 |
155 | #define HW_HIPARP 28 |
152 | 156 | ||
153 | /** IP and ARP over ISO 7816-3 hardware type. |
157 | /** IP and ARP over ISO 7816-3 hardware type. |
154 | */ |
158 | */ |
155 | #define HW_ISO_7816_3 29 |
159 | #define HW_ISO_7816_3 29 |
156 | 160 | ||
157 | /** ARPSec hardware type. |
161 | /** ARPSec hardware type. |
158 | */ |
162 | */ |
159 | #define HW_ARPSec 30 |
163 | #define HW_ARPSec 30 |
160 | 164 | ||
161 | /** IPsec tunnel hardware type. |
165 | /** IPsec tunnel hardware type. |
162 | */ |
166 | */ |
163 | #define HW_IPsec_tunnel 31 |
167 | #define HW_IPsec_tunnel 31 |
164 | 168 | ||
165 | /** InfiniBand (TM) hardware type. |
169 | /** InfiniBand (TM) hardware type. |
166 | */ |
170 | */ |
167 | #define HW_INFINIBAND 32 |
171 | #define HW_INFINIBAND 32 |
168 | 172 | ||
169 | /** TIA-102 Project 25 Common Air Interface (CAI) hardware type. |
173 | /** TIA-102 Project 25 Common Air Interface (CAI) hardware type. |
170 | */ |
174 | */ |
171 | #define HW_CAI 33 |
175 | #define HW_CAI 33 |
172 | 176 | ||
173 | /** Wiegand Interface hardware type. |
177 | /** Wiegand Interface hardware type. |
174 | */ |
178 | */ |
175 | #define HW_Wiegand 34 |
179 | #define HW_Wiegand 34 |
176 | 180 | ||
177 | /** Pure IP hardware type. |
181 | /** Pure IP hardware type. |
178 | */ |
182 | */ |
179 | #define HW_Pure_IP 35 |
183 | #define HW_Pure_IP 35 |
180 | 184 | ||
181 | #endif |
185 | #endif |
182 | 186 | ||
183 | /** @} |
187 | /** @} |
184 | */ |
188 | */ |
185 | 189 |