/*-1* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 19972* The Regents of the University of California. All rights reserved.3*4* This code is derived from the Stanford/CMU enet packet filter,5* (net/enet.c) distributed as part of 4.3BSD, and code contributed6* to Berkeley by Steven McCanne and Van Jacobson both of Lawrence7* Berkeley Laboratory.8*9* Redistribution and use in source and binary forms, with or without10* modification, are permitted provided that the following conditions11* are met:12* 1. Redistributions of source code must retain the above copyright13* notice, this list of conditions and the following disclaimer.14* 2. Redistributions in binary form must reproduce the above copyright15* notice, this list of conditions and the following disclaimer in the16* documentation and/or other materials provided with the distribution.17* 3. Neither the name of the University nor the names of its contributors18* may be used to endorse or promote products derived from this software19* without specific prior written permission.20*21* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND22* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE23* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE24* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE25* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL26* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS27* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)28* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT29* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY30* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF31* SUCH DAMAGE.32*/3334#ifndef _NET_DLT_H_35#define _NET_DLT_H_3637/*38* Link-layer header type codes.39*40* Do *NOT* add new values to this list without asking41* "[email protected]" for a value. Otherwise, you run42* the risk of using a value that's already being used for some other43* purpose, and of having tools that read libpcap-format captures not44* being able to handle captures with your new DLT_ value, with no hope45* that they will ever be changed to do so (as that would destroy their46* ability to read captures using that value for that other purpose).47*48* See49*50* https://www.tcpdump.org/linktypes.html51*52* for detailed descriptions of some of these link-layer header types.53*/5455/*56* These are the types that are the same on all platforms, and that57* have been defined by <net/bpf.h> for ages.58*/59#define DLT_NULL 0 /* BSD loopback encapsulation */60#define DLT_EN10MB 1 /* Ethernet (10Mb) */61#define DLT_EN3MB 2 /* Experimental Ethernet (3Mb) */62#define DLT_AX25 3 /* Amateur Radio AX.25 */63#define DLT_PRONET 4 /* Proteon ProNET Token Ring */64#define DLT_CHAOS 5 /* Chaos */65#define DLT_IEEE802 6 /* 802.5 Token Ring */66#define DLT_ARCNET 7 /* ARCNET, with BSD-style header */67#define DLT_SLIP 8 /* Serial Line IP */68#define DLT_PPP 9 /* Point-to-point Protocol */69#define DLT_FDDI 10 /* FDDI */7071/*72* These are types that are different on some platforms, and that73* have been defined by <net/bpf.h> for ages. We use #ifdefs to74* detect the BSDs that define them differently from the traditional75* libpcap <net/bpf.h>76*77* XXX - DLT_ATM_RFC1483 is 13 in BSD/OS, and DLT_RAW is 14 in BSD/OS,78* but I don't know what the right #define is for BSD/OS.79*/80#define DLT_ATM_RFC1483 11 /* LLC-encapsulated ATM */8182#ifdef __OpenBSD__83#define DLT_RAW 14 /* raw IP */84#else85#define DLT_RAW 12 /* raw IP */86#endif8788/*89* Given that the only OS that currently generates BSD/OS SLIP or PPP90* is, well, BSD/OS, arguably everybody should have chosen its values91* for DLT_SLIP_BSDOS and DLT_PPP_BSDOS, which are 15 and 16, but they92* didn't. So it goes.93*/94#if defined(__NetBSD__) || defined(__FreeBSD__)95#ifndef DLT_SLIP_BSDOS96#define DLT_SLIP_BSDOS 13 /* BSD/OS Serial Line IP */97#define DLT_PPP_BSDOS 14 /* BSD/OS Point-to-point Protocol */98#endif99#else100#define DLT_SLIP_BSDOS 15 /* BSD/OS Serial Line IP */101#define DLT_PPP_BSDOS 16 /* BSD/OS Point-to-point Protocol */102#endif103104/*105* NetBSD uses 15 for HIPPI.106*107* From a quick look at sys/net/if_hippi.h and sys/net/if_hippisubr.c108* in an older version of NetBSD , the header appears to be:109*110* a 1-byte ULP field (ULP-id)?111*112* a 1-byte flags field;113*114* a 2-byte "offsets" field;115*116* a 4-byte "D2 length" field (D2_Size?);117*118* a 4-byte "destination switch" field (or a 1-byte field119* containing the Forwarding Class, Double_Wide, and Message_Type120* sub fields, followed by a 3-byte Destination_Switch_Address121* field?, HIPPI-LE 3.4-style?);122*123* a 4-byte "source switch" field (or a 1-byte field containing the124* Destination_Address_type and Source_Address_Type fields, followed125* by a 3-byte Source_Switch_Address field, HIPPI-LE 3.4-style?);126*127* a 2-byte reserved field;128*129* a 6-byte destination address field;130*131* a 2-byte "local admin" field;132*133* a 6-byte source address field;134*135* followed by an 802.2 LLC header.136*137* This looks somewhat like something derived from the HIPPI-FP 4.4138* Header_Area, followed an HIPPI-FP 4.4 D1_Area containing a D1 data set139* with the header in HIPPI-LE 3.4 (ANSI X3.218-1993), followed by an140* HIPPI-FP 4.4 D2_Area (with no Offset) containing the 802.2 LLC header141* and payload? Or does the "offsets" field contain the D2_Offset,142* with that many bytes of offset before the payload?143*144* See http://wotug.org/parallel/standards/hippi/ for an archive of145* HIPPI specifications.146*147* RFC 2067 imposes some additional restrictions. It says that the148* Offset is always zero149*150* HIPPI is long-gone, and the source files found in an older version151* of NetBSD don't appear to be in the main CVS branch, so we may never152* see a capture with this link-layer type.153*/154#if defined(__NetBSD__)155#define DLT_HIPPI 15 /* HIPPI */156#endif157158/*159* NetBSD uses 16 for DLT_HDLC; see below.160* BSD/OS uses it for PPP; see above.161* As far as I know, no other OS uses it for anything; don't use it162* for anything else.163*/164165/*166* 17 was used for DLT_PFLOG in OpenBSD; it no longer is.167*168* It was DLT_LANE8023 in SuSE 6.3, so we defined LINKTYPE_PFLOG169* as 117 so that pflog captures would use a link-layer header type170* value that didn't collide with any other values. On all171* platforms other than OpenBSD, we defined DLT_PFLOG as 117,172* and we mapped between LINKTYPE_PFLOG and DLT_PFLOG.173*174* OpenBSD eventually switched to using 117 for DLT_PFLOG as well.175*176* Don't use 17 for anything else.177*/178179/*180* 18 is used for DLT_PFSYNC in OpenBSD, NetBSD, DragonFly BSD and181* macOS; don't use it for anything else. (FreeBSD uses 121, which182* collides with DLT_HHDLC, even though it doesn't use 18 for183* anything and doesn't appear to have ever used it for anything.)184*185* We define it as 18 on those platforms; it is, unfortunately, used186* for DLT_CIP in Suse 6.3, so we don't define it as DLT_PFSYNC187* in general. As the packet format for it, like that for188* DLT_PFLOG, is not only OS-dependent but OS-version-dependent,189* we don't support printing it in tcpdump except on OSes that190* have the relevant header files, so it's not that useful on191* other platforms.192*/193#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__APPLE__)194#define DLT_PFSYNC 18195#endif196197#define DLT_ATM_CLIP 19 /* Linux Classical IP over ATM */198199/*200* Apparently Redback uses this for its SmartEdge 400/800. I hope201* nobody else decided to use it, too.202*/203#define DLT_REDBACK_SMARTEDGE 32204205/*206* These values are defined by NetBSD; other platforms should refrain from207* using them for other purposes, so that NetBSD savefiles with link208* types of 50 or 51 can be read as this type on all platforms.209*/210#define DLT_PPP_SERIAL 50 /* PPP over serial with HDLC encapsulation */211#define DLT_PPP_ETHER 51 /* PPP over Ethernet */212213/*214* The Axent Raptor firewall - now the Symantec Enterprise Firewall - uses215* a link-layer type of 99 for the tcpdump it supplies. The link-layer216* header has 6 bytes of unknown data, something that appears to be an217* Ethernet type, and 36 bytes that appear to be 0 in at least one capture218* I've seen.219*/220#define DLT_SYMANTEC_FIREWALL 99221222/*223* Values between 100 and 103 are used in capture file headers as224* link-layer header type LINKTYPE_ values corresponding to DLT_ types225* that differ between platforms; don't use those values for new DLT_226* new types.227*/228229/*230* Values starting with 104 are used for newly-assigned link-layer231* header type values; for those link-layer header types, the DLT_232* value returned by pcap_datalink() and passed to pcap_open_dead(),233* and the LINKTYPE_ value that appears in capture files, are the234* same.235*236* DLT_MATCHING_MIN is the lowest such value; DLT_MATCHING_MAX is237* the highest such value.238*/239#define DLT_MATCHING_MIN 104240241/*242* This value was defined by libpcap 0.5; platforms that have defined243* it with a different value should define it here with that value -244* a link type of 104 in a save file will be mapped to DLT_C_HDLC,245* whatever value that happens to be, so programs will correctly246* handle files with that link type regardless of the value of247* DLT_C_HDLC.248*249* The name DLT_C_HDLC was used by BSD/OS; we use that name for source250* compatibility with programs written for BSD/OS.251*252* libpcap 0.5 defined it as DLT_CHDLC; we define DLT_CHDLC as well,253* for source compatibility with programs written for libpcap 0.5.254*/255#define DLT_C_HDLC 104 /* Cisco HDLC */256#define DLT_CHDLC DLT_C_HDLC257258#define DLT_IEEE802_11 105 /* IEEE 802.11 wireless */259260/*261* 106 is reserved for Linux Classical IP over ATM; it's like DLT_RAW,262* except when it isn't. (I.e., sometimes it's just raw IP, and263* sometimes it isn't.) We currently handle it as DLT_LINUX_SLL,264* so that we don't have to worry about the link-layer header.)265*/266267/*268* Frame Relay; BSD/OS has a DLT_FR with a value of 11, but that collides269* with other values.270* DLT_FR and DLT_FRELAY packets start with the Q.922 Frame Relay header271* (DLCI, etc.).272*/273#define DLT_FRELAY 107274275/*276* OpenBSD DLT_LOOP, for loopback devices; it's like DLT_NULL, except277* that the AF_ type in the link-layer header is in network byte order.278*279* DLT_LOOP is 12 in OpenBSD, but that's DLT_RAW in other OSes, so280* we don't use 12 for it in OSes other than OpenBSD; instead, we281* use the same value as LINKTYPE_LOOP.282*/283#ifdef __OpenBSD__284#define DLT_LOOP 12285#else286#define DLT_LOOP 108287#endif288289/*290* Encapsulated packets for IPsec; DLT_ENC is 13 in OpenBSD, but that's291* DLT_SLIP_BSDOS in NetBSD, so we don't use 13 for it in OSes other292* than OpenBSD; instead, we use the same value as LINKTYPE_ENC.293*/294#ifdef __OpenBSD__295#define DLT_ENC 13296#else297#define DLT_ENC 109298#endif299300/*301* Values 110 and 111 are reserved for use in capture file headers302* as link-layer types corresponding to DLT_ types that might differ303* between platforms; don't use those values for new DLT_ types304* other than the corresponding DLT_ types.305*/306307/*308* NetBSD uses 16 for (Cisco) "HDLC framing". For other platforms,309* we define it to have the same value as LINKTYPE_NETBSD_HDLC.310*/311#if defined(__NetBSD__)312#define DLT_HDLC 16 /* Cisco HDLC */313#else314#define DLT_HDLC 112315#endif316317/*318* Linux cooked sockets.319*/320#define DLT_LINUX_SLL 113321322/*323* Apple LocalTalk hardware.324*/325#define DLT_LTALK 114326327/*328* Acorn Econet.329*/330#define DLT_ECONET 115331332/*333* Reserved for use with OpenBSD ipfilter.334*/335#define DLT_IPFILTER 116336337/*338* OpenBSD DLT_PFLOG.339*/340#define DLT_PFLOG 117341342/*343* Registered for Cisco-internal use.344*/345#define DLT_CISCO_IOS 118346347/*348* For 802.11 cards using the Prism II chips, with a link-layer349* header including Prism monitor mode information plus an 802.11350* header.351*/352#define DLT_PRISM_HEADER 119353354/*355* Reserved for Aironet 802.11 cards, with an Aironet link-layer header356* (see Doug Ambrisko's FreeBSD patches).357*/358#define DLT_AIRONET_HEADER 120359360/*361* Sigh.362*363* 121 was reserved for Siemens HiPath HDLC on 2002-01-25, as364* requested by Tomas Kukosa.365*366* On 2004-02-25, a FreeBSD checkin to sys/net/bpf.h was made that367* assigned 121 as DLT_PFSYNC. In current versions, its libpcap368* does DLT_ <-> LINKTYPE_ mapping, mapping DLT_PFSYNC to a369* LINKTYPE_PFSYNC value of 246, so it should write out DLT_PFSYNC370* dump files with 246 as the link-layer header type. (Earlier371* versions might not have done mapping, in which case they would372* have written them out with a link-layer header type of 121.)373*374* OpenBSD, from which pf came, however, uses 18 for DLT_PFSYNC;375* its libpcap does no DLT_ <-> LINKTYPE_ mapping, so it would376* write out DLT_PFSYNC dump files with use 18 as the link-layer377* header type.378*379* NetBSD, DragonFly BSD, and Darwin also use 18 for DLT_PFSYNC; in380* current versions, their libpcaps do DLT_ <-> LINKTYPE_ mapping,381* mapping DLT_PFSYNC to a LINKTYPE_PFSYNC value of 246, so they382* should write out DLT_PFSYNC dump files with 246 as the link-layer383* header type. (Earlier versions might not have done mapping,384* in which case they'd work the same way OpenBSD does, writing385* them out with a link-layer header type of 18.)386*387* We'll define DLT_PFSYNC as:388*389* 18 on NetBSD, OpenBSD, DragonFly BSD, and Darwin;390*391* 121 on FreeBSD;392*393* 246 everywhere else.394*395* We'll define DLT_HHDLC as 121 on everything except for FreeBSD;396* anybody who wants to compile, on FreeBSD, code that uses DLT_HHDLC397* is out of luck.398*399* We'll define LINKTYPE_PFSYNC as 246 on *all* platforms, so that400* savefiles written using *this* code won't use 18 or 121 for PFSYNC,401* they'll all use 246.402*403* Code that uses pcap_datalink() to determine the link-layer header404* type of a savefile won't, when built and run on FreeBSD, be able405* to distinguish between LINKTYPE_PFSYNC and LINKTYPE_HHDLC capture406* files, as pcap_datalink() will give 121 for both of them. Code407* that doesn't, such as the code in Wireshark, will be able to408* distinguish between them.409*410* FreeBSD's libpcap won't map a link-layer header type of 18 - i.e.,411* DLT_PFSYNC files from OpenBSD and possibly older versions of NetBSD,412* DragonFly BSD, and macOS - to DLT_PFSYNC, so code built with FreeBSD's413* libpcap won't treat those files as DLT_PFSYNC files.414*415* Other libpcaps won't map a link-layer header type of 121 to DLT_PFSYNC;416* this means they can read DLT_HHDLC files, if any exist, but won't417* treat pcap files written by any older versions of FreeBSD libpcap that418* didn't map to 246 as DLT_PFSYNC files.419*/420#ifdef __FreeBSD__421#define DLT_PFSYNC 121422#else423#define DLT_HHDLC 121424#endif425426/*427* This is for RFC 2625 IP-over-Fibre Channel.428*429* This is not for use with raw Fibre Channel, where the link-layer430* header starts with a Fibre Channel frame header; it's for IP-over-FC,431* where the link-layer header starts with an RFC 2625 Network_Header432* field.433*/434#define DLT_IP_OVER_FC 122435436/*437* This is for Full Frontal ATM on Solaris with SunATM, with a438* pseudo-header followed by an AALn PDU.439*440* There may be other forms of Full Frontal ATM on other OSes,441* with different pseudo-headers.442*443* If ATM software returns a pseudo-header with VPI/VCI information444* (and, ideally, packet type information, e.g. signalling, ILMI,445* LANE, LLC-multiplexed traffic, etc.), it should not use446* DLT_ATM_RFC1483, but should get a new DLT_ value, so tcpdump447* and the like don't have to infer the presence or absence of a448* pseudo-header and the form of the pseudo-header.449*/450#define DLT_SUNATM 123 /* Solaris+SunATM */451452/*453* Reserved as per request from Kent Dahlgren <[email protected]>454* for private use.455*/456#define DLT_RIO 124 /* RapidIO */457#define DLT_PCI_EXP 125 /* PCI Express */458#define DLT_AURORA 126 /* Xilinx Aurora link layer */459460/*461* Header for 802.11 plus a number of bits of link-layer information462* including radio information, used by some recent BSD drivers as463* well as the madwifi Atheros driver for Linux.464*/465#define DLT_IEEE802_11_RADIO 127 /* 802.11 plus radiotap radio header */466467/*468* Reserved for the TZSP encapsulation, as per request from469* Chris Waters <[email protected]>470* TZSP is a generic encapsulation for any other link type,471* which includes a means to include meta-information472* with the packet, e.g. signal strength and channel473* for 802.11 packets.474*/475#define DLT_TZSP 128 /* Tazmen Sniffer Protocol */476477/*478* BSD's ARCNET headers have the source host, destination host,479* and type at the beginning of the packet; that's what's handed480* up to userland via BPF.481*482* Linux's ARCNET headers, however, have a 2-byte offset field483* between the host IDs and the type; that's what's handed up484* to userland via PF_PACKET sockets.485*486* We therefore have to have separate DLT_ values for them.487*/488#define DLT_ARCNET_LINUX 129 /* ARCNET */489490/*491* Juniper-private data link types, as per request from492* Hannes Gredler <[email protected]>. The DLT_s are used493* for passing on chassis-internal metainformation such as494* QOS profiles, etc..495*/496#define DLT_JUNIPER_MLPPP 130497#define DLT_JUNIPER_MLFR 131498#define DLT_JUNIPER_ES 132499#define DLT_JUNIPER_GGSN 133500#define DLT_JUNIPER_MFR 134501#define DLT_JUNIPER_ATM2 135502#define DLT_JUNIPER_SERVICES 136503#define DLT_JUNIPER_ATM1 137504505/*506* Apple IP-over-IEEE 1394, as per a request from Dieter Siegmund507* <[email protected]>. The header that's presented is an Ethernet-like508* header:509*510* #define FIREWIRE_EUI64_LEN 8511* struct firewire_header {512* u_char firewire_dhost[FIREWIRE_EUI64_LEN];513* u_char firewire_shost[FIREWIRE_EUI64_LEN];514* u_short firewire_type;515* };516*517* with "firewire_type" being an Ethernet type value, rather than,518* for example, raw GASP frames being handed up.519*/520#define DLT_APPLE_IP_OVER_IEEE1394 138521522/*523* Various SS7 encapsulations, as per a request from Jeff Morriss524* <jeff.morriss[AT]ulticom.com> and subsequent discussions.525*/526#define DLT_MTP2_WITH_PHDR 139 /* pseudo-header with various info, followed by MTP2 */527#define DLT_MTP2 140 /* MTP2, without pseudo-header */528#define DLT_MTP3 141 /* MTP3, without pseudo-header or MTP2 */529#define DLT_SCCP 142 /* SCCP, without pseudo-header or MTP2 or MTP3 */530531/*532* DOCSIS MAC frames.533*/534#define DLT_DOCSIS 143535536/*537* Linux-IrDA packets. Protocol defined at https://www.irda.org.538* Those packets include IrLAP headers and above (IrLMP...), but539* don't include Phy framing (SOF/EOF/CRC & byte stuffing), because Phy540* framing can be handled by the hardware and depend on the bitrate.541* This is exactly the format you would get capturing on a Linux-IrDA542* interface (irdaX), but not on a raw serial port.543* Note the capture is done in "Linux-cooked" mode, so each packet include544* a fake packet header (struct sll_header). This is because IrDA packet545* decoding is dependent on the direction of the packet (incoming or546* outgoing).547* When/if other platform implement IrDA capture, we may revisit the548* issue and define a real DLT_IRDA...549* Jean II550*/551#define DLT_LINUX_IRDA 144552553/*554* Reserved for IBM SP switch and IBM Next Federation switch.555*/556#define DLT_IBM_SP 145557#define DLT_IBM_SN 146558559/*560* Reserved for private use. If you have some link-layer header type561* that you want to use within your organization, with the capture files562* using that link-layer header type not ever be sent outside your563* organization, you can use these values.564*565* No libpcap release will use these for any purpose, nor will any566* tcpdump release use them, either.567*568* Do *NOT* use these in capture files that you expect anybody not using569* your private versions of capture-file-reading tools to read; in570* particular, do *NOT* use them in products, otherwise you may find that571* people won't be able to use tcpdump, or snort, or Ethereal, or... to572* read capture files from your firewall/intrusion detection/traffic573* monitoring/etc. appliance, or whatever product uses that DLT_ value,574* and you may also find that the developers of those applications will575* not accept patches to let them read those files.576*577* Also, do not use them if somebody might send you a capture using them578* for *their* private type and tools using them for *your* private type579* would have to read them.580*581* Instead, ask "[email protected]" for a new DLT_ value,582* as per the comment above, and use the type you're given.583*/584#define DLT_USER0 147585#define DLT_USER1 148586#define DLT_USER2 149587#define DLT_USER3 150588#define DLT_USER4 151589#define DLT_USER5 152590#define DLT_USER6 153591#define DLT_USER7 154592#define DLT_USER8 155593#define DLT_USER9 156594#define DLT_USER10 157595#define DLT_USER11 158596#define DLT_USER12 159597#define DLT_USER13 160598#define DLT_USER14 161599#define DLT_USER15 162600601/*602* For future use with 802.11 captures - defined by AbsoluteValue603* Systems to store a number of bits of link-layer information604* including radio information:605*606* http://www.shaftnet.org/~pizza/software/capturefrm.txt607*608* but it might be used by some non-AVS drivers now or in the609* future.610*/611#define DLT_IEEE802_11_RADIO_AVS 163 /* 802.11 plus AVS radio header */612613/*614* Juniper-private data link type, as per request from615* Hannes Gredler <[email protected]>. The DLT_s are used616* for passing on chassis-internal metainformation such as617* QOS profiles, etc..618*/619#define DLT_JUNIPER_MONITOR 164620621/*622* BACnet MS/TP frames.623*/624#define DLT_BACNET_MS_TP 165625626/*627* Another PPP variant as per request from Karsten Keil <[email protected]>.628*629* This is used in some OSes to allow a kernel socket filter to distinguish630* between incoming and outgoing packets, on a socket intended to631* supply pppd with outgoing packets so it can do dial-on-demand and632* hangup-on-lack-of-demand; incoming packets are filtered out so they633* don't cause pppd to hold the connection up (you don't want random634* input packets such as port scans, packets from old lost connections,635* etc. to force the connection to stay up).636*637* The first byte of the PPP header (0xff03) is modified to accommodate638* the direction - 0x00 = IN, 0x01 = OUT.639*/640#define DLT_PPP_PPPD 166641642/*643* Names for backwards compatibility with older versions of some PPP644* software; new software should use DLT_PPP_PPPD.645*/646#define DLT_PPP_WITH_DIRECTION DLT_PPP_PPPD647#define DLT_LINUX_PPP_WITHDIRECTION DLT_PPP_PPPD648649/*650* Juniper-private data link type, as per request from651* Hannes Gredler <[email protected]>. The DLT_s are used652* for passing on chassis-internal metainformation such as653* QOS profiles, cookies, etc..654*/655#define DLT_JUNIPER_PPPOE 167656#define DLT_JUNIPER_PPPOE_ATM 168657658#define DLT_GPRS_LLC 169 /* GPRS LLC */659#define DLT_GPF_T 170 /* GPF-T (ITU-T G.7041/Y.1303) */660#define DLT_GPF_F 171 /* GPF-F (ITU-T G.7041/Y.1303) */661662/*663* Requested by Oolan Zimmer <[email protected]> for use in Gcom's T1/E1 line664* monitoring equipment.665*/666#define DLT_GCOM_T1E1 172667#define DLT_GCOM_SERIAL 173668669/*670* Juniper-private data link type, as per request from671* Hannes Gredler <[email protected]>. The DLT_ is used672* for internal communication to Physical Interface Cards (PIC)673*/674#define DLT_JUNIPER_PIC_PEER 174675676/*677* Link types requested by Gregor Maier <[email protected]> of Endace678* Measurement Systems. They add an ERF header (see679* https://www.endace.com/support/EndaceRecordFormat.pdf) in front of680* the link-layer header.681*/682#define DLT_ERF_ETH 175 /* Ethernet */683#define DLT_ERF_POS 176 /* Packet-over-SONET */684685/*686* Requested by Daniele Orlandi <[email protected]> for raw LAPD687* for vISDN (http://www.orlandi.com/visdn/). Its link-layer header688* includes additional information before the LAPD header, so it's689* not necessarily a generic LAPD header.690*/691#define DLT_LINUX_LAPD 177692693/*694* Juniper-private data link type, as per request from695* Hannes Gredler <[email protected]>.696* The DLT_ are used for prepending meta-information697* like interface index, interface name698* before standard Ethernet, PPP, Frelay & C-HDLC Frames699*/700#define DLT_JUNIPER_ETHER 178701#define DLT_JUNIPER_PPP 179702#define DLT_JUNIPER_FRELAY 180703#define DLT_JUNIPER_CHDLC 181704705/*706* Multi Link Frame Relay (FRF.16)707*/708#define DLT_MFR 182709710/*711* Juniper-private data link type, as per request from712* Hannes Gredler <[email protected]>.713* The DLT_ is used for internal communication with a714* voice Adapter Card (PIC)715*/716#define DLT_JUNIPER_VP 183717718/*719* Arinc 429 frames.720* DLT_ requested by Gianluca Varenni <[email protected]>.721* Every frame contains a 32bit A429 label.722* More documentation on Arinc 429 can be found at723* https://web.archive.org/web/20040616233302/https://www.condoreng.com/support/downloads/tutorials/ARINCTutorial.pdf724*/725#define DLT_A429 184726727/*728* Arinc 653 Interpartition Communication messages.729* DLT_ requested by Gianluca Varenni <[email protected]>.730* Please refer to the A653-1 standard for more information.731*/732#define DLT_A653_ICM 185733734/*735* This used to be "USB packets, beginning with a USB setup header;736* requested by Paolo Abeni <[email protected]>."737*738* However, that header didn't work all that well - it left out some739* useful information - and was abandoned in favor of the DLT_USB_LINUX740* header.741*742* This is now used by FreeBSD for its BPF taps for USB; that has its743* own headers. So it is written, so it is done.744*745* For source-code compatibility, we also define DLT_USB to have this746* value. We do it numerically so that, if code that includes this747* file (directly or indirectly) also includes an OS header that also748* defines DLT_USB as 186, we don't get a redefinition warning.749* (NetBSD 7 does that.)750*/751#define DLT_USB_FREEBSD 186752#define DLT_USB 186753754/*755* Bluetooth HCI UART transport layer (part H:4); requested by756* Paolo Abeni.757*/758#define DLT_BLUETOOTH_HCI_H4 187759760/*761* IEEE 802.16 MAC Common Part Sublayer; requested by Maria Cruz762* <[email protected]>.763*/764#define DLT_IEEE802_16_MAC_CPS 188765766/*767* USB packets, beginning with a Linux USB header; requested by768* Paolo Abeni <[email protected]>.769*/770#define DLT_USB_LINUX 189771772/*773* Controller Area Network (CAN) v. 2.0B packets.774* DLT_ requested by Gianluca Varenni <[email protected]>.775* Used to dump CAN packets coming from a CAN Vector board.776* More documentation on the CAN v2.0B frames can be found at777* http://www.can-cia.org/downloads/?269778*/779#define DLT_CAN20B 190780781/*782* IEEE 802.15.4, with address fields padded, as is done by Linux783* drivers; requested by Juergen Schimmer.784*/785#define DLT_IEEE802_15_4_LINUX 191786787/*788* Per Packet Information encapsulated packets.789* DLT_ requested by Gianluca Varenni <[email protected]>.790*/791#define DLT_PPI 192792793/*794* Header for 802.16 MAC Common Part Sublayer plus a radiotap radio header;795* requested by Charles Clancy.796*/797#define DLT_IEEE802_16_MAC_CPS_RADIO 193798799/*800* Juniper-private data link type, as per request from801* Hannes Gredler <[email protected]>.802* The DLT_ is used for internal communication with a803* integrated service module (ISM).804*/805#define DLT_JUNIPER_ISM 194806807/*808* IEEE 802.15.4, exactly as it appears in the spec (no padding, no809* nothing); requested by Mikko Saarnivala <[email protected]>.810* For this one, we expect the FCS to be present at the end of the frame;811* if the frame has no FCS, DLT_IEEE802_15_4_NOFCS should be used.812*813* We keep the name DLT_IEEE802_15_4 as an alias for backwards814* compatibility, but, again, this should *only* be used for 802.15.4815* frames that include the FCS.816*/817#define DLT_IEEE802_15_4_WITHFCS 195818#define DLT_IEEE802_15_4 DLT_IEEE802_15_4_WITHFCS819820/*821* Various link-layer types, with a pseudo-header, for SITA822* (https://www.sita.aero/); requested by Fulko Hew ([email protected]).823*/824#define DLT_SITA 196825826/*827* Various link-layer types, with a pseudo-header, for Endace DAG cards;828* encapsulates Endace ERF records. Requested by Stephen Donnelly829* <[email protected]>.830*/831#define DLT_ERF 197832833/*834* Special header prepended to Ethernet packets when capturing from a835* u10 Networks board. Requested by Phil Mulholland836* <[email protected]>.837*/838#define DLT_RAIF1 198839840/*841* IPMB packet for IPMI, beginning with a 2-byte header, followed by842* the I2C slave address, followed by the netFn and LUN, etc..843* Requested by Chanthy Toeung <[email protected]>.844*845* XXX - this used to be called DLT_IPMB, back when we got the846* impression from the email thread requesting it that the packet847* had no extra 2-byte header. We've renamed it; if anybody used848* DLT_IPMB and assumed no 2-byte header, this will cause the compile849* to fail, at which point we'll have to figure out what to do about850* the two header types using the same DLT_/LINKTYPE_ value. If that851* doesn't happen, we'll assume nobody used it and that the redefinition852* is safe.853*/854#define DLT_IPMB_KONTRON 199855856/*857* Juniper-private data link type, as per request from858* Hannes Gredler <[email protected]>.859* The DLT_ is used for capturing data on a secure tunnel interface.860*/861#define DLT_JUNIPER_ST 200862863/*864* Bluetooth HCI UART transport layer (part H:4), with pseudo-header865* that includes direction information; requested by Paolo Abeni.866*/867#define DLT_BLUETOOTH_HCI_H4_WITH_PHDR 201868869/*870* AX.25 packet with a 1-byte KISS header; see871*872* http://www.ax25.net/kiss.htm873*874* as per Richard Stearn <[email protected]>.875*/876#define DLT_AX25_KISS 202877878/*879* LAPD packets from an ISDN channel, starting with the address field,880* with no pseudo-header.881* Requested by Varuna De Silva <[email protected]>.882*/883#define DLT_LAPD 203884885/*886* PPP, with a one-byte direction pseudo-header prepended - zero means887* "received by this host", non-zero (any non-zero value) means "sent by888* this host" - as per Will Barker <[email protected]>.889*890* Don't confuse this with DLT_PPP_WITH_DIRECTION, which is an old891* name for what is now called DLT_PPP_PPPD.892*/893#define DLT_PPP_WITH_DIR 204894895/*896* Cisco HDLC, with a one-byte direction pseudo-header prepended - zero897* means "received by this host", non-zero (any non-zero value) means898* "sent by this host" - as per Will Barker <[email protected]>.899*/900#define DLT_C_HDLC_WITH_DIR 205901902/*903* Frame Relay, with a one-byte direction pseudo-header prepended - zero904* means "received by this host" (DCE -> DTE), non-zero (any non-zero905* value) means "sent by this host" (DTE -> DCE) - as per Will Barker906* <[email protected]>.907*/908#define DLT_FRELAY_WITH_DIR 206909910/*911* LAPB, with a one-byte direction pseudo-header prepended - zero means912* "received by this host" (DCE -> DTE), non-zero (any non-zero value)913* means "sent by this host" (DTE -> DCE)- as per Will Barker914* <[email protected]>.915*/916#define DLT_LAPB_WITH_DIR 207917918/*919* 208 is reserved for an as-yet-unspecified proprietary link-layer920* type, as requested by Will Barker.921*/922923/*924* IPMB with a Linux-specific pseudo-header; as requested by Alexey Neyman925* <[email protected]>.926*/927#define DLT_IPMB_LINUX 209928929/*930* FlexRay automotive bus - http://www.flexray.com/ - as requested931* by Hannes Kaelber <[email protected]>.932*/933#define DLT_FLEXRAY 210934935/*936* Media Oriented Systems Transport (MOST) bus for multimedia937* transport - https://www.mostcooperation.com/ - as requested938* by Hannes Kaelber <[email protected]>.939*/940#define DLT_MOST 211941942/*943* Local Interconnect Network (LIN) bus for vehicle networks -944* http://www.lin-subbus.org/ - as requested by Hannes Kaelber945* <[email protected]>.946*/947#define DLT_LIN 212948949/*950* X2E-private data link type used for serial line capture,951* as requested by Hannes Kaelber <[email protected]>.952*/953#define DLT_X2E_SERIAL 213954955/*956* X2E-private data link type used for the Xoraya data logger957* family, as requested by Hannes Kaelber <[email protected]>.958*/959#define DLT_X2E_XORAYA 214960961/*962* IEEE 802.15.4, exactly as it appears in the spec (no padding, no963* nothing), but with the PHY-level data for non-ASK PHYs (4 octets964* of 0 as preamble, one octet of SFD, one octet of frame length+965* reserved bit, and then the MAC-layer data, starting with the966* frame control field).967*968* Requested by Max Filippov <[email protected]>.969*/970#define DLT_IEEE802_15_4_NONASK_PHY 215971972/*973* David Gibson <[email protected]> requested this for974* captures from the Linux kernel /dev/input/eventN devices. This975* is used to communicate keystrokes and mouse movements from the976* Linux kernel to display systems, such as Xorg.977*/978#define DLT_LINUX_EVDEV 216979980/*981* GSM Um and Abis interfaces, preceded by a "gsmtap" header.982*983* Requested by Harald Welte <[email protected]>.984*/985#define DLT_GSMTAP_UM 217986#define DLT_GSMTAP_ABIS 218987988/*989* MPLS, with an MPLS label as the link-layer header.990* Requested by Michele Marchetto <[email protected]> on behalf991* of OpenBSD.992*/993#define DLT_MPLS 219994995/*996* USB packets, beginning with a Linux USB header, with the USB header997* padded to 64 bytes; required for memory-mapped access.998*/999#define DLT_USB_LINUX_MMAPPED 22010001001/*1002* DECT packets, with a pseudo-header; requested by1003* Matthias Wenzel <[email protected]>.1004*/1005#define DLT_DECT 22110061007/*1008* From: "Lidwa, Eric (GSFC-582.0)[SGT INC]" <[email protected]>1009* Date: Mon, 11 May 2009 11:18:30 -05001010*1011* DLT_AOS. We need it for AOS Space Data Link Protocol.1012* I have already written dissectors for but need an OK from1013* legal before I can submit a patch.1014*1015*/1016#define DLT_AOS 22210171018/*1019* Wireless HART (Highway Addressable Remote Transducer)1020* From the HART Communication Foundation1021* IES/PAS 625911022*1023* Requested by Sam Roberts <[email protected]>.1024*/1025#define DLT_WIHART 22310261027/*1028* Fibre Channel FC-2 frames, beginning with a Frame_Header.1029* Requested by Kahou Lei <[email protected]>.1030*/1031#define DLT_FC_2 22410321033/*1034* Fibre Channel FC-2 frames, beginning with an encoding of the1035* SOF, and ending with an encoding of the EOF.1036*1037* The encodings represent the frame delimiters as 4-byte sequences1038* representing the corresponding ordered sets, with K28.51039* represented as 0xBC, and the D symbols as the corresponding1040* byte values; for example, SOFi2, which is K28.5 - D21.5 - D1.2 - D21.2,1041* is represented as 0xBC 0xB5 0x55 0x55.1042*1043* Requested by Kahou Lei <[email protected]>.1044*/1045#define DLT_FC_2_WITH_FRAME_DELIMS 22510461047/*1048* Solaris ipnet pseudo-header; requested by Darren Reed <[email protected]>.1049*1050* The pseudo-header starts with a one-byte version number; for version 2,1051* the pseudo-header is:1052*1053* struct dl_ipnetinfo {1054* uint8_t dli_version;1055* uint8_t dli_family;1056* uint16_t dli_htype;1057* uint32_t dli_pktlen;1058* uint32_t dli_ifindex;1059* uint32_t dli_grifindex;1060* uint32_t dli_zsrc;1061* uint32_t dli_zdst;1062* };1063*1064* dli_version is 2 for the current version of the pseudo-header.1065*1066* dli_family is a Solaris address family value, so it's 2 for IPv41067* and 26 for IPv6.1068*1069* dli_htype is a "hook type" - 0 for incoming packets, 1 for outgoing1070* packets, and 2 for packets arriving from another zone on the same1071* machine.1072*1073* dli_pktlen is the length of the packet data following the pseudo-header1074* (so the captured length minus dli_pktlen is the length of the1075* pseudo-header, assuming the entire pseudo-header was captured).1076*1077* dli_ifindex is the interface index of the interface on which the1078* packet arrived.1079*1080* dli_grifindex is the group interface index number (for IPMP interfaces).1081*1082* dli_zsrc is the zone identifier for the source of the packet.1083*1084* dli_zdst is the zone identifier for the destination of the packet.1085*1086* A zone number of 0 is the global zone; a zone number of 0xffffffff1087* means that the packet arrived from another host on the network, not1088* from another zone on the same machine.1089*1090* An IPv4 or IPv6 datagram follows the pseudo-header; dli_family indicates1091* which of those it is.1092*/1093#define DLT_IPNET 22610941095/*1096* CAN (Controller Area Network) frames, with a pseudo-header as supplied1097* by Linux SocketCAN, and with multi-byte numerical fields in that header1098* in big-endian byte order.1099*1100* See Documentation/networking/can.txt in the Linux source.1101*1102* Requested by Felix Obenhuber <[email protected]>.1103*/1104#define DLT_CAN_SOCKETCAN 22711051106/*1107* Raw IPv4/IPv6; different from DLT_RAW in that the DLT_ value specifies1108* whether it's v4 or v6. Requested by Darren Reed <[email protected]>.1109*/1110#define DLT_IPV4 2281111#define DLT_IPV6 22911121113/*1114* IEEE 802.15.4, exactly as it appears in the spec (no padding, no1115* nothing), and with no FCS at the end of the frame; requested by1116* Jon Smirl <[email protected]>.1117*/1118#define DLT_IEEE802_15_4_NOFCS 23011191120/*1121* Raw D-Bus:1122*1123* https://www.freedesktop.org/wiki/Software/dbus1124*1125* messages:1126*1127* https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages1128*1129* starting with the endianness flag, followed by the message type, etc.,1130* but without the authentication handshake before the message sequence:1131*1132* https://dbus.freedesktop.org/doc/dbus-specification.html#auth-protocol1133*1134* Requested by Martin Vidner <[email protected]>.1135*/1136#define DLT_DBUS 23111371138/*1139* Juniper-private data link type, as per request from1140* Hannes Gredler <[email protected]>.1141*/1142#define DLT_JUNIPER_VS 2321143#define DLT_JUNIPER_SRX_E2E 2331144#define DLT_JUNIPER_FIBRECHANNEL 23411451146/*1147* DVB-CI (DVB Common Interface for communication between a PC Card1148* module and a DVB receiver). See1149*1150* https://www.kaiser.cx/pcap-dvbci.html1151*1152* for the specification.1153*1154* Requested by Martin Kaiser <[email protected]>.1155*/1156#define DLT_DVB_CI 23511571158/*1159* Variant of 3GPP TS 27.010 multiplexing protocol (similar to, but1160* *not* the same as, 27.010). Requested by Hans-Christoph Schemmel1161* <[email protected]>.1162*/1163#define DLT_MUX27010 23611641165/*1166* STANAG 5066 D_PDUs. Requested by M. Baris Demiray1167* <[email protected]>.1168*/1169#define DLT_STANAG_5066_D_PDU 23711701171/*1172* Juniper-private data link type, as per request from1173* Hannes Gredler <[email protected]>.1174*/1175#define DLT_JUNIPER_ATM_CEMIC 23811761177/*1178* NetFilter LOG messages1179* (payload of netlink NFNL_SUBSYS_ULOG/NFULNL_MSG_PACKET packets)1180*1181* Requested by Jakub Zawadzki <[email protected]>1182*/1183#define DLT_NFLOG 23911841185/*1186* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type1187* for Ethernet packets with a 4-byte pseudo-header and always1188* with the payload including the FCS, as supplied by their1189* netANALYZER hardware and software.1190*1191* Requested by Holger P. Frommer <[email protected]>1192*/1193#define DLT_NETANALYZER 24011941195/*1196* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type1197* for Ethernet packets with a 4-byte pseudo-header and FCS and1198* with the Ethernet header preceded by 7 bytes of preamble and1199* 1 byte of SFD, as supplied by their netANALYZER hardware and1200* software.1201*1202* Requested by Holger P. Frommer <[email protected]>1203*/1204#define DLT_NETANALYZER_TRANSPARENT 24112051206/*1207* IP-over-InfiniBand, as specified by RFC 4391.1208*1209* Requested by Petr Sumbera <[email protected]>.1210*/1211#define DLT_IPOIB 24212121213/*1214* MPEG-2 transport stream (ISO 13818-1/ITU-T H.222.0).1215*1216* Requested by Guy Martin <[email protected]>.1217*/1218#define DLT_MPEG_2_TS 24312191220/*1221* ng4T GmbH's UMTS Iub/Iur-over-ATM and Iub/Iur-over-IP format as1222* used by their ng40 protocol tester.1223*1224* Requested by Jens Grimmer <[email protected]>.1225*/1226#define DLT_NG40 24412271228/*1229* Pseudo-header giving adapter number and flags, followed by an NFC1230* (Near-Field Communications) Logical Link Control Protocol (LLCP) PDU,1231* as specified by NFC Forum Logical Link Control Protocol Technical1232* Specification LLCP 1.1.1233*1234* Requested by Mike Wakerly <[email protected]>.1235*/1236#define DLT_NFC_LLCP 24512371238/*1239* 246 is used as LINKTYPE_PFSYNC; do not use it for any other purpose.1240*1241* DLT_PFSYNC has different values on different platforms, and all of1242* them collide with something used elsewhere. On platforms that1243* don't already define it, define it as 246.1244*/1245#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__APPLE__)1246#define DLT_PFSYNC 2461247#endif12481249/*1250* Raw InfiniBand packets, starting with the Local Routing Header.1251*1252* Requested by Oren Kladnitsky <[email protected]>.1253*/1254#define DLT_INFINIBAND 24712551256/*1257* SCTP, with no lower-level protocols (i.e., no IPv4 or IPv6).1258*1259* Requested by Michael Tuexen <[email protected]>.1260*/1261#define DLT_SCTP 24812621263/*1264* USB packets, beginning with a USBPcap header.1265*1266* Requested by Tomasz Mon <[email protected]>1267*/1268#define DLT_USBPCAP 24912691270/*1271* Schweitzer Engineering Laboratories "RTAC" product serial-line1272* packets.1273*1274* Requested by Chris Bontje <[email protected]>.1275*/1276#define DLT_RTAC_SERIAL 25012771278/*1279* Bluetooth Low Energy air interface link-layer packets.1280*1281* Requested by Mike Kershaw <[email protected]>.1282*/1283#define DLT_BLUETOOTH_LE_LL 25112841285/*1286* DLT type for upper-protocol layer PDU saves from Wireshark.1287*1288* the actual contents are determined by two TAGs, one or more of1289* which is stored with each packet:1290*1291* EXP_PDU_TAG_DISSECTOR_NAME the name of the Wireshark dissector1292* that can make sense of the data stored.1293*1294* EXP_PDU_TAG_HEUR_DISSECTOR_NAME the name of the Wireshark heuristic1295* dissector that can make sense of the1296* data stored.1297*/1298#define DLT_WIRESHARK_UPPER_PDU 25212991300/*1301* DLT type for the netlink protocol (nlmon devices).1302*/1303#define DLT_NETLINK 25313041305/*1306* Bluetooth Linux Monitor headers for the BlueZ stack.1307*/1308#define DLT_BLUETOOTH_LINUX_MONITOR 25413091310/*1311* Bluetooth Basic Rate/Enhanced Data Rate baseband packets, as1312* captured by Ubertooth.1313*/1314#define DLT_BLUETOOTH_BREDR_BB 25513151316/*1317* Bluetooth Low Energy link layer packets, as captured by Ubertooth.1318*/1319#define DLT_BLUETOOTH_LE_LL_WITH_PHDR 25613201321/*1322* PROFIBUS data link layer.1323*/1324#define DLT_PROFIBUS_DL 25713251326/*1327* Apple's DLT_PKTAP headers.1328*1329* Sadly, the folks at Apple either had no clue that the DLT_USERn values1330* are for internal use within an organization and partners only, and1331* didn't know that the right way to get a link-layer header type is to1332* ask tcpdump.org for one, or knew and didn't care, so they just1333* used DLT_USER2, which causes problems for everything except for1334* their version of tcpdump.1335*1336* So I'll just give them one; hopefully this will show up in a1337* libpcap release in time for them to get this into 10.10 Big Sur1338* or whatever Mavericks' successor is called. LINKTYPE_PKTAP1339* will be 258 *even on macOS*; that is *intentional*, so that1340* PKTAP files look the same on *all* OSes (different OSes can have1341* different numerical values for a given DLT_, but *MUST NOT* have1342* different values for what goes in a file, as files can be moved1343* between OSes!).1344*1345* When capturing, on a system with a Darwin-based OS, on a device1346* that returns 149 (DLT_USER2 and Apple's DLT_PKTAP) with this1347* version of libpcap, the DLT_ value for the pcap_t will be DLT_PKTAP,1348* and that will continue to be DLT_USER2 on Darwin-based OSes. That way,1349* binary compatibility with Mavericks is preserved for programs using1350* this version of libpcap. This does mean that if you were using1351* DLT_USER2 for some capture device on macOS, you can't do so with1352* this version of libpcap, just as you can't with Apple's libpcap -1353* on macOS, they define DLT_PKTAP to be DLT_USER2, so programs won't1354* be able to distinguish between PKTAP and whatever you were using1355* DLT_USER2 for.1356*1357* If the program saves the capture to a file using this version of1358* libpcap's pcap_dump code, the LINKTYPE_ value in the file will be1359* LINKTYPE_PKTAP, which will be 258, even on Darwin-based OSes.1360* That way, the file will *not* be a DLT_USER2 file. That means1361* that the latest version of tcpdump, when built with this version1362* of libpcap, and sufficiently recent versions of Wireshark will1363* be able to read those files and interpret them correctly; however,1364* Apple's version of tcpdump in OS X 10.9 won't be able to handle1365* them. (Hopefully, Apple will pick up this version of libpcap,1366* and the corresponding version of tcpdump, so that tcpdump will1367* be able to handle the old LINKTYPE_USER2 captures *and* the new1368* LINKTYPE_PKTAP captures.)1369*/1370#ifdef __APPLE__1371#define DLT_PKTAP DLT_USER21372#else1373#define DLT_PKTAP 2581374#endif13751376/*1377* Ethernet packets preceded by a header giving the last 6 octets1378* of the preamble specified by 802.3-2012 Clause 65, section1379* 65.1.3.2 "Transmit".1380*/1381#define DLT_EPON 25913821383/*1384* IPMI trace packets, as specified by Table 3-20 "Trace Data Block Format"1385* in the PICMG HPM.2 specification.1386*/1387#define DLT_IPMI_HPM_2 26013881389/*1390* per Joshua Wright <[email protected]>, formats for Zwave captures.1391*/1392#define DLT_ZWAVE_R1_R2 2611393#define DLT_ZWAVE_R3 26213941395/*1396* per Steve Karg <[email protected]>, formats for Wattstopper1397* Digital Lighting Management room bus serial protocol captures.1398*/1399#define DLT_WATTSTOPPER_DLM 26314001401/*1402* ISO 14443 contactless smart card messages.1403*/1404#define DLT_ISO_14443 26414051406/*1407* Radio data system (RDS) groups. IEC 62106.1408* Per Jonathan Brucker <[email protected]>.1409*/1410#define DLT_RDS 26514111412/*1413* USB packets, beginning with a Darwin (macOS, etc.) header.1414*/1415#define DLT_USB_DARWIN 26614161417/*1418* OpenBSD DLT_OPENFLOW.1419*/1420#define DLT_OPENFLOW 26714211422/*1423* SDLC frames containing SNA PDUs.1424*/1425#define DLT_SDLC 26814261427/*1428* per "Selvig, Bjorn" <[email protected]> used for1429* TI protocol sniffer.1430*/1431#define DLT_TI_LLN_SNIFFER 26914321433/*1434* per: Erik de Jong <erikdejong at gmail.com> for1435* https://github.com/eriknl/LoRaTap/releases/tag/v0.11436*/1437#define DLT_LORATAP 27014381439/*1440* per: Stefanha at gmail.com for1441* https://lists.sandelman.ca/pipermail/tcpdump-workers/2017-May/000772.html1442* and: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/vsockmon.h1443* for: https://qemu-project.org/Features/VirtioVsock1444*/1445#define DLT_VSOCK 27114461447/*1448* Nordic Semiconductor Bluetooth LE sniffer.1449*/1450#define DLT_NORDIC_BLE 27214511452/*1453* Excentis DOCSIS 3.1 RF sniffer (XRA-31)1454* per: bruno.verstuyft at excentis.com1455* https://www.xra31.com/xra-header1456*/1457#define DLT_DOCSIS31_XRA31 27314581459/*1460* mPackets, as specified by IEEE 802.3br Figure 99-4, starting1461* with the preamble and always ending with a CRC field.1462*/1463#define DLT_ETHERNET_MPACKET 27414641465/*1466* DisplayPort AUX channel monitoring data as specified by VESA1467* DisplayPort(DP) Standard preceded by a pseudo-header.1468* per dirk.eibach at gdsys.cc1469*/1470#define DLT_DISPLAYPORT_AUX 27514711472/*1473* Linux cooked sockets v2.1474*/1475#define DLT_LINUX_SLL2 27614761477/*1478* Sercos Monitor, per Manuel Jacob <manuel.jacob at steinbeis-stg.de>1479*/1480#define DLT_SERCOS_MONITOR 27714811482/*1483* OpenVizsla http://openvizsla.org is open source USB analyzer hardware.1484* It consists of FPGA with attached USB phy and FTDI chip for streaming1485* the data to the host PC.1486*1487* Current OpenVizsla data encapsulation format is described here:1488* https://github.com/matwey/libopenvizsla/wiki/OpenVizsla-protocol-description1489*1490*/1491#define DLT_OPENVIZSLA 27814921493/*1494* The Elektrobit High Speed Capture and Replay (EBHSCR) protocol is produced1495* by a PCIe Card for interfacing high speed automotive interfaces.1496*1497* The specification for this frame format can be found at:1498* https://www.elektrobit.com/ebhscr1499*1500* for Guenter.Ebermann at elektrobit.com1501*1502*/1503#define DLT_EBHSCR 27915041505/*1506* The https://fd.io vpp graph dispatch tracer produces pcap trace files1507* in the format documented here:1508* https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vnet.html#graph-dispatcher-pcap-tracing1509*/1510#define DLT_VPP_DISPATCH 28015111512/*1513* Broadcom Ethernet switches (ROBO switch) 4 bytes proprietary tagging format.1514*/1515#define DLT_DSA_TAG_BRCM 2811516#define DLT_DSA_TAG_BRCM_PREPEND 28215171518/*1519* IEEE 802.15.4 with pseudo-header and optional meta-data TLVs, PHY payload1520* exactly as it appears in the spec (no padding, no nothing), and FCS if1521* specified by FCS Type TLV; requested by James Ko <[email protected]>.1522* Specification at https://github.com/jkcko/ieee802.15.4-tap1523*/1524#define DLT_IEEE802_15_4_TAP 28315251526/*1527* Marvell (Ethertype) Distributed Switch Architecture proprietary tagging format.1528*/1529#define DLT_DSA_TAG_DSA 2841530#define DLT_DSA_TAG_EDSA 28515311532/*1533* Payload of lawful intercept packets using the ELEE protocol;1534* https://socket.hr/draft-dfranusic-opsawg-elee-00.xml1535* https://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc.cgi?url=https://socket.hr/draft-dfranusic-opsawg-elee-00.xml&modeAsFormat=html/ascii1536*/1537#define DLT_ELEE 28615381539/*1540* Serial frames transmitted between a host and a Z-Wave chip.1541*/1542#define DLT_Z_WAVE_SERIAL 28715431544/*1545* USB 2.0, 1.1, and 1.0 packets as transmitted over the cable.1546*/1547#define DLT_USB_2_0 28815481549/*1550* ATSC Link-Layer Protocol (A/330) packets.1551*/1552#define DLT_ATSC_ALP 28915531554/*1555* In case the code that includes this file (directly or indirectly)1556* has also included OS files that happen to define DLT_MATCHING_MAX,1557* with a different value (perhaps because that OS hasn't picked up1558* the latest version of our DLT definitions), we undefine the1559* previous value of DLT_MATCHING_MAX.1560*/1561#ifdef DLT_MATCHING_MAX1562#undef DLT_MATCHING_MAX1563#endif1564#define DLT_MATCHING_MAX 289 /* highest value in the "matching" range */15651566/*1567* DLT and savefile link type values are split into a class and1568* a member of that class. A class value of 0 indicates a regular1569* DLT_/LINKTYPE_ value.1570*/1571#define DLT_CLASS(x) ((x) & 0x03ff0000)15721573/*1574* NetBSD-specific generic "raw" link type. The class value indicates1575* that this is the generic raw type, and the lower 16 bits are the1576* address family we're dealing with. Those values are NetBSD-specific;1577* do not assume that they correspond to AF_ values for your operating1578* system.1579*/1580#define DLT_CLASS_NETBSD_RAWAF 0x022400001581#define DLT_NETBSD_RAWAF(af) (DLT_CLASS_NETBSD_RAWAF | (af))1582#define DLT_NETBSD_RAWAF_AF(x) ((x) & 0x0000ffff)1583#define DLT_IS_NETBSD_RAWAF(x) (DLT_CLASS(x) == DLT_CLASS_NETBSD_RAWAF)15841585#endif /* !_NET_DLT_H_ */158615871588