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