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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
// This file is part of linux-support. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-support/master/COPYRIGHT. No part of linux-support, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2020 The developers of linux-support. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-support/master/COPYRIGHT.
/// 'Device Type'.
#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
#[derive(Deserialize, Serialize)]
#[repr(u16)]
pub enum ARPHRD
{
/// from KA9Q: NET/ROM pseudo.
#[serde(rename = "NETROM")] ARPHRD_NETROM = 0,
/// Ethernet 10Mbps.
#[serde(rename = "Ethernet 10Mpbs")] ARPHRD_ETHER = 1,
/// Experimental Ethernet.
#[serde(rename = "EETHER")] ARPHRD_EETHER = 2,
/// AX.25 Level 2.
#[serde(rename = "AX.25 level 2")] ARPHRD_AX25 = 3,
/// PROnet token ring.
#[serde(rename = "PROnet token ring")] ARPHRD_PRONET = 4,
/// Chaosnet.
#[serde(rename = "Chaosnet")] ARPHRD_CHAOS = 5,
/// IEEE 802.2 Ethernet/TR/TB.
#[serde(rename = "IEEE 802.2 Ethernet")] ARPHRD_IEEE802 = 6,
/// ARCnet.
#[serde(rename = "ARCnet")] ARPHRD_ARCNET = 7,
/// APPLEtalk.
#[serde(rename = "APPLEtalk")] ARPHRD_APPLETLK = 8,
/// Frame Relay DLCI.
#[serde(rename = "Frame Relay DLCI")] ARPHRD_DLCI = 15,
/// ATM.
#[serde(rename = "ATM")] ARPHRD_ATM = 19,
/// Metricom STRIP (new IANA id).
#[serde(rename = "Metricom STRIP")] ARPHRD_METRICOM = 23,
/// IEEE 1394 IPv4 - RFC 2734.
#[serde(rename = "IEEE 1394 IPv4")] ARPHRD_IEEE1394 = 24,
/// EUI-64.
#[serde(rename = "EUI-64")] ARPHRD_EUI64 = 27,
/// InfiniBand.
#[serde(rename = "InfiniBand")] ARPHRD_INFINIBAND = 32,
/// .
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "SLIP")] ARPHRD_SLIP = 256,
/// .
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "CSLIP")] ARPHRD_CSLIP = 257,
/// .
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "SLIP6")] ARPHRD_SLIP6 = 258,
/// .
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "CSLIP6")] ARPHRD_CSLIP6 = 259,
/// Notional KISS type.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Notional KISS")] ARPHRD_RSRVD = 260,
/// .
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "ADAPT")] ARPHRD_ADAPT = 264,
/// .
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "ROSE")] ARPHRD_ROSE = 270,
/// CCITT X.25.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "CCITT X.25")] ARPHRD_X25 = 271,
/// Boards with X.25 in firmware.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Hardware X.25")] ARPHRD_HWX25 = 272,
/// Controller Area Network.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "CAN")] ARPHRD_CAN = 280,
/// .
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "PPP")] ARPHRD_PPP = 512,
/// Cisco HDLC.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Cisco HDLC")] ARPHRD_CISCO = 513,
/// LAPB.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "LAPB")] ARPHRD_LAPB = 516,
/// Digital's DDCMP protocol.
#[serde(rename = "Digital DDCMP")] ARPHRD_DDCMP = 517,
/// Raw HDLC.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Raw HDLC")] ARPHRD_RAWHDLC = 518,
/// Raw IP.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Raw IP")] ARPHRD_RAWIP = 519,
/// IPIP tunnel.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IPIP Tunnel")] ARPHRD_TUNNEL = 768,
/// IP6IP6 tunnel.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IP6IP6 Tunnel")] ARPHRD_TUNNEL6 = 769,
/// Frame Relay Access Device.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Frame Relay Access Device")] ARPHRD_FRAD = 770,
/// SKIP vif.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "SKIP vif")] ARPHRD_SKIP = 771,
/// Loopback device.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Loopback device")] ARPHRD_LOOPBACK = 772,
/// Localtalk device.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Localtalk")] ARPHRD_LOCALTLK = 773,
/// Fiber Distributed Data Interface.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Fiber Distributed Data Interface")] ARPHRD_FDDI = 774,
/// AP1000 BIF.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "AP1000 BIF")] ARPHRD_BIF = 775,
/// sit0 device - IPv6-in-IPv4.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "SIT")] ARPHRD_SIT = 776,
/// IP over DDP tunneller.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IP over DDP tunneller")] ARPHRD_IPDDP = 777,
/// GRE over IP.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "GRE over IP")] ARPHRD_IPGRE = 778,
/// PIMSM register interface.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "PIMSM register interface")] ARPHRD_PIMREG = 779,
/// High Performance Parallel Interface.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "High Performance Parallel Interface")] ARPHRD_HIPPI = 780,
/// Nexus 64Mbps Ash.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Nexus 64Mbps Ash")] ARPHRD_ASH = 781,
/// Acorn Econet.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Acorn Econet")] ARPHRD_ECONET = 782,
/// Linux-IrDA.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Linux-IrDA")] ARPHRD_IRDA = 783,
/// Point to point FibreChannel.
///
/// ARP works differently on different FibreChannel media.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Point to point FibreChannel")] ARPHRD_FCPP = 784,
/// FibreChannel arbitrated loop.
///
/// ARP works differently on different FibreChannel media.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "FibreChannel arbitrated loop")] ARPHRD_FCAL = 785,
/// FibreChannel public loop.
///
/// ARP works differently on different FibreChannel media.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "FibreChannel public loop")] ARPHRD_FCPL = 786,
/// FibreChannel fabric.
///
/// ARP works differently on different FibreChannel media.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "FibreChannel fabric")] ARPHRD_FCFABRIC = 787,
// 788 ..= 799 are reserved for FibreChannel media types.
/// Magic type ident for TR.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IEEE 802 TR")] ARPHRD_IEEE802_TR = 800,
/// IEEE 802.11.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IEEE 802.11")] ARPHRD_IEEE80211 = 801,
/// IEEE 802.11 + Prism2 header.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IEEE 802.11 + Prism2 header")] ARPHRD_IEEE80211_PRISM = 802,
/// IEEE 802.11 + radiotap header.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IEEE 802.11 + radiotap header")] ARPHRD_IEEE80211_RADIOTAP = 803,
/// .
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IEEE 802.15.4")] ARPHRD_IEEE802154 = 804,
/// IEEE 802.15.4 network monitor.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IEEE 802.15.4 network monitor")] ARPHRD_IEEE802154_MONITOR = 805,
/// PhoNet media type.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "PhoNet")] ARPHRD_PHONET = 820,
/// PhoNet pipe header.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "PhoNet pipe header")] ARPHRD_PHONET_PIPE = 821,
/// CAIF media type.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "CAIF media type")] ARPHRD_CAIF = 822,
/// GRE over IPv6.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "GRE over IPv6")] ARPHRD_IP6GRE = 823,
/// Netlink header.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Netlink header")] ARPHRD_NETLINK = 824,
/// IPv6 over LoWPAN.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "IPv6 over LoWPAN")] ARPHRD_6LOWPAN = 825,
/// Vsock monitor header.
///
/// Dummy type for non-ARP hardware.
#[serde(rename = "Vsock monitor header")] ARPHRD_VSOCKMON = 826,
/// Zero header length.
///
/// Special type.
#[serde(rename = "Zero header length")] ARPHRD_NONE = 0xFFFE,
/// Void type, nothing is known.
///
/// Special type.
#[serde(rename = "Void")] ARPHRD_VOID = 0xFFFF,
}
impl ARPHRD
{
/// .
///
/// Dummy type for non-ARP hardware.
pub const ARPHRD_HDLC: Self = ARPHRD::ARPHRD_CISCO;
}