libedit: Add bapt patches to improve unicode
[dragonfly.git] / sys / net / dlt.h
1 /*
2  * Copyright (c) 1990, 1991, 1993
3  *      The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from the Stanford/CMU enet packet filter,
6  * (net/enet.c) distributed as part of 4.3BSD, and code contributed
7  * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence
8  * Berkeley Laboratory.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  * 1. Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer.
15  * 2. Redistributions in binary form must reproduce the above copyright
16  *    notice, this list of conditions and the following disclaimer in the
17  *    documentation and/or other materials provided with the distribution.
18  * 3. All advertising materials mentioning features or use of this software
19  *    must display the following acknowledgement:
20  *      This product includes software developed by the University of
21  *      California, Berkeley and its contributors.
22  * 4. Neither the name of the University nor the names of its contributors
23  *    may be used to endorse or promote products derived from this software
24  *    without specific prior written permission.
25  *
26  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36  * SUCH DAMAGE.
37  *
38  *      @(#)bpf.h       8.1 (Berkeley) 6/10/93
39  *      @(#)bpf.h       1.34 (LBL)     6/16/96
40  *
41  * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.34.2.24 2007/09/19 02:52:12 guy Exp $ (LBL)
42  *
43  * $FreeBSD: src/sys/net/bpf.h,v 1.21.2.4 2002/07/05 14:40:00 fenner Exp $
44  * $DragonFly: src/sys/net/bpf.h,v 1.12 2008/03/14 09:52:10 matthias Exp $
45  */
46
47 #ifndef _NET_DLT_H_
48 #define _NET_DLT_H_
49
50 /*
51  * Data-link level type codes.
52  */
53 #define DLT_NULL        0       /* no link-layer encapsulation */
54 #define DLT_EN10MB      1       /* Ethernet (10Mb) */
55 #define DLT_EN3MB       2       /* Experimental Ethernet (3Mb) */
56 #define DLT_AX25        3       /* Amateur Radio AX.25 */
57 #define DLT_PRONET      4       /* Proteon ProNET Token Ring */
58 #define DLT_CHAOS       5       /* Chaos */
59 #define DLT_IEEE802     6       /* 802.5 Token Ring */
60 #define DLT_ARCNET      7       /* ARCNET */
61 #define DLT_SLIP        8       /* Serial Line IP */
62 #define DLT_PPP         9       /* Point-to-point Protocol */
63 #define DLT_FDDI        10      /* FDDI */
64 #define DLT_ATM_RFC1483 11      /* LLC/SNAP encapsulated atm */
65 #define DLT_RAW         12      /* raw IP */
66
67 /* 13 - 14 unused */
68
69 #define DLT_SLIP_BSDOS  15      /* BSD/OS Serial Line IP */
70 #define DLT_PPP_BSDOS   16      /* BSD/OS Point-to-point Protocol */
71 #define DLT_PFSYNC      18      /* Packet filter state syncing */
72 #define DLT_ATM_CLIP    19      /* Linux Classical-IP over ATM */
73
74 /* 20 - 31 unused */
75
76 #define DLT_REDBACK_SMARTEDGE   32      /* Redback SmartEdge 400/800 */
77
78 /* 33 - 49 unused */
79
80 #define DLT_PPP_SERIAL  50      /* PPP over serial with HDLC encapsulation */
81 #define DLT_PPP_ETHER   51      /* PPP over Ethernet */
82
83 /* 52 - 98 unused */
84
85 #define DLT_SYMANTEC_FIREWALL   99      /* Symantec Enterprise Firewall */
86
87 /* 100 - 103 unused */
88
89 #define DLT_C_HDLC              104     /* Cisco HDLC */
90 #define DLT_CHDLC               DLT_C_HDLC
91 #define DLT_IEEE802_11          105     /* IEEE 802.11 wireless */
92 #define DLT_FRELAY              107     /* Q.922 Frame Relay */
93 #define DLT_LOOP                108     /* loopback */
94 #define DLT_ENC                 109     /* Encapsulated packets for IPsec */
95
96 /* 110 - 112 unused */
97
98 #define DLT_LINUX_SLL           113     /* Linux cooked sockets */
99 #define DLT_LTALK               114     /* Apple LocalTalk hardware */
100 #define DLT_ECONET              115     /* Acorn Econet */
101 #define DLT_IPFILTER            116     /* OpenBSD ipfilter */
102 #define DLT_PFLOG               117     /* Packet filter logging */
103 #define DLT_CISCO_IOS           118     /* Cisco-internal use */
104 #define DLT_PRISM_HEADER        119     /* 802.11 plus Prism II radio header */
105 #define DLT_AIRONET_HEADER      120     /* 802.11 plus Aironet radio header */
106 #define DLT_HHDLC               121     /* Siemens HiPath HDLC */
107 #define DLT_IP_OVER_FC          122     /* RFC2625 IP-over-Fibre Channel */
108 #define DLT_SUNATM              123     /* Solaris+SunATM */
109 #define DLT_RIO                 124     /* RapidIO */
110 #define DLT_PCI_EXP             125     /* PCI Express */
111 #define DLT_AURORA              126     /* Xilinx Aurora link layer */
112 #ifndef DLT_IEEE802_11_RADIO
113 #define DLT_IEEE802_11_RADIO    127     /* 802.11 plus radiotap radio header */
114 #endif
115 #define DLT_TZSP                128     /* Tazmen Sniffer Protocol */
116 #define DLT_ARCNET_LINUX        129     /* Linux ARCNET */
117 #define DLT_JUNIPER_MLPPP       130     /* Juniper private */
118 #define DLT_JUNIPER_MLFR        131     /* Juniper private */
119 #define DLT_JUNIPER_ES          132     /* Juniper private */
120 #define DLT_JUNIPER_GGSN        133     /* Juniper private */
121 #define DLT_JUNIPER_MFR         134     /* Juniper private */
122 #define DLT_JUNIPER_ATM2        135     /* Juniper private */
123 #define DLT_JUNIPER_SERVICES    136     /* Juniper private */
124 #define DLT_JUNIPER_ATM1        137     /* Juniper private */
125 #define DLT_APPLE_IP_OVER_IEEE1394 138  /* Apple IP-over-IEEE 1394 */
126 #define DLT_MTP2_WITH_PHDR      139     /* pseudo-header with various info,
127                                          * followed by MTP2 */
128 #define DLT_MTP2                140     /* MTP2, w/o pseudo-header */
129 #define DLT_MTP3                141     /* MTP3, w/o pseudo-header or MTP2 */
130 #define DLT_SCCP                142     /* SCCP, w/o pseudo-header or MTP2
131                                          * or MTP3 */
132 #define DLT_DOCSIS              143     /* DOCSIS MAC frames */
133 #define DLT_LINUX_IRDA          144     /* Linux IrDA */
134 #define DLT_IBM_SP              145     /* IBM SP switch */
135 #define DLT_IBM_SN              146     /* IBM Next Federation switch */
136
137 /* 147 - 162 unused */
138
139 #define DLT_IEEE802_11_RADIO_AVS 163    /* 802.11 plus AVS radio header */
140 #define DLT_JUNIPER_MONITOR     164     /* Juniper private */
141 #define DLT_BACNET_MS_TP        165     /* BACnet MS/TP */
142 #define DLT_PPP_PPPD            166     /* Linux PPP variant */
143 #define DLT_JUNIPER_PPPOE       167     /* Juniper private */
144 #define DLT_JUNIPER_PPPOE_ATM   168     /* Juniper private */
145 #define DLT_GPRS_LLC            169     /* GPRS LLC */
146 #define DLT_GPF_T               170     /* GPF-T (ITU-T G.7041/Y.1303) */
147 #define DLT_GPF_F               171     /* GPF-F (ITU-T G.7041/Y.1303) */
148 #define DLT_GCOM_T1E1           172     /* Gcom's T1/E1 */
149 #define DLT_GCOM_SERIAL         173     /* Gcom's T1/E1 */
150 #define DLT_JUNIPER_PIC_PEER    174     /* Juniper private */
151 #define DLT_ERF_ETH             175     /* Ethernet plus ERF header */
152 #define DLT_ERF_POS             176     /* Packet-over-SONET plus ERF header */
153 #define DLT_LINUX_LAPD          177     /* raw LAPD plus addition info */
154 #define DLT_JUNIPER_ETHER       178     /* Juniper private */
155 #define DLT_JUNIPER_PPP         179     /* Juniper private */
156 #define DLT_JUNIPER_FRELAY      180     /* Juniper private */
157 #define DLT_JUNIPER_CHDLC       181     /* Juniper private */
158 #define DLT_MFR                 182     /* Multi Link Frame Relay (FRF.16) */
159 #define DLT_JUNIPER_VP          183     /* Juniper private */
160 #define DLT_A429                184     /* Arinc 429 frames */
161 #define DLT_A653_ICM            185     /* Arinc 653 Interpartition
162                                          * Communication messages */
163 #define DLT_USB                 186     /* USB packets plus USB setup header */
164 #define DLT_BLUETOOTH_HCI_H4    187     /* Bluetooth HCI UART transport layer
165                                          * (part H:4) */
166 #define DLT_IEEE802_16_MAC_CPS  188     /* IEEE 802.16 MAC Common Part
167                                          * Sublayer */
168 #define DLT_USB_LINUX           189     /* USB packets plus Linux USB header */
169 #define DLT_CAN20B              190     /* Controller Area Network (CAN)
170                                          * v. 2.0B */
171 #define DLT_IEEE802_15_4_LINUX  191     /* IEEE 802.15.4, with address fields
172                                          * padded */
173 #define DLT_PPI                 192     /* Per Packet Information encapsulated
174                                          * packets */
175 #define DLT_IEEE802_16_MAC_CPS_RADIO 193 /* 802.16 MAC Common Part Sublayer
176                                           * plus a radiotap radio header */
177 #define DLT_JUNIPER_ISM         194     /* Juniper private */
178 #define DLT_IEEE802_15_4        195     /* IEEE 802.15.4 */
179 #define DLT_SITA                196     /* SITA plus a pseudo-header */
180 #define DLT_ERF                 197     /* Endace ERF records plus
181                                          * pseudo-header */
182 #define DLT_RAIF1               198     /* Ethernet plus special header */
183 #define DLT_IPMB                199     /* IPMB packet for IPMI */
184 #define DLT_JUNIPER_ST          200     /* Juniper private */
185 #define DLT_BLUETOOTH_HCI_H4_WITH_PHDR 201 /* Bluetooth HCI UART transport
186                                             * layer (part H:4) plus
187                                             * pseudo-header */
188 #define DLT_AX25_KISS           202     /* AX.25 packet with a 1-byte KISS
189                                          * header */
190 #define DLT_LAPD                203     /* LAPD packets from an ISDN channel,
191                                          * starting with the address field,
192                                          * with no pseudo-header */
193 #define DLT_PPP_WITH_DIR        204     /* PPP */
194 #define DLT_C_HDLC_WITH_DIR     205     /* Cisco HDLC */
195 #define DLT_FRELAY_WITH_DIR     206     /* Frame Relay */
196 #define DLT_LAPB_WITH_DIR       207     /* LAPB */
197
198 /* 208 unused */
199
200 #define DLT_IPMB_LINUX          209     /* IPMB with a Linux-specific
201                                          * pseudo-header */
202 #define DLT_FLEXRAY             210     /* FlexRay automotive bus */
203 #define DLT_MOST                211     /* Media Oriented Systems Transport
204                                          * (MOST) bus */
205 #define DLT_LIN                 212     /* Local Interconnect Network
206                                          * (LIN) bus */
207 #define DLT_X2E_SERIAL          213     /* X2E-private */
208 #define DLT_X2E_XORAYA          214     /* X2E-private */
209 #define DLT_IEEE802_15_4_NONASK_PHY 215 /* IEEE 802.15.4, with the PHY-level
210                                          * data for non-ASK PHYs */
211
212 #endif  /* !_NET_DLT_H_ */