MAX_MCS_INDEX is a valid array index.
[metze/wireshark/wip.git] / epan / arptypes.h
1 /* arptypes.h
2  * Declarations of ARP address types.
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22
23 #ifndef __ARPTYPES_H__
24 #define __ARPTYPES_H__
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* __cplusplus */
29
30 /* Definitions taken from Linux "linux/if_arp.h" header file, and from
31
32         http://www.iana.org/assignments/arp-parameters
33
34  */
35
36 /* ARP protocol HARDWARE identifiers. */
37 #define ARPHRD_NETROM   0               /* from KA9Q: NET/ROM pseudo    */
38 #define ARPHRD_ETHER    1               /* Ethernet 10Mbps              */
39 #define ARPHRD_EETHER   2               /* Experimental Ethernet        */
40 #define ARPHRD_AX25     3               /* AX.25 Level 2                */
41 #define ARPHRD_PRONET   4               /* PROnet token ring            */
42 #define ARPHRD_CHAOS    5               /* Chaosnet                     */
43 #define ARPHRD_IEEE802  6               /* IEEE 802.2 Ethernet/TR/TB    */
44 #define ARPHRD_ARCNET   7               /* ARCnet                       */
45 #define ARPHRD_HYPERCH  8               /* Hyperchannel                 */
46 #define ARPHRD_LANSTAR  9               /* Lanstar                      */
47 #define ARPHRD_AUTONET  10              /* Autonet Short Address        */
48 #define ARPHRD_LOCALTLK 11              /* Localtalk                    */
49 #define ARPHRD_LOCALNET 12              /* LocalNet (IBM PCNet/Sytek LocalNET) */
50 #define ARPHRD_ULTRALNK 13              /* Ultra link                   */
51 #define ARPHRD_SMDS     14              /* SMDS                         */
52 #define ARPHRD_DLCI     15              /* Frame Relay DLCI             */
53 #define ARPHRD_ATM      16              /* ATM                          */
54 #define ARPHRD_HDLC     17              /* HDLC                         */
55 #define ARPHRD_FIBREC   18              /* Fibre Channel                */
56 #define ARPHRD_ATM2225  19              /* ATM (RFC 2225)               */
57 #define ARPHRD_SERIAL   20              /* Serial Line                  */
58 #define ARPHRD_ATM2     21              /* ATM                          */
59 #define ARPHRD_MS188220 22              /* MIL-STD-188-220              */
60 #define ARPHRD_METRICOM 23              /* Metricom STRIP               */
61 #define ARPHRD_IEEE1394 24              /* IEEE 1394.1995               */
62 #define ARPHRD_MAPOS    25              /* MAPOS                        */
63 #define ARPHRD_TWINAX   26              /* Twinaxial                    */
64 #define ARPHRD_EUI_64   27              /* EUI-64                       */
65 #define ARPHRD_HIPARP   28              /* HIPARP                       */
66 #define ARPHRD_IP_ARP_ISO_7816_3        29      /* IP and ARP over ISO 7816-3   */
67 #define ARPHRD_ARPSEC                   30      /* ARPSec                       */
68 #define ARPHRD_IPSEC_TUNNEL             31      /* IPsec tunnel                 */
69 #define ARPHRD_INFINIBAND               32      /* InfiniBand                   */
70 #define ARPHRD_TIA_102_PRJ_25_CAI       33      /* TIA-102 Project 25 CAI       */
71 #define ARPHRD_WIEGAND_INTERFACE        34      /* Wiegand Interface            */
72 #define ARPHRD_PURE_IP                  35      /* Pure IP                      */
73 #define ARPHDR_HW_EXP1                  36      /* HW_EXP1                      */
74 #define ARPHDR_HFI                      37      /* HFI                          */
75 #define ARPHDR_HW_EXP2                  256     /* HW_EXP2                      */
76
77 /* Virtual ARP types for non ARP hardware used in Linux cooked mode. */
78 #define ARPHRD_IPGRE    778             /* GRE over IP */
79 #define ARPHRD_NETLINK  824             /* netlink */
80
81 #ifdef __cplusplus
82 }
83 #endif /* __cplusplus */
84
85 #endif /* arptypes.h */