Rev 4704 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4704 | Rev 4728 | ||
---|---|---|---|
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. |
- | |
36 | */ |
35 | */ |
37 | 36 | ||
38 | #ifndef __NET_HW_TYPES_H__ |
37 | #ifndef __NET_HW_TYPES_H__ |
39 | #define __NET_HW_TYPES_H__ |
38 | #define __NET_HW_TYPES_H__ |
40 | 39 | ||
41 | #include <sys/types.h> |
40 | #include <sys/types.h> |
42 | 41 | ||
43 | /** Network interface layer type type definition. |
42 | /** Network interface layer type type definition. |
44 | */ |
43 | */ |
45 | typedef uint8_t hw_type_t; |
44 | typedef uint8_t hw_type_t; |
46 | 45 | ||
47 | /** @name Network interface layer types definitions |
46 | /** @name Network interface layer types definitions |
48 | */ |
47 | */ |
49 | /*@{*/ |
48 | /*@{*/ |
50 | 49 | ||
51 | /** Ethernet (10Mb) hardware type. |
50 | /** Ethernet (10Mb) hardware type. |
52 | */ |
51 | */ |
53 | #define HW_ETHER 1 |
52 | #define HW_ETHER 1 |
54 | 53 | ||
55 | /** Experimental Ethernet (3Mb) hardware type. |
54 | /** Experimental Ethernet (3Mb) hardware type. |
56 | */ |
55 | */ |
57 | #define HW_EETHER 2 |
56 | #define HW_EETHER 2 |
58 | 57 | ||
59 | /** Amateur Radio AX.25 hardware type. |
58 | /** Amateur Radio AX.25 hardware type. |
60 | */ |
59 | */ |
61 | #define HW_AX25 3 |
60 | #define HW_AX25 3 |
62 | 61 | ||
63 | /** Proteon ProNET Token Ring hardware type. |
62 | /** Proteon ProNET Token Ring hardware type. |
64 | */ |
63 | */ |
65 | #define HW_PRONET 4 |
64 | #define HW_PRONET 4 |
66 | 65 | ||
67 | /** Chaos hardware type. |
66 | /** Chaos hardware type. |
68 | */ |
67 | */ |
69 | #define HW_CHAOS 5 |
68 | #define HW_CHAOS 5 |
70 | 69 | ||
71 | /** IEEE 802 Networks hardware type. |
70 | /** IEEE 802 Networks hardware type. |
72 | */ |
71 | */ |
73 | #define HW_IEEE802 6 |
72 | #define HW_IEEE802 6 |
74 | 73 | ||
75 | /** ARCNET hardware type. |
74 | /** ARCNET hardware type. |
76 | */ |
75 | */ |
77 | #define HW_ARCNET 7 |
76 | #define HW_ARCNET 7 |
78 | 77 | ||
79 | /** Hyperchannel hardware type. |
78 | /** Hyperchannel hardware type. |
80 | */ |
79 | */ |
81 | #define HW_Hyperchannel 8 |
80 | #define HW_Hyperchannel 8 |
82 | 81 | ||
83 | /** Lanstar hardware type. |
82 | /** Lanstar hardware type. |
84 | */ |
83 | */ |
85 | #define HW_Lanstar 9 |
84 | #define HW_Lanstar 9 |
86 | 85 | ||
87 | /** Autonet Short Address hardware type. |
86 | /** Autonet Short Address hardware type. |
88 | */ |
87 | */ |
89 | #define HW_ASA 10 |
88 | #define HW_ASA 10 |
90 | 89 | ||
91 | /** LocalTalk hardware type. |
90 | /** LocalTalk hardware type. |
92 | */ |
91 | */ |
93 | #define HW_LocalTalk 11 |
92 | #define HW_LocalTalk 11 |
94 | 93 | ||
95 | /** LocalNet (IBM PCNet or SYTEK LocalNET) hardware type. |
94 | /** LocalNet (IBM PCNet or SYTEK LocalNET) hardware type. |
96 | */ |
95 | */ |
97 | #define HW_LocalNet 12 |
96 | #define HW_LocalNet 12 |
98 | 97 | ||
99 | /** Ultra link hardware type. |
98 | /** Ultra link hardware type. |
100 | */ |
99 | */ |
101 | #define HW_Ultra_link 13 |
100 | #define HW_Ultra_link 13 |
102 | 101 | ||
103 | /** SMDS hardware type. |
102 | /** SMDS hardware type. |
104 | */ |
103 | */ |
105 | #define HW_SMDS 14 |
104 | #define HW_SMDS 14 |
106 | 105 | ||
107 | /** Frame Relay DLCI hardware type. |
106 | /** Frame Relay DLCI hardware type. |
108 | */ |
107 | */ |
109 | #define HW_DLCI 15 |
108 | #define HW_DLCI 15 |
110 | 109 | ||
111 | /** Asynchronous Transmission Mode (ATM) hardware type. |
110 | /** Asynchronous Transmission Mode (ATM) hardware type. |
112 | */ |
111 | */ |
113 | #define HW_ATM 16 |
112 | #define HW_ATM 16 |
114 | 113 | ||
115 | /** HDLC hardware type. |
114 | /** HDLC hardware type. |
116 | */ |
115 | */ |
117 | #define HW_HDLC 17 |
116 | #define HW_HDLC 17 |
118 | 117 | ||
119 | /** Fibre Channel hardware type. |
118 | /** Fibre Channel hardware type. |
120 | */ |
119 | */ |
121 | #define HW_Fibre_Channel 18 |
120 | #define HW_Fibre_Channel 18 |
122 | 121 | ||
123 | /** Asynchronous Transmission Mode (ATM) hardware type. |
122 | /** Asynchronous Transmission Mode (ATM) hardware type. |
124 | */ |
123 | */ |
125 | #define HW_ATM2 19 |
124 | #define HW_ATM2 19 |
126 | 125 | ||
127 | /** Serial Line hardware type. |
126 | /** Serial Line hardware type. |
128 | */ |
127 | */ |
129 | #define HW_Serial_Line 20 |
128 | #define HW_Serial_Line 20 |
130 | 129 | ||
131 | /** Asynchronous Transmission Mode (ATM) hardware type. |
130 | /** Asynchronous Transmission Mode (ATM) hardware type. |
132 | */ |
131 | */ |
133 | #define HW_ATM3 21 |
132 | #define HW_ATM3 21 |
134 | 133 | ||
135 | /** MIL-STD-188-220 hardware type. |
134 | /** MIL-STD-188-220 hardware type. |
136 | */ |
135 | */ |
137 | #define HW_MIL_STD_188_220 22 |
136 | #define HW_MIL_STD_188_220 22 |
138 | 137 | ||
139 | /** Metricom hardware type. |
138 | /** Metricom hardware type. |
140 | */ |
139 | */ |
141 | #define HW_METRICOM 23 |
140 | #define HW_METRICOM 23 |
142 | 141 | ||
143 | /** IEEE 1394.1995 hardware type. |
142 | /** IEEE 1394.1995 hardware type. |
144 | */ |
143 | */ |
145 | #define HW_IEEE1394 24 |
144 | #define HW_IEEE1394 24 |
146 | 145 | ||
147 | /** MAPOS hardware type. |
146 | /** MAPOS hardware type. |
148 | */ |
147 | */ |
149 | #define HW_MAPOS 25 |
148 | #define HW_MAPOS 25 |
150 | 149 | ||
151 | /** Twinaxial hardware type. |
150 | /** Twinaxial hardware type. |
152 | */ |
151 | */ |
153 | #define HW_Twinaxial 26 |
152 | #define HW_Twinaxial 26 |
154 | 153 | ||
155 | /** EUI-64 hardware type. |
154 | /** EUI-64 hardware type. |
156 | */ |
155 | */ |
157 | #define HW_EUI64 27 |
156 | #define HW_EUI64 27 |
158 | 157 | ||
159 | /** HIPARP hardware type. |
158 | /** HIPARP hardware type. |
160 | */ |
159 | */ |
161 | #define HW_HIPARP 28 |
160 | #define HW_HIPARP 28 |
162 | 161 | ||
163 | /** IP and ARP over ISO 7816-3 hardware type. |
162 | /** IP and ARP over ISO 7816-3 hardware type. |
164 | */ |
163 | */ |
165 | #define HW_ISO_7816_3 29 |
164 | #define HW_ISO_7816_3 29 |
166 | 165 | ||
167 | /** ARPSec hardware type. |
166 | /** ARPSec hardware type. |
168 | */ |
167 | */ |
169 | #define HW_ARPSec 30 |
168 | #define HW_ARPSec 30 |
170 | 169 | ||
171 | /** IPsec tunnel hardware type. |
170 | /** IPsec tunnel hardware type. |
172 | */ |
171 | */ |
173 | #define HW_IPsec_tunnel 31 |
172 | #define HW_IPsec_tunnel 31 |
174 | 173 | ||
175 | /** InfiniBand (TM) hardware type. |
174 | /** InfiniBand (TM) hardware type. |
176 | */ |
175 | */ |
177 | #define HW_INFINIBAND 32 |
176 | #define HW_INFINIBAND 32 |
178 | 177 | ||
179 | /** TIA-102 Project 25 Common Air Interface (CAI) hardware type. |
178 | /** TIA-102 Project 25 Common Air Interface (CAI) hardware type. |
180 | */ |
179 | */ |
181 | #define HW_CAI 33 |
180 | #define HW_CAI 33 |
182 | 181 | ||
183 | /** Wiegand Interface hardware type. |
182 | /** Wiegand Interface hardware type. |
184 | */ |
183 | */ |
185 | #define HW_Wiegand 34 |
184 | #define HW_Wiegand 34 |
186 | 185 | ||
187 | /** Pure IP hardware type. |
186 | /** Pure IP hardware type. |
188 | */ |
187 | */ |
189 | #define HW_Pure_IP 35 |
188 | #define HW_Pure_IP 35 |
190 | 189 | ||
191 | /*@}*/ |
190 | /*@}*/ |
192 | 191 | ||
193 | #endif |
192 | #endif |
194 | 193 | ||
195 | /** @} |
194 | /** @} |
196 | */ |
195 | */ |
197 | 196 |