1335640Shselasky/*- 2335640Shselasky * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 3335640Shselasky * The Regents of the University of California. All rights reserved. 4335640Shselasky * 5335640Shselasky * This code is derived from the Stanford/CMU enet packet filter, 6335640Shselasky * (net/enet.c) distributed as part of 4.3BSD, and code contributed 7335640Shselasky * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence 8335640Shselasky * Berkeley Laboratory. 9335640Shselasky * 10335640Shselasky * Redistribution and use in source and binary forms, with or without 11335640Shselasky * modification, are permitted provided that the following conditions 12335640Shselasky * are met: 13335640Shselasky * 1. Redistributions of source code must retain the above copyright 14335640Shselasky * notice, this list of conditions and the following disclaimer. 15335640Shselasky * 2. Redistributions in binary form must reproduce the above copyright 16335640Shselasky * notice, this list of conditions and the following disclaimer in the 17335640Shselasky * documentation and/or other materials provided with the distribution. 18335640Shselasky * 3. Neither the name of the University nor the names of its contributors 19335640Shselasky * may be used to endorse or promote products derived from this software 20335640Shselasky * without specific prior written permission. 21335640Shselasky * 22335640Shselasky * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23335640Shselasky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24335640Shselasky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25335640Shselasky * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26335640Shselasky * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27335640Shselasky * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28335640Shselasky * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29335640Shselasky * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30335640Shselasky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31335640Shselasky * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32335640Shselasky * SUCH DAMAGE. 33335640Shselasky * 34335640Shselasky * @(#)bpf.h 7.1 (Berkeley) 5/7/91 35335640Shselasky */ 36335640Shselasky 37335640Shselasky#ifndef lib_pcap_dlt_h 38335640Shselasky#define lib_pcap_dlt_h 39335640Shselasky 40335640Shselasky/* 41335640Shselasky * Link-layer header type codes. 42335640Shselasky * 43335640Shselasky * Do *NOT* add new values to this list without asking 44335640Shselasky * "tcpdump-workers@lists.tcpdump.org" for a value. Otherwise, you run 45335640Shselasky * the risk of using a value that's already being used for some other 46335640Shselasky * purpose, and of having tools that read libpcap-format captures not 47335640Shselasky * being able to handle captures with your new DLT_ value, with no hope 48335640Shselasky * that they will ever be changed to do so (as that would destroy their 49335640Shselasky * ability to read captures using that value for that other purpose). 50335640Shselasky * 51335640Shselasky * See 52335640Shselasky * 53356341Scy * https://www.tcpdump.org/linktypes.html 54335640Shselasky * 55335640Shselasky * for detailed descriptions of some of these link-layer header types. 56335640Shselasky */ 57335640Shselasky 58335640Shselasky/* 59335640Shselasky * These are the types that are the same on all platforms, and that 60335640Shselasky * have been defined by <net/bpf.h> for ages. 61335640Shselasky */ 62335640Shselasky#define DLT_NULL 0 /* BSD loopback encapsulation */ 63335640Shselasky#define DLT_EN10MB 1 /* Ethernet (10Mb) */ 64335640Shselasky#define DLT_EN3MB 2 /* Experimental Ethernet (3Mb) */ 65335640Shselasky#define DLT_AX25 3 /* Amateur Radio AX.25 */ 66335640Shselasky#define DLT_PRONET 4 /* Proteon ProNET Token Ring */ 67335640Shselasky#define DLT_CHAOS 5 /* Chaos */ 68335640Shselasky#define DLT_IEEE802 6 /* 802.5 Token Ring */ 69335640Shselasky#define DLT_ARCNET 7 /* ARCNET, with BSD-style header */ 70335640Shselasky#define DLT_SLIP 8 /* Serial Line IP */ 71335640Shselasky#define DLT_PPP 9 /* Point-to-point Protocol */ 72335640Shselasky#define DLT_FDDI 10 /* FDDI */ 73335640Shselasky 74335640Shselasky/* 75335640Shselasky * These are types that are different on some platforms, and that 76335640Shselasky * have been defined by <net/bpf.h> for ages. We use #ifdefs to 77335640Shselasky * detect the BSDs that define them differently from the traditional 78335640Shselasky * libpcap <net/bpf.h> 79335640Shselasky * 80335640Shselasky * XXX - DLT_ATM_RFC1483 is 13 in BSD/OS, and DLT_RAW is 14 in BSD/OS, 81335640Shselasky * but I don't know what the right #define is for BSD/OS. 82335640Shselasky */ 83335640Shselasky#define DLT_ATM_RFC1483 11 /* LLC-encapsulated ATM */ 84335640Shselasky 85335640Shselasky#ifdef __OpenBSD__ 86335640Shselasky#define DLT_RAW 14 /* raw IP */ 87335640Shselasky#else 88335640Shselasky#define DLT_RAW 12 /* raw IP */ 89335640Shselasky#endif 90335640Shselasky 91335640Shselasky/* 92335640Shselasky * Given that the only OS that currently generates BSD/OS SLIP or PPP 93335640Shselasky * is, well, BSD/OS, arguably everybody should have chosen its values 94335640Shselasky * for DLT_SLIP_BSDOS and DLT_PPP_BSDOS, which are 15 and 16, but they 95335640Shselasky * didn't. So it goes. 96335640Shselasky */ 97335640Shselasky#if defined(__NetBSD__) || defined(__FreeBSD__) 98335640Shselasky#ifndef DLT_SLIP_BSDOS 99335640Shselasky#define DLT_SLIP_BSDOS 13 /* BSD/OS Serial Line IP */ 100335640Shselasky#define DLT_PPP_BSDOS 14 /* BSD/OS Point-to-point Protocol */ 101335640Shselasky#endif 102335640Shselasky#else 103335640Shselasky#define DLT_SLIP_BSDOS 15 /* BSD/OS Serial Line IP */ 104335640Shselasky#define DLT_PPP_BSDOS 16 /* BSD/OS Point-to-point Protocol */ 105335640Shselasky#endif 106335640Shselasky 107335640Shselasky/* 108335640Shselasky * 17 was used for DLT_PFLOG in OpenBSD; it no longer is. 109335640Shselasky * 110335640Shselasky * It was DLT_LANE8023 in SuSE 6.3, so we defined LINKTYPE_PFLOG 111335640Shselasky * as 117 so that pflog captures would use a link-layer header type 112335640Shselasky * value that didn't collide with any other values. On all 113335640Shselasky * platforms other than OpenBSD, we defined DLT_PFLOG as 117, 114335640Shselasky * and we mapped between LINKTYPE_PFLOG and DLT_PFLOG. 115335640Shselasky * 116335640Shselasky * OpenBSD eventually switched to using 117 for DLT_PFLOG as well. 117335640Shselasky * 118335640Shselasky * Don't use 17 for anything else. 119335640Shselasky */ 120335640Shselasky 121335640Shselasky/* 122335640Shselasky * 18 is used for DLT_PFSYNC in OpenBSD, NetBSD, DragonFly BSD and 123335640Shselasky * macOS; don't use it for anything else. (FreeBSD uses 121, which 124335640Shselasky * collides with DLT_HHDLC, even though it doesn't use 18 for 125335640Shselasky * anything and doesn't appear to have ever used it for anything.) 126335640Shselasky * 127335640Shselasky * We define it as 18 on those platforms; it is, unfortunately, used 128335640Shselasky * for DLT_CIP in Suse 6.3, so we don't define it as DLT_PFSYNC 129335640Shselasky * in general. As the packet format for it, like that for 130335640Shselasky * DLT_PFLOG, is not only OS-dependent but OS-version-dependent, 131335640Shselasky * we don't support printing it in tcpdump except on OSes that 132335640Shselasky * have the relevant header files, so it's not that useful on 133335640Shselasky * other platforms. 134335640Shselasky */ 135335640Shselasky#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__APPLE__) 136335640Shselasky#define DLT_PFSYNC 18 137335640Shselasky#endif 138335640Shselasky 139335640Shselasky#define DLT_ATM_CLIP 19 /* Linux Classical-IP over ATM */ 140335640Shselasky 141335640Shselasky/* 142335640Shselasky * Apparently Redback uses this for its SmartEdge 400/800. I hope 143335640Shselasky * nobody else decided to use it, too. 144335640Shselasky */ 145335640Shselasky#define DLT_REDBACK_SMARTEDGE 32 146335640Shselasky 147335640Shselasky/* 148335640Shselasky * These values are defined by NetBSD; other platforms should refrain from 149335640Shselasky * using them for other purposes, so that NetBSD savefiles with link 150335640Shselasky * types of 50 or 51 can be read as this type on all platforms. 151335640Shselasky */ 152335640Shselasky#define DLT_PPP_SERIAL 50 /* PPP over serial with HDLC encapsulation */ 153335640Shselasky#define DLT_PPP_ETHER 51 /* PPP over Ethernet */ 154335640Shselasky 155335640Shselasky/* 156335640Shselasky * The Axent Raptor firewall - now the Symantec Enterprise Firewall - uses 157335640Shselasky * a link-layer type of 99 for the tcpdump it supplies. The link-layer 158335640Shselasky * header has 6 bytes of unknown data, something that appears to be an 159335640Shselasky * Ethernet type, and 36 bytes that appear to be 0 in at least one capture 160335640Shselasky * I've seen. 161335640Shselasky */ 162335640Shselasky#define DLT_SYMANTEC_FIREWALL 99 163335640Shselasky 164335640Shselasky/* 165335640Shselasky * Values between 100 and 103 are used in capture file headers as 166335640Shselasky * link-layer header type LINKTYPE_ values corresponding to DLT_ types 167335640Shselasky * that differ between platforms; don't use those values for new DLT_ 168335640Shselasky * new types. 169335640Shselasky */ 170335640Shselasky 171335640Shselasky/* 172335640Shselasky * Values starting with 104 are used for newly-assigned link-layer 173335640Shselasky * header type values; for those link-layer header types, the DLT_ 174335640Shselasky * value returned by pcap_datalink() and passed to pcap_open_dead(), 175335640Shselasky * and the LINKTYPE_ value that appears in capture files, are the 176335640Shselasky * same. 177335640Shselasky * 178335640Shselasky * DLT_MATCHING_MIN is the lowest such value; DLT_MATCHING_MAX is 179335640Shselasky * the highest such value. 180335640Shselasky */ 181335640Shselasky#define DLT_MATCHING_MIN 104 182335640Shselasky 183335640Shselasky/* 184335640Shselasky * This value was defined by libpcap 0.5; platforms that have defined 185335640Shselasky * it with a different value should define it here with that value - 186335640Shselasky * a link type of 104 in a save file will be mapped to DLT_C_HDLC, 187335640Shselasky * whatever value that happens to be, so programs will correctly 188335640Shselasky * handle files with that link type regardless of the value of 189335640Shselasky * DLT_C_HDLC. 190335640Shselasky * 191335640Shselasky * The name DLT_C_HDLC was used by BSD/OS; we use that name for source 192335640Shselasky * compatibility with programs written for BSD/OS. 193335640Shselasky * 194335640Shselasky * libpcap 0.5 defined it as DLT_CHDLC; we define DLT_CHDLC as well, 195335640Shselasky * for source compatibility with programs written for libpcap 0.5. 196335640Shselasky */ 197335640Shselasky#define DLT_C_HDLC 104 /* Cisco HDLC */ 198335640Shselasky#define DLT_CHDLC DLT_C_HDLC 199335640Shselasky 200335640Shselasky#define DLT_IEEE802_11 105 /* IEEE 802.11 wireless */ 201335640Shselasky 202335640Shselasky/* 203335640Shselasky * 106 is reserved for Linux Classical IP over ATM; it's like DLT_RAW, 204335640Shselasky * except when it isn't. (I.e., sometimes it's just raw IP, and 205335640Shselasky * sometimes it isn't.) We currently handle it as DLT_LINUX_SLL, 206335640Shselasky * so that we don't have to worry about the link-layer header.) 207335640Shselasky */ 208335640Shselasky 209335640Shselasky/* 210335640Shselasky * Frame Relay; BSD/OS has a DLT_FR with a value of 11, but that collides 211335640Shselasky * with other values. 212335640Shselasky * DLT_FR and DLT_FRELAY packets start with the Q.922 Frame Relay header 213335640Shselasky * (DLCI, etc.). 214335640Shselasky */ 215335640Shselasky#define DLT_FRELAY 107 216335640Shselasky 217335640Shselasky/* 218335640Shselasky * OpenBSD DLT_LOOP, for loopback devices; it's like DLT_NULL, except 219335640Shselasky * that the AF_ type in the link-layer header is in network byte order. 220335640Shselasky * 221335640Shselasky * DLT_LOOP is 12 in OpenBSD, but that's DLT_RAW in other OSes, so 222335640Shselasky * we don't use 12 for it in OSes other than OpenBSD. 223335640Shselasky */ 224335640Shselasky#ifdef __OpenBSD__ 225335640Shselasky#define DLT_LOOP 12 226335640Shselasky#else 227335640Shselasky#define DLT_LOOP 108 228335640Shselasky#endif 229335640Shselasky 230335640Shselasky/* 231335640Shselasky * Encapsulated packets for IPsec; DLT_ENC is 13 in OpenBSD, but that's 232335640Shselasky * DLT_SLIP_BSDOS in NetBSD, so we don't use 13 for it in OSes other 233335640Shselasky * than OpenBSD. 234335640Shselasky */ 235335640Shselasky#ifdef __OpenBSD__ 236335640Shselasky#define DLT_ENC 13 237335640Shselasky#else 238335640Shselasky#define DLT_ENC 109 239335640Shselasky#endif 240335640Shselasky 241335640Shselasky/* 242335640Shselasky * Values between 110 and 112 are reserved for use in capture file headers 243335640Shselasky * as link-layer types corresponding to DLT_ types that might differ 244335640Shselasky * between platforms; don't use those values for new DLT_ types 245335640Shselasky * other than the corresponding DLT_ types. 246335640Shselasky */ 247335640Shselasky 248335640Shselasky/* 249356341Scy * Linux cooked sockets. 250335640Shselasky */ 251335640Shselasky#define DLT_LINUX_SLL 113 252335640Shselasky 253335640Shselasky/* 254335640Shselasky * Apple LocalTalk hardware. 255335640Shselasky */ 256335640Shselasky#define DLT_LTALK 114 257335640Shselasky 258335640Shselasky/* 259335640Shselasky * Acorn Econet. 260335640Shselasky */ 261335640Shselasky#define DLT_ECONET 115 262335640Shselasky 263335640Shselasky/* 264335640Shselasky * Reserved for use with OpenBSD ipfilter. 265335640Shselasky */ 266335640Shselasky#define DLT_IPFILTER 116 267335640Shselasky 268335640Shselasky/* 269335640Shselasky * OpenBSD DLT_PFLOG. 270335640Shselasky */ 271335640Shselasky#define DLT_PFLOG 117 272335640Shselasky 273335640Shselasky/* 274335640Shselasky * Registered for Cisco-internal use. 275335640Shselasky */ 276335640Shselasky#define DLT_CISCO_IOS 118 277335640Shselasky 278335640Shselasky/* 279335640Shselasky * For 802.11 cards using the Prism II chips, with a link-layer 280335640Shselasky * header including Prism monitor mode information plus an 802.11 281335640Shselasky * header. 282335640Shselasky */ 283335640Shselasky#define DLT_PRISM_HEADER 119 284335640Shselasky 285335640Shselasky/* 286335640Shselasky * Reserved for Aironet 802.11 cards, with an Aironet link-layer header 287335640Shselasky * (see Doug Ambrisko's FreeBSD patches). 288335640Shselasky */ 289335640Shselasky#define DLT_AIRONET_HEADER 120 290335640Shselasky 291335640Shselasky/* 292335640Shselasky * Sigh. 293335640Shselasky * 294335640Shselasky * 121 was reserved for Siemens HiPath HDLC on 2002-01-25, as 295335640Shselasky * requested by Tomas Kukosa. 296335640Shselasky * 297335640Shselasky * On 2004-02-25, a FreeBSD checkin to sys/net/bpf.h was made that 298335640Shselasky * assigned 121 as DLT_PFSYNC. In current versions, its libpcap 299335640Shselasky * does DLT_ <-> LINKTYPE_ mapping, mapping DLT_PFSYNC to a 300335640Shselasky * LINKTYPE_PFSYNC value of 246, so it should write out DLT_PFSYNC 301335640Shselasky * dump files with 246 as the link-layer header type. (Earlier 302335640Shselasky * versions might not have done mapping, in which case they would 303335640Shselasky * have written them out with a link-layer header type of 121.) 304335640Shselasky * 305335640Shselasky * OpenBSD, from which pf came, however, uses 18 for DLT_PFSYNC; 306335640Shselasky * its libpcap does no DLT_ <-> LINKTYPE_ mapping, so it would 307335640Shselasky * write out DLT_PFSYNC dump files with use 18 as the link-layer 308335640Shselasky * header type. 309335640Shselasky * 310335640Shselasky * NetBSD, DragonFly BSD, and Darwin also use 18 for DLT_PFSYNC; in 311335640Shselasky * current versions, their libpcaps do DLT_ <-> LINKTYPE_ mapping, 312335640Shselasky * mapping DLT_PFSYNC to a LINKTYPE_PFSYNC value of 246, so they 313335640Shselasky * should write out DLT_PFSYNC dump files with 246 as the link-layer 314335640Shselasky * header type. (Earlier versions might not have done mapping, 315335640Shselasky * in which case they'd work the same way OpenBSD does, writing 316335640Shselasky * them out with a link-layer header type of 18.) 317335640Shselasky * 318335640Shselasky * We'll define DLT_PFSYNC as: 319335640Shselasky * 320335640Shselasky * 18 on NetBSD, OpenBSD, DragonFly BSD, and Darwin; 321335640Shselasky * 322335640Shselasky * 121 on FreeBSD; 323335640Shselasky * 324335640Shselasky * 246 everywhere else. 325335640Shselasky * 326335640Shselasky * We'll define DLT_HHDLC as 121 on everything except for FreeBSD; 327335640Shselasky * anybody who wants to compile, on FreeBSD, code that uses DLT_HHDLC 328335640Shselasky * is out of luck. 329335640Shselasky * 330335640Shselasky * We'll define LINKTYPE_PFSYNC as 246 on *all* platforms, so that 331335640Shselasky * savefiles written using *this* code won't use 18 or 121 for PFSYNC, 332335640Shselasky * they'll all use 246. 333335640Shselasky * 334335640Shselasky * Code that uses pcap_datalink() to determine the link-layer header 335335640Shselasky * type of a savefile won't, when built and run on FreeBSD, be able 336335640Shselasky * to distinguish between LINKTYPE_PFSYNC and LINKTYPE_HHDLC capture 337335640Shselasky * files, as pcap_datalink() will give 121 for both of them. Code 338335640Shselasky * that doesn't, such as the code in Wireshark, will be able to 339335640Shselasky * distinguish between them. 340335640Shselasky * 341335640Shselasky * FreeBSD's libpcap won't map a link-layer header type of 18 - i.e., 342335640Shselasky * DLT_PFSYNC files from OpenBSD and possibly older versions of NetBSD, 343335640Shselasky * DragonFly BSD, and macOS - to DLT_PFSYNC, so code built with FreeBSD's 344335640Shselasky * libpcap won't treat those files as DLT_PFSYNC files. 345335640Shselasky * 346335640Shselasky * Other libpcaps won't map a link-layer header type of 121 to DLT_PFSYNC; 347335640Shselasky * this means they can read DLT_HHDLC files, if any exist, but won't 348335640Shselasky * treat pcap files written by any older versions of FreeBSD libpcap that 349335640Shselasky * didn't map to 246 as DLT_PFSYNC files. 350335640Shselasky */ 351335640Shselasky#ifdef __FreeBSD__ 352335640Shselasky#define DLT_PFSYNC 121 353335640Shselasky#else 354335640Shselasky#define DLT_HHDLC 121 355335640Shselasky#endif 356335640Shselasky 357335640Shselasky/* 358335640Shselasky * This is for RFC 2625 IP-over-Fibre Channel. 359335640Shselasky * 360335640Shselasky * This is not for use with raw Fibre Channel, where the link-layer 361335640Shselasky * header starts with a Fibre Channel frame header; it's for IP-over-FC, 362335640Shselasky * where the link-layer header starts with an RFC 2625 Network_Header 363335640Shselasky * field. 364335640Shselasky */ 365335640Shselasky#define DLT_IP_OVER_FC 122 366335640Shselasky 367335640Shselasky/* 368335640Shselasky * This is for Full Frontal ATM on Solaris with SunATM, with a 369335640Shselasky * pseudo-header followed by an AALn PDU. 370335640Shselasky * 371335640Shselasky * There may be other forms of Full Frontal ATM on other OSes, 372335640Shselasky * with different pseudo-headers. 373335640Shselasky * 374335640Shselasky * If ATM software returns a pseudo-header with VPI/VCI information 375335640Shselasky * (and, ideally, packet type information, e.g. signalling, ILMI, 376335640Shselasky * LANE, LLC-multiplexed traffic, etc.), it should not use 377335640Shselasky * DLT_ATM_RFC1483, but should get a new DLT_ value, so tcpdump 378335640Shselasky * and the like don't have to infer the presence or absence of a 379335640Shselasky * pseudo-header and the form of the pseudo-header. 380335640Shselasky */ 381335640Shselasky#define DLT_SUNATM 123 /* Solaris+SunATM */ 382335640Shselasky 383335640Shselasky/* 384335640Shselasky * Reserved as per request from Kent Dahlgren <kent@praesum.com> 385335640Shselasky * for private use. 386335640Shselasky */ 387335640Shselasky#define DLT_RIO 124 /* RapidIO */ 388335640Shselasky#define DLT_PCI_EXP 125 /* PCI Express */ 389335640Shselasky#define DLT_AURORA 126 /* Xilinx Aurora link layer */ 390335640Shselasky 391335640Shselasky/* 392335640Shselasky * Header for 802.11 plus a number of bits of link-layer information 393335640Shselasky * including radio information, used by some recent BSD drivers as 394335640Shselasky * well as the madwifi Atheros driver for Linux. 395335640Shselasky */ 396335640Shselasky#define DLT_IEEE802_11_RADIO 127 /* 802.11 plus radiotap radio header */ 397335640Shselasky 398335640Shselasky/* 399335640Shselasky * Reserved for the TZSP encapsulation, as per request from 400335640Shselasky * Chris Waters <chris.waters@networkchemistry.com> 401335640Shselasky * TZSP is a generic encapsulation for any other link type, 402335640Shselasky * which includes a means to include meta-information 403335640Shselasky * with the packet, e.g. signal strength and channel 404335640Shselasky * for 802.11 packets. 405335640Shselasky */ 406335640Shselasky#define DLT_TZSP 128 /* Tazmen Sniffer Protocol */ 407335640Shselasky 408335640Shselasky/* 409335640Shselasky * BSD's ARCNET headers have the source host, destination host, 410335640Shselasky * and type at the beginning of the packet; that's what's handed 411335640Shselasky * up to userland via BPF. 412335640Shselasky * 413335640Shselasky * Linux's ARCNET headers, however, have a 2-byte offset field 414335640Shselasky * between the host IDs and the type; that's what's handed up 415335640Shselasky * to userland via PF_PACKET sockets. 416335640Shselasky * 417335640Shselasky * We therefore have to have separate DLT_ values for them. 418335640Shselasky */ 419335640Shselasky#define DLT_ARCNET_LINUX 129 /* ARCNET */ 420335640Shselasky 421335640Shselasky/* 422335640Shselasky * Juniper-private data link types, as per request from 423335640Shselasky * Hannes Gredler <hannes@juniper.net>. The DLT_s are used 424335640Shselasky * for passing on chassis-internal metainformation such as 425335640Shselasky * QOS profiles, etc.. 426335640Shselasky */ 427335640Shselasky#define DLT_JUNIPER_MLPPP 130 428335640Shselasky#define DLT_JUNIPER_MLFR 131 429335640Shselasky#define DLT_JUNIPER_ES 132 430335640Shselasky#define DLT_JUNIPER_GGSN 133 431335640Shselasky#define DLT_JUNIPER_MFR 134 432335640Shselasky#define DLT_JUNIPER_ATM2 135 433335640Shselasky#define DLT_JUNIPER_SERVICES 136 434335640Shselasky#define DLT_JUNIPER_ATM1 137 435335640Shselasky 436335640Shselasky/* 437335640Shselasky * Apple IP-over-IEEE 1394, as per a request from Dieter Siegmund 438335640Shselasky * <dieter@apple.com>. The header that's presented is an Ethernet-like 439335640Shselasky * header: 440335640Shselasky * 441335640Shselasky * #define FIREWIRE_EUI64_LEN 8 442335640Shselasky * struct firewire_header { 443335640Shselasky * u_char firewire_dhost[FIREWIRE_EUI64_LEN]; 444335640Shselasky * u_char firewire_shost[FIREWIRE_EUI64_LEN]; 445335640Shselasky * u_short firewire_type; 446335640Shselasky * }; 447335640Shselasky * 448335640Shselasky * with "firewire_type" being an Ethernet type value, rather than, 449335640Shselasky * for example, raw GASP frames being handed up. 450335640Shselasky */ 451335640Shselasky#define DLT_APPLE_IP_OVER_IEEE1394 138 452335640Shselasky 453335640Shselasky/* 454335640Shselasky * Various SS7 encapsulations, as per a request from Jeff Morriss 455335640Shselasky * <jeff.morriss[AT]ulticom.com> and subsequent discussions. 456335640Shselasky */ 457335640Shselasky#define DLT_MTP2_WITH_PHDR 139 /* pseudo-header with various info, followed by MTP2 */ 458335640Shselasky#define DLT_MTP2 140 /* MTP2, without pseudo-header */ 459335640Shselasky#define DLT_MTP3 141 /* MTP3, without pseudo-header or MTP2 */ 460335640Shselasky#define DLT_SCCP 142 /* SCCP, without pseudo-header or MTP2 or MTP3 */ 461335640Shselasky 462335640Shselasky/* 463335640Shselasky * DOCSIS MAC frames. 464335640Shselasky */ 465335640Shselasky#define DLT_DOCSIS 143 466335640Shselasky 467335640Shselasky/* 468335640Shselasky * Linux-IrDA packets. Protocol defined at http://www.irda.org. 469335640Shselasky * Those packets include IrLAP headers and above (IrLMP...), but 470335640Shselasky * don't include Phy framing (SOF/EOF/CRC & byte stuffing), because Phy 471335640Shselasky * framing can be handled by the hardware and depend on the bitrate. 472335640Shselasky * This is exactly the format you would get capturing on a Linux-IrDA 473335640Shselasky * interface (irdaX), but not on a raw serial port. 474335640Shselasky * Note the capture is done in "Linux-cooked" mode, so each packet include 475335640Shselasky * a fake packet header (struct sll_header). This is because IrDA packet 476335640Shselasky * decoding is dependant on the direction of the packet (incomming or 477335640Shselasky * outgoing). 478335640Shselasky * When/if other platform implement IrDA capture, we may revisit the 479335640Shselasky * issue and define a real DLT_IRDA... 480335640Shselasky * Jean II 481335640Shselasky */ 482335640Shselasky#define DLT_LINUX_IRDA 144 483335640Shselasky 484335640Shselasky/* 485335640Shselasky * Reserved for IBM SP switch and IBM Next Federation switch. 486335640Shselasky */ 487335640Shselasky#define DLT_IBM_SP 145 488335640Shselasky#define DLT_IBM_SN 146 489335640Shselasky 490335640Shselasky/* 491335640Shselasky * Reserved for private use. If you have some link-layer header type 492335640Shselasky * that you want to use within your organization, with the capture files 493335640Shselasky * using that link-layer header type not ever be sent outside your 494335640Shselasky * organization, you can use these values. 495335640Shselasky * 496335640Shselasky * No libpcap release will use these for any purpose, nor will any 497335640Shselasky * tcpdump release use them, either. 498335640Shselasky * 499335640Shselasky * Do *NOT* use these in capture files that you expect anybody not using 500335640Shselasky * your private versions of capture-file-reading tools to read; in 501335640Shselasky * particular, do *NOT* use them in products, otherwise you may find that 502335640Shselasky * people won't be able to use tcpdump, or snort, or Ethereal, or... to 503335640Shselasky * read capture files from your firewall/intrusion detection/traffic 504335640Shselasky * monitoring/etc. appliance, or whatever product uses that DLT_ value, 505335640Shselasky * and you may also find that the developers of those applications will 506335640Shselasky * not accept patches to let them read those files. 507335640Shselasky * 508335640Shselasky * Also, do not use them if somebody might send you a capture using them 509335640Shselasky * for *their* private type and tools using them for *your* private type 510335640Shselasky * would have to read them. 511335640Shselasky * 512335640Shselasky * Instead, ask "tcpdump-workers@lists.tcpdump.org" for a new DLT_ value, 513335640Shselasky * as per the comment above, and use the type you're given. 514335640Shselasky */ 515335640Shselasky#define DLT_USER0 147 516335640Shselasky#define DLT_USER1 148 517335640Shselasky#define DLT_USER2 149 518335640Shselasky#define DLT_USER3 150 519335640Shselasky#define DLT_USER4 151 520335640Shselasky#define DLT_USER5 152 521335640Shselasky#define DLT_USER6 153 522335640Shselasky#define DLT_USER7 154 523335640Shselasky#define DLT_USER8 155 524335640Shselasky#define DLT_USER9 156 525335640Shselasky#define DLT_USER10 157 526335640Shselasky#define DLT_USER11 158 527335640Shselasky#define DLT_USER12 159 528335640Shselasky#define DLT_USER13 160 529335640Shselasky#define DLT_USER14 161 530335640Shselasky#define DLT_USER15 162 531335640Shselasky 532335640Shselasky/* 533335640Shselasky * For future use with 802.11 captures - defined by AbsoluteValue 534335640Shselasky * Systems to store a number of bits of link-layer information 535335640Shselasky * including radio information: 536335640Shselasky * 537335640Shselasky * http://www.shaftnet.org/~pizza/software/capturefrm.txt 538335640Shselasky * 539335640Shselasky * but it might be used by some non-AVS drivers now or in the 540335640Shselasky * future. 541335640Shselasky */ 542335640Shselasky#define DLT_IEEE802_11_RADIO_AVS 163 /* 802.11 plus AVS radio header */ 543335640Shselasky 544335640Shselasky/* 545335640Shselasky * Juniper-private data link type, as per request from 546335640Shselasky * Hannes Gredler <hannes@juniper.net>. The DLT_s are used 547335640Shselasky * for passing on chassis-internal metainformation such as 548335640Shselasky * QOS profiles, etc.. 549335640Shselasky */ 550335640Shselasky#define DLT_JUNIPER_MONITOR 164 551335640Shselasky 552335640Shselasky/* 553335640Shselasky * BACnet MS/TP frames. 554335640Shselasky */ 555335640Shselasky#define DLT_BACNET_MS_TP 165 556335640Shselasky 557335640Shselasky/* 558335640Shselasky * Another PPP variant as per request from Karsten Keil <kkeil@suse.de>. 559335640Shselasky * 560335640Shselasky * This is used in some OSes to allow a kernel socket filter to distinguish 561335640Shselasky * between incoming and outgoing packets, on a socket intended to 562335640Shselasky * supply pppd with outgoing packets so it can do dial-on-demand and 563335640Shselasky * hangup-on-lack-of-demand; incoming packets are filtered out so they 564335640Shselasky * don't cause pppd to hold the connection up (you don't want random 565335640Shselasky * input packets such as port scans, packets from old lost connections, 566335640Shselasky * etc. to force the connection to stay up). 567335640Shselasky * 568335640Shselasky * The first byte of the PPP header (0xff03) is modified to accomodate 569335640Shselasky * the direction - 0x00 = IN, 0x01 = OUT. 570335640Shselasky */ 571335640Shselasky#define DLT_PPP_PPPD 166 572335640Shselasky 573335640Shselasky/* 574335640Shselasky * Names for backwards compatibility with older versions of some PPP 575335640Shselasky * software; new software should use DLT_PPP_PPPD. 576335640Shselasky */ 577335640Shselasky#define DLT_PPP_WITH_DIRECTION DLT_PPP_PPPD 578335640Shselasky#define DLT_LINUX_PPP_WITHDIRECTION DLT_PPP_PPPD 579335640Shselasky 580335640Shselasky/* 581335640Shselasky * Juniper-private data link type, as per request from 582335640Shselasky * Hannes Gredler <hannes@juniper.net>. The DLT_s are used 583335640Shselasky * for passing on chassis-internal metainformation such as 584335640Shselasky * QOS profiles, cookies, etc.. 585335640Shselasky */ 586335640Shselasky#define DLT_JUNIPER_PPPOE 167 587335640Shselasky#define DLT_JUNIPER_PPPOE_ATM 168 588335640Shselasky 589335640Shselasky#define DLT_GPRS_LLC 169 /* GPRS LLC */ 590335640Shselasky#define DLT_GPF_T 170 /* GPF-T (ITU-T G.7041/Y.1303) */ 591335640Shselasky#define DLT_GPF_F 171 /* GPF-F (ITU-T G.7041/Y.1303) */ 592335640Shselasky 593335640Shselasky/* 594335640Shselasky * Requested by Oolan Zimmer <oz@gcom.com> for use in Gcom's T1/E1 line 595335640Shselasky * monitoring equipment. 596335640Shselasky */ 597335640Shselasky#define DLT_GCOM_T1E1 172 598335640Shselasky#define DLT_GCOM_SERIAL 173 599335640Shselasky 600335640Shselasky/* 601335640Shselasky * Juniper-private data link type, as per request from 602335640Shselasky * Hannes Gredler <hannes@juniper.net>. The DLT_ is used 603335640Shselasky * for internal communication to Physical Interface Cards (PIC) 604335640Shselasky */ 605335640Shselasky#define DLT_JUNIPER_PIC_PEER 174 606335640Shselasky 607335640Shselasky/* 608335640Shselasky * Link types requested by Gregor Maier <gregor@endace.com> of Endace 609335640Shselasky * Measurement Systems. They add an ERF header (see 610335640Shselasky * http://www.endace.com/support/EndaceRecordFormat.pdf) in front of 611335640Shselasky * the link-layer header. 612335640Shselasky */ 613335640Shselasky#define DLT_ERF_ETH 175 /* Ethernet */ 614335640Shselasky#define DLT_ERF_POS 176 /* Packet-over-SONET */ 615335640Shselasky 616335640Shselasky/* 617335640Shselasky * Requested by Daniele Orlandi <daniele@orlandi.com> for raw LAPD 618335640Shselasky * for vISDN (http://www.orlandi.com/visdn/). Its link-layer header 619335640Shselasky * includes additional information before the LAPD header, so it's 620335640Shselasky * not necessarily a generic LAPD header. 621335640Shselasky */ 622335640Shselasky#define DLT_LINUX_LAPD 177 623335640Shselasky 624335640Shselasky/* 625335640Shselasky * Juniper-private data link type, as per request from 626335640Shselasky * Hannes Gredler <hannes@juniper.net>. 627335640Shselasky * The DLT_ are used for prepending meta-information 628335640Shselasky * like interface index, interface name 629335640Shselasky * before standard Ethernet, PPP, Frelay & C-HDLC Frames 630335640Shselasky */ 631335640Shselasky#define DLT_JUNIPER_ETHER 178 632335640Shselasky#define DLT_JUNIPER_PPP 179 633335640Shselasky#define DLT_JUNIPER_FRELAY 180 634335640Shselasky#define DLT_JUNIPER_CHDLC 181 635335640Shselasky 636335640Shselasky/* 637335640Shselasky * Multi Link Frame Relay (FRF.16) 638335640Shselasky */ 639335640Shselasky#define DLT_MFR 182 640335640Shselasky 641335640Shselasky/* 642335640Shselasky * Juniper-private data link type, as per request from 643335640Shselasky * Hannes Gredler <hannes@juniper.net>. 644335640Shselasky * The DLT_ is used for internal communication with a 645335640Shselasky * voice Adapter Card (PIC) 646335640Shselasky */ 647335640Shselasky#define DLT_JUNIPER_VP 183 648335640Shselasky 649335640Shselasky/* 650335640Shselasky * Arinc 429 frames. 651335640Shselasky * DLT_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>. 652335640Shselasky * Every frame contains a 32bit A429 label. 653335640Shselasky * More documentation on Arinc 429 can be found at 654335640Shselasky * http://www.condoreng.com/support/downloads/tutorials/ARINCTutorial.pdf 655335640Shselasky */ 656335640Shselasky#define DLT_A429 184 657335640Shselasky 658335640Shselasky/* 659335640Shselasky * Arinc 653 Interpartition Communication messages. 660335640Shselasky * DLT_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>. 661335640Shselasky * Please refer to the A653-1 standard for more information. 662335640Shselasky */ 663335640Shselasky#define DLT_A653_ICM 185 664335640Shselasky 665335640Shselasky/* 666335640Shselasky * This used to be "USB packets, beginning with a USB setup header; 667335640Shselasky * requested by Paolo Abeni <paolo.abeni@email.it>." 668335640Shselasky * 669335640Shselasky * However, that header didn't work all that well - it left out some 670335640Shselasky * useful information - and was abandoned in favor of the DLT_USB_LINUX 671335640Shselasky * header. 672335640Shselasky * 673335640Shselasky * This is now used by FreeBSD for its BPF taps for USB; that has its 674335640Shselasky * own headers. So it is written, so it is done. 675335640Shselasky * 676335640Shselasky * For source-code compatibility, we also define DLT_USB to have this 677335640Shselasky * value. We do it numerically so that, if code that includes this 678335640Shselasky * file (directly or indirectly) also includes an OS header that also 679335640Shselasky * defines DLT_USB as 186, we don't get a redefinition warning. 680335640Shselasky * (NetBSD 7 does that.) 681335640Shselasky */ 682335640Shselasky#define DLT_USB_FREEBSD 186 683335640Shselasky#define DLT_USB 186 684335640Shselasky 685335640Shselasky/* 686335640Shselasky * Bluetooth HCI UART transport layer (part H:4); requested by 687335640Shselasky * Paolo Abeni. 688335640Shselasky */ 689335640Shselasky#define DLT_BLUETOOTH_HCI_H4 187 690335640Shselasky 691335640Shselasky/* 692335640Shselasky * IEEE 802.16 MAC Common Part Sublayer; requested by Maria Cruz 693335640Shselasky * <cruz_petagay@bah.com>. 694335640Shselasky */ 695335640Shselasky#define DLT_IEEE802_16_MAC_CPS 188 696335640Shselasky 697335640Shselasky/* 698335640Shselasky * USB packets, beginning with a Linux USB header; requested by 699335640Shselasky * Paolo Abeni <paolo.abeni@email.it>. 700335640Shselasky */ 701335640Shselasky#define DLT_USB_LINUX 189 702335640Shselasky 703335640Shselasky/* 704335640Shselasky * Controller Area Network (CAN) v. 2.0B packets. 705335640Shselasky * DLT_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>. 706335640Shselasky * Used to dump CAN packets coming from a CAN Vector board. 707335640Shselasky * More documentation on the CAN v2.0B frames can be found at 708335640Shselasky * http://www.can-cia.org/downloads/?269 709335640Shselasky */ 710335640Shselasky#define DLT_CAN20B 190 711335640Shselasky 712335640Shselasky/* 713335640Shselasky * IEEE 802.15.4, with address fields padded, as is done by Linux 714335640Shselasky * drivers; requested by Juergen Schimmer. 715335640Shselasky */ 716335640Shselasky#define DLT_IEEE802_15_4_LINUX 191 717335640Shselasky 718335640Shselasky/* 719335640Shselasky * Per Packet Information encapsulated packets. 720335640Shselasky * DLT_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>. 721335640Shselasky */ 722335640Shselasky#define DLT_PPI 192 723335640Shselasky 724335640Shselasky/* 725335640Shselasky * Header for 802.16 MAC Common Part Sublayer plus a radiotap radio header; 726335640Shselasky * requested by Charles Clancy. 727335640Shselasky */ 728335640Shselasky#define DLT_IEEE802_16_MAC_CPS_RADIO 193 729335640Shselasky 730335640Shselasky/* 731335640Shselasky * Juniper-private data link type, as per request from 732335640Shselasky * Hannes Gredler <hannes@juniper.net>. 733335640Shselasky * The DLT_ is used for internal communication with a 734335640Shselasky * integrated service module (ISM). 735335640Shselasky */ 736335640Shselasky#define DLT_JUNIPER_ISM 194 737335640Shselasky 738335640Shselasky/* 739335640Shselasky * IEEE 802.15.4, exactly as it appears in the spec (no padding, no 740335640Shselasky * nothing); requested by Mikko Saarnivala <mikko.saarnivala@sensinode.com>. 741335640Shselasky * For this one, we expect the FCS to be present at the end of the frame; 742335640Shselasky * if the frame has no FCS, DLT_IEEE802_15_4_NOFCS should be used. 743335640Shselasky * 744335640Shselasky * We keep the name DLT_IEEE802_15_4 as an alias for backwards 745335640Shselasky * compatibility, but, again, this should *only* be used for 802.15.4 746335640Shselasky * frames that include the FCS. 747335640Shselasky */ 748335640Shselasky#define DLT_IEEE802_15_4_WITHFCS 195 749335640Shselasky#define DLT_IEEE802_15_4 DLT_IEEE802_15_4_WITHFCS 750335640Shselasky 751335640Shselasky/* 752335640Shselasky * Various link-layer types, with a pseudo-header, for SITA 753335640Shselasky * (http://www.sita.aero/); requested by Fulko Hew (fulko.hew@gmail.com). 754335640Shselasky */ 755335640Shselasky#define DLT_SITA 196 756335640Shselasky 757335640Shselasky/* 758335640Shselasky * Various link-layer types, with a pseudo-header, for Endace DAG cards; 759335640Shselasky * encapsulates Endace ERF records. Requested by Stephen Donnelly 760335640Shselasky * <stephen@endace.com>. 761335640Shselasky */ 762335640Shselasky#define DLT_ERF 197 763335640Shselasky 764335640Shselasky/* 765335640Shselasky * Special header prepended to Ethernet packets when capturing from a 766335640Shselasky * u10 Networks board. Requested by Phil Mulholland 767335640Shselasky * <phil@u10networks.com>. 768335640Shselasky */ 769335640Shselasky#define DLT_RAIF1 198 770335640Shselasky 771335640Shselasky/* 772356341Scy * IPMB packet for IPMI, beginning with a 2-byte header, followed by 773356341Scy * the I2C slave address, followed by the netFn and LUN, etc.. 774356341Scy * Requested by Chanthy Toeung <chanthy.toeung@ca.kontron.com>. 775356341Scy * 776356341Scy * XXX - this used to be called DLT_IPMB, back when we got the 777356341Scy * impression from the email thread requesting it that the packet 778356341Scy * had no extra 2-byte header. We've renamed it; if anybody used 779356341Scy * DLT_IPMB and assumed no 2-byte header, this will cause the compile 780356341Scy * to fail, at which point we'll have to figure out what to do about 781356341Scy * the two header types using the same DLT_/LINKTYPE_ value. If that 782356341Scy * doesn't happen, we'll assume nobody used it and that the redefinition 783356341Scy * is safe. 784335640Shselasky */ 785356341Scy#define DLT_IPMB_KONTRON 199 786335640Shselasky 787335640Shselasky/* 788335640Shselasky * Juniper-private data link type, as per request from 789335640Shselasky * Hannes Gredler <hannes@juniper.net>. 790335640Shselasky * The DLT_ is used for capturing data on a secure tunnel interface. 791335640Shselasky */ 792335640Shselasky#define DLT_JUNIPER_ST 200 793335640Shselasky 794335640Shselasky/* 795335640Shselasky * Bluetooth HCI UART transport layer (part H:4), with pseudo-header 796335640Shselasky * that includes direction information; requested by Paolo Abeni. 797335640Shselasky */ 798335640Shselasky#define DLT_BLUETOOTH_HCI_H4_WITH_PHDR 201 799335640Shselasky 800335640Shselasky/* 801335640Shselasky * AX.25 packet with a 1-byte KISS header; see 802335640Shselasky * 803335640Shselasky * http://www.ax25.net/kiss.htm 804335640Shselasky * 805335640Shselasky * as per Richard Stearn <richard@rns-stearn.demon.co.uk>. 806335640Shselasky */ 807335640Shselasky#define DLT_AX25_KISS 202 808335640Shselasky 809335640Shselasky/* 810335640Shselasky * LAPD packets from an ISDN channel, starting with the address field, 811335640Shselasky * with no pseudo-header. 812335640Shselasky * Requested by Varuna De Silva <varunax@gmail.com>. 813335640Shselasky */ 814335640Shselasky#define DLT_LAPD 203 815335640Shselasky 816335640Shselasky/* 817356341Scy * PPP, with a one-byte direction pseudo-header prepended - zero means 818356341Scy * "received by this host", non-zero (any non-zero value) means "sent by 819356341Scy * this host" - as per Will Barker <w.barker@zen.co.uk>. 820335640Shselasky */ 821356341Scy#define DLT_PPP_WITH_DIR 204 /* Don't confuse with DLT_PPP_WITH_DIRECTION */ 822335640Shselasky 823335640Shselasky/* 824356341Scy * Cisco HDLC, with a one-byte direction pseudo-header prepended - zero 825356341Scy * means "received by this host", non-zero (any non-zero value) means 826356341Scy * "sent by this host" - as per Will Barker <w.barker@zen.co.uk>. 827356341Scy */ 828356341Scy#define DLT_C_HDLC_WITH_DIR 205 829356341Scy 830356341Scy/* 831356341Scy * Frame Relay, with a one-byte direction pseudo-header prepended - zero 832356341Scy * means "received by this host" (DCE -> DTE), non-zero (any non-zero 833356341Scy * value) means "sent by this host" (DTE -> DCE) - as per Will Barker 834356341Scy * <w.barker@zen.co.uk>. 835356341Scy */ 836356341Scy#define DLT_FRELAY_WITH_DIR 206 837356341Scy 838356341Scy/* 839356341Scy * LAPB, with a one-byte direction pseudo-header prepended - zero means 840356341Scy * "received by this host" (DCE -> DTE), non-zero (any non-zero value) 841356341Scy * means "sent by this host" (DTE -> DCE)- as per Will Barker 842356341Scy * <w.barker@zen.co.uk>. 843356341Scy */ 844356341Scy#define DLT_LAPB_WITH_DIR 207 845356341Scy 846356341Scy/* 847335640Shselasky * 208 is reserved for an as-yet-unspecified proprietary link-layer 848335640Shselasky * type, as requested by Will Barker. 849335640Shselasky */ 850335640Shselasky 851335640Shselasky/* 852335640Shselasky * IPMB with a Linux-specific pseudo-header; as requested by Alexey Neyman 853335640Shselasky * <avn@pigeonpoint.com>. 854335640Shselasky */ 855335640Shselasky#define DLT_IPMB_LINUX 209 856335640Shselasky 857335640Shselasky/* 858335640Shselasky * FlexRay automotive bus - http://www.flexray.com/ - as requested 859335640Shselasky * by Hannes Kaelber <hannes.kaelber@x2e.de>. 860335640Shselasky */ 861335640Shselasky#define DLT_FLEXRAY 210 862335640Shselasky 863335640Shselasky/* 864335640Shselasky * Media Oriented Systems Transport (MOST) bus for multimedia 865335640Shselasky * transport - http://www.mostcooperation.com/ - as requested 866335640Shselasky * by Hannes Kaelber <hannes.kaelber@x2e.de>. 867335640Shselasky */ 868335640Shselasky#define DLT_MOST 211 869335640Shselasky 870335640Shselasky/* 871335640Shselasky * Local Interconnect Network (LIN) bus for vehicle networks - 872335640Shselasky * http://www.lin-subbus.org/ - as requested by Hannes Kaelber 873335640Shselasky * <hannes.kaelber@x2e.de>. 874335640Shselasky */ 875335640Shselasky#define DLT_LIN 212 876335640Shselasky 877335640Shselasky/* 878335640Shselasky * X2E-private data link type used for serial line capture, 879335640Shselasky * as requested by Hannes Kaelber <hannes.kaelber@x2e.de>. 880335640Shselasky */ 881335640Shselasky#define DLT_X2E_SERIAL 213 882335640Shselasky 883335640Shselasky/* 884335640Shselasky * X2E-private data link type used for the Xoraya data logger 885335640Shselasky * family, as requested by Hannes Kaelber <hannes.kaelber@x2e.de>. 886335640Shselasky */ 887335640Shselasky#define DLT_X2E_XORAYA 214 888335640Shselasky 889335640Shselasky/* 890335640Shselasky * IEEE 802.15.4, exactly as it appears in the spec (no padding, no 891335640Shselasky * nothing), but with the PHY-level data for non-ASK PHYs (4 octets 892335640Shselasky * of 0 as preamble, one octet of SFD, one octet of frame length+ 893335640Shselasky * reserved bit, and then the MAC-layer data, starting with the 894335640Shselasky * frame control field). 895335640Shselasky * 896335640Shselasky * Requested by Max Filippov <jcmvbkbc@gmail.com>. 897335640Shselasky */ 898335640Shselasky#define DLT_IEEE802_15_4_NONASK_PHY 215 899335640Shselasky 900335640Shselasky/* 901335640Shselasky * David Gibson <david@gibson.dropbear.id.au> requested this for 902335640Shselasky * captures from the Linux kernel /dev/input/eventN devices. This 903335640Shselasky * is used to communicate keystrokes and mouse movements from the 904335640Shselasky * Linux kernel to display systems, such as Xorg. 905335640Shselasky */ 906335640Shselasky#define DLT_LINUX_EVDEV 216 907335640Shselasky 908335640Shselasky/* 909335640Shselasky * GSM Um and Abis interfaces, preceded by a "gsmtap" header. 910335640Shselasky * 911335640Shselasky * Requested by Harald Welte <laforge@gnumonks.org>. 912335640Shselasky */ 913335640Shselasky#define DLT_GSMTAP_UM 217 914335640Shselasky#define DLT_GSMTAP_ABIS 218 915335640Shselasky 916335640Shselasky/* 917335640Shselasky * MPLS, with an MPLS label as the link-layer header. 918335640Shselasky * Requested by Michele Marchetto <michele@openbsd.org> on behalf 919335640Shselasky * of OpenBSD. 920335640Shselasky */ 921335640Shselasky#define DLT_MPLS 219 922335640Shselasky 923335640Shselasky/* 924335640Shselasky * USB packets, beginning with a Linux USB header, with the USB header 925335640Shselasky * padded to 64 bytes; required for memory-mapped access. 926335640Shselasky */ 927335640Shselasky#define DLT_USB_LINUX_MMAPPED 220 928335640Shselasky 929335640Shselasky/* 930335640Shselasky * DECT packets, with a pseudo-header; requested by 931335640Shselasky * Matthias Wenzel <tcpdump@mazzoo.de>. 932335640Shselasky */ 933335640Shselasky#define DLT_DECT 221 934335640Shselasky 935335640Shselasky/* 936335640Shselasky * From: "Lidwa, Eric (GSFC-582.0)[SGT INC]" <eric.lidwa-1@nasa.gov> 937335640Shselasky * Date: Mon, 11 May 2009 11:18:30 -0500 938335640Shselasky * 939335640Shselasky * DLT_AOS. We need it for AOS Space Data Link Protocol. 940335640Shselasky * I have already written dissectors for but need an OK from 941335640Shselasky * legal before I can submit a patch. 942335640Shselasky * 943335640Shselasky */ 944335640Shselasky#define DLT_AOS 222 945335640Shselasky 946335640Shselasky/* 947335640Shselasky * Wireless HART (Highway Addressable Remote Transducer) 948335640Shselasky * From the HART Communication Foundation 949335640Shselasky * IES/PAS 62591 950335640Shselasky * 951335640Shselasky * Requested by Sam Roberts <vieuxtech@gmail.com>. 952335640Shselasky */ 953335640Shselasky#define DLT_WIHART 223 954335640Shselasky 955335640Shselasky/* 956335640Shselasky * Fibre Channel FC-2 frames, beginning with a Frame_Header. 957335640Shselasky * Requested by Kahou Lei <kahou82@gmail.com>. 958335640Shselasky */ 959335640Shselasky#define DLT_FC_2 224 960335640Shselasky 961335640Shselasky/* 962335640Shselasky * Fibre Channel FC-2 frames, beginning with an encoding of the 963335640Shselasky * SOF, and ending with an encoding of the EOF. 964335640Shselasky * 965335640Shselasky * The encodings represent the frame delimiters as 4-byte sequences 966335640Shselasky * representing the corresponding ordered sets, with K28.5 967335640Shselasky * represented as 0xBC, and the D symbols as the corresponding 968335640Shselasky * byte values; for example, SOFi2, which is K28.5 - D21.5 - D1.2 - D21.2, 969335640Shselasky * is represented as 0xBC 0xB5 0x55 0x55. 970335640Shselasky * 971335640Shselasky * Requested by Kahou Lei <kahou82@gmail.com>. 972335640Shselasky */ 973335640Shselasky#define DLT_FC_2_WITH_FRAME_DELIMS 225 974335640Shselasky 975335640Shselasky/* 976335640Shselasky * Solaris ipnet pseudo-header; requested by Darren Reed <Darren.Reed@Sun.COM>. 977335640Shselasky * 978335640Shselasky * The pseudo-header starts with a one-byte version number; for version 2, 979335640Shselasky * the pseudo-header is: 980335640Shselasky * 981335640Shselasky * struct dl_ipnetinfo { 982335640Shselasky * uint8_t dli_version; 983335640Shselasky * uint8_t dli_family; 984335640Shselasky * uint16_t dli_htype; 985335640Shselasky * uint32_t dli_pktlen; 986335640Shselasky * uint32_t dli_ifindex; 987335640Shselasky * uint32_t dli_grifindex; 988335640Shselasky * uint32_t dli_zsrc; 989335640Shselasky * uint32_t dli_zdst; 990335640Shselasky * }; 991335640Shselasky * 992335640Shselasky * dli_version is 2 for the current version of the pseudo-header. 993335640Shselasky * 994335640Shselasky * dli_family is a Solaris address family value, so it's 2 for IPv4 995335640Shselasky * and 26 for IPv6. 996335640Shselasky * 997335640Shselasky * dli_htype is a "hook type" - 0 for incoming packets, 1 for outgoing 998335640Shselasky * packets, and 2 for packets arriving from another zone on the same 999335640Shselasky * machine. 1000335640Shselasky * 1001335640Shselasky * dli_pktlen is the length of the packet data following the pseudo-header 1002335640Shselasky * (so the captured length minus dli_pktlen is the length of the 1003335640Shselasky * pseudo-header, assuming the entire pseudo-header was captured). 1004335640Shselasky * 1005335640Shselasky * dli_ifindex is the interface index of the interface on which the 1006335640Shselasky * packet arrived. 1007335640Shselasky * 1008335640Shselasky * dli_grifindex is the group interface index number (for IPMP interfaces). 1009335640Shselasky * 1010335640Shselasky * dli_zsrc is the zone identifier for the source of the packet. 1011335640Shselasky * 1012335640Shselasky * dli_zdst is the zone identifier for the destination of the packet. 1013335640Shselasky * 1014335640Shselasky * A zone number of 0 is the global zone; a zone number of 0xffffffff 1015335640Shselasky * means that the packet arrived from another host on the network, not 1016335640Shselasky * from another zone on the same machine. 1017335640Shselasky * 1018335640Shselasky * An IPv4 or IPv6 datagram follows the pseudo-header; dli_family indicates 1019335640Shselasky * which of those it is. 1020335640Shselasky */ 1021335640Shselasky#define DLT_IPNET 226 1022335640Shselasky 1023335640Shselasky/* 1024335640Shselasky * CAN (Controller Area Network) frames, with a pseudo-header as supplied 1025335640Shselasky * by Linux SocketCAN, and with multi-byte numerical fields in that header 1026335640Shselasky * in big-endian byte order. 1027335640Shselasky * 1028335640Shselasky * See Documentation/networking/can.txt in the Linux source. 1029335640Shselasky * 1030335640Shselasky * Requested by Felix Obenhuber <felix@obenhuber.de>. 1031335640Shselasky */ 1032335640Shselasky#define DLT_CAN_SOCKETCAN 227 1033335640Shselasky 1034335640Shselasky/* 1035335640Shselasky * Raw IPv4/IPv6; different from DLT_RAW in that the DLT_ value specifies 1036335640Shselasky * whether it's v4 or v6. Requested by Darren Reed <Darren.Reed@Sun.COM>. 1037335640Shselasky */ 1038335640Shselasky#define DLT_IPV4 228 1039335640Shselasky#define DLT_IPV6 229 1040335640Shselasky 1041335640Shselasky/* 1042335640Shselasky * IEEE 802.15.4, exactly as it appears in the spec (no padding, no 1043335640Shselasky * nothing), and with no FCS at the end of the frame; requested by 1044335640Shselasky * Jon Smirl <jonsmirl@gmail.com>. 1045335640Shselasky */ 1046335640Shselasky#define DLT_IEEE802_15_4_NOFCS 230 1047335640Shselasky 1048335640Shselasky/* 1049335640Shselasky * Raw D-Bus: 1050335640Shselasky * 1051335640Shselasky * http://www.freedesktop.org/wiki/Software/dbus 1052335640Shselasky * 1053335640Shselasky * messages: 1054335640Shselasky * 1055335640Shselasky * http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages 1056335640Shselasky * 1057335640Shselasky * starting with the endianness flag, followed by the message type, etc., 1058335640Shselasky * but without the authentication handshake before the message sequence: 1059335640Shselasky * 1060335640Shselasky * http://dbus.freedesktop.org/doc/dbus-specification.html#auth-protocol 1061335640Shselasky * 1062335640Shselasky * Requested by Martin Vidner <martin@vidner.net>. 1063335640Shselasky */ 1064335640Shselasky#define DLT_DBUS 231 1065335640Shselasky 1066335640Shselasky/* 1067335640Shselasky * Juniper-private data link type, as per request from 1068335640Shselasky * Hannes Gredler <hannes@juniper.net>. 1069335640Shselasky */ 1070335640Shselasky#define DLT_JUNIPER_VS 232 1071335640Shselasky#define DLT_JUNIPER_SRX_E2E 233 1072335640Shselasky#define DLT_JUNIPER_FIBRECHANNEL 234 1073335640Shselasky 1074335640Shselasky/* 1075335640Shselasky * DVB-CI (DVB Common Interface for communication between a PC Card 1076335640Shselasky * module and a DVB receiver). See 1077335640Shselasky * 1078335640Shselasky * http://www.kaiser.cx/pcap-dvbci.html 1079335640Shselasky * 1080335640Shselasky * for the specification. 1081335640Shselasky * 1082335640Shselasky * Requested by Martin Kaiser <martin@kaiser.cx>. 1083335640Shselasky */ 1084335640Shselasky#define DLT_DVB_CI 235 1085335640Shselasky 1086335640Shselasky/* 1087335640Shselasky * Variant of 3GPP TS 27.010 multiplexing protocol (similar to, but 1088335640Shselasky * *not* the same as, 27.010). Requested by Hans-Christoph Schemmel 1089335640Shselasky * <hans-christoph.schemmel@cinterion.com>. 1090335640Shselasky */ 1091335640Shselasky#define DLT_MUX27010 236 1092335640Shselasky 1093335640Shselasky/* 1094335640Shselasky * STANAG 5066 D_PDUs. Requested by M. Baris Demiray 1095335640Shselasky * <barisdemiray@gmail.com>. 1096335640Shselasky */ 1097335640Shselasky#define DLT_STANAG_5066_D_PDU 237 1098335640Shselasky 1099335640Shselasky/* 1100335640Shselasky * Juniper-private data link type, as per request from 1101335640Shselasky * Hannes Gredler <hannes@juniper.net>. 1102335640Shselasky */ 1103335640Shselasky#define DLT_JUNIPER_ATM_CEMIC 238 1104335640Shselasky 1105335640Shselasky/* 1106335640Shselasky * NetFilter LOG messages 1107335640Shselasky * (payload of netlink NFNL_SUBSYS_ULOG/NFULNL_MSG_PACKET packets) 1108335640Shselasky * 1109335640Shselasky * Requested by Jakub Zawadzki <darkjames-ws@darkjames.pl> 1110335640Shselasky */ 1111335640Shselasky#define DLT_NFLOG 239 1112335640Shselasky 1113335640Shselasky/* 1114335640Shselasky * Hilscher Gesellschaft fuer Systemautomation mbH link-layer type 1115335640Shselasky * for Ethernet packets with a 4-byte pseudo-header and always 1116335640Shselasky * with the payload including the FCS, as supplied by their 1117335640Shselasky * netANALYZER hardware and software. 1118335640Shselasky * 1119335640Shselasky * Requested by Holger P. Frommer <HPfrommer@hilscher.com> 1120335640Shselasky */ 1121335640Shselasky#define DLT_NETANALYZER 240 1122335640Shselasky 1123335640Shselasky/* 1124335640Shselasky * Hilscher Gesellschaft fuer Systemautomation mbH link-layer type 1125335640Shselasky * for Ethernet packets with a 4-byte pseudo-header and FCS and 1126335640Shselasky * with the Ethernet header preceded by 7 bytes of preamble and 1127335640Shselasky * 1 byte of SFD, as supplied by their netANALYZER hardware and 1128335640Shselasky * software. 1129335640Shselasky * 1130335640Shselasky * Requested by Holger P. Frommer <HPfrommer@hilscher.com> 1131335640Shselasky */ 1132335640Shselasky#define DLT_NETANALYZER_TRANSPARENT 241 1133335640Shselasky 1134335640Shselasky/* 1135335640Shselasky * IP-over-InfiniBand, as specified by RFC 4391. 1136335640Shselasky * 1137335640Shselasky * Requested by Petr Sumbera <petr.sumbera@oracle.com>. 1138335640Shselasky */ 1139335640Shselasky#define DLT_IPOIB 242 1140335640Shselasky 1141335640Shselasky/* 1142335640Shselasky * MPEG-2 transport stream (ISO 13818-1/ITU-T H.222.0). 1143335640Shselasky * 1144335640Shselasky * Requested by Guy Martin <gmsoft@tuxicoman.be>. 1145335640Shselasky */ 1146335640Shselasky#define DLT_MPEG_2_TS 243 1147335640Shselasky 1148335640Shselasky/* 1149335640Shselasky * ng4T GmbH's UMTS Iub/Iur-over-ATM and Iub/Iur-over-IP format as 1150335640Shselasky * used by their ng40 protocol tester. 1151335640Shselasky * 1152335640Shselasky * Requested by Jens Grimmer <jens.grimmer@ng4t.com>. 1153335640Shselasky */ 1154335640Shselasky#define DLT_NG40 244 1155335640Shselasky 1156335640Shselasky/* 1157335640Shselasky * Pseudo-header giving adapter number and flags, followed by an NFC 1158335640Shselasky * (Near-Field Communications) Logical Link Control Protocol (LLCP) PDU, 1159335640Shselasky * as specified by NFC Forum Logical Link Control Protocol Technical 1160335640Shselasky * Specification LLCP 1.1. 1161335640Shselasky * 1162335640Shselasky * Requested by Mike Wakerly <mikey@google.com>. 1163335640Shselasky */ 1164335640Shselasky#define DLT_NFC_LLCP 245 1165335640Shselasky 1166335640Shselasky/* 1167335640Shselasky * 246 is used as LINKTYPE_PFSYNC; do not use it for any other purpose. 1168335640Shselasky * 1169335640Shselasky * DLT_PFSYNC has different values on different platforms, and all of 1170335640Shselasky * them collide with something used elsewhere. On platforms that 1171335640Shselasky * don't already define it, define it as 246. 1172335640Shselasky */ 1173335640Shselasky#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__APPLE__) 1174335640Shselasky#define DLT_PFSYNC 246 1175335640Shselasky#endif 1176335640Shselasky 1177335640Shselasky/* 1178335640Shselasky * Raw InfiniBand packets, starting with the Local Routing Header. 1179335640Shselasky * 1180335640Shselasky * Requested by Oren Kladnitsky <orenk@mellanox.com>. 1181335640Shselasky */ 1182335640Shselasky#define DLT_INFINIBAND 247 1183335640Shselasky 1184335640Shselasky/* 1185335640Shselasky * SCTP, with no lower-level protocols (i.e., no IPv4 or IPv6). 1186335640Shselasky * 1187335640Shselasky * Requested by Michael Tuexen <Michael.Tuexen@lurchi.franken.de>. 1188335640Shselasky */ 1189335640Shselasky#define DLT_SCTP 248 1190335640Shselasky 1191335640Shselasky/* 1192335640Shselasky * USB packets, beginning with a USBPcap header. 1193335640Shselasky * 1194335640Shselasky * Requested by Tomasz Mon <desowin@gmail.com> 1195335640Shselasky */ 1196335640Shselasky#define DLT_USBPCAP 249 1197335640Shselasky 1198335640Shselasky/* 1199335640Shselasky * Schweitzer Engineering Laboratories "RTAC" product serial-line 1200335640Shselasky * packets. 1201335640Shselasky * 1202335640Shselasky * Requested by Chris Bontje <chris_bontje@selinc.com>. 1203335640Shselasky */ 1204335640Shselasky#define DLT_RTAC_SERIAL 250 1205335640Shselasky 1206335640Shselasky/* 1207335640Shselasky * Bluetooth Low Energy air interface link-layer packets. 1208335640Shselasky * 1209335640Shselasky * Requested by Mike Kershaw <dragorn@kismetwireless.net>. 1210335640Shselasky */ 1211335640Shselasky#define DLT_BLUETOOTH_LE_LL 251 1212335640Shselasky 1213335640Shselasky/* 1214335640Shselasky * DLT type for upper-protocol layer PDU saves from wireshark. 1215335640Shselasky * 1216335640Shselasky * the actual contents are determined by two TAGs stored with each 1217335640Shselasky * packet: 1218335640Shselasky * EXP_PDU_TAG_LINKTYPE the link type (LINKTYPE_ value) of the 1219335640Shselasky * original packet. 1220335640Shselasky * 1221335640Shselasky * EXP_PDU_TAG_PROTO_NAME the name of the wireshark dissector 1222335640Shselasky * that can make sense of the data stored. 1223335640Shselasky */ 1224335640Shselasky#define DLT_WIRESHARK_UPPER_PDU 252 1225335640Shselasky 1226335640Shselasky/* 1227335640Shselasky * DLT type for the netlink protocol (nlmon devices). 1228335640Shselasky */ 1229335640Shselasky#define DLT_NETLINK 253 1230335640Shselasky 1231335640Shselasky/* 1232335640Shselasky * Bluetooth Linux Monitor headers for the BlueZ stack. 1233335640Shselasky */ 1234335640Shselasky#define DLT_BLUETOOTH_LINUX_MONITOR 254 1235335640Shselasky 1236335640Shselasky/* 1237335640Shselasky * Bluetooth Basic Rate/Enhanced Data Rate baseband packets, as 1238335640Shselasky * captured by Ubertooth. 1239335640Shselasky */ 1240335640Shselasky#define DLT_BLUETOOTH_BREDR_BB 255 1241335640Shselasky 1242335640Shselasky/* 1243335640Shselasky * Bluetooth Low Energy link layer packets, as captured by Ubertooth. 1244335640Shselasky */ 1245335640Shselasky#define DLT_BLUETOOTH_LE_LL_WITH_PHDR 256 1246335640Shselasky 1247335640Shselasky/* 1248335640Shselasky * PROFIBUS data link layer. 1249335640Shselasky */ 1250335640Shselasky#define DLT_PROFIBUS_DL 257 1251335640Shselasky 1252335640Shselasky/* 1253335640Shselasky * Apple's DLT_PKTAP headers. 1254335640Shselasky * 1255335640Shselasky * Sadly, the folks at Apple either had no clue that the DLT_USERn values 1256335640Shselasky * are for internal use within an organization and partners only, and 1257335640Shselasky * didn't know that the right way to get a link-layer header type is to 1258335640Shselasky * ask tcpdump.org for one, or knew and didn't care, so they just 1259335640Shselasky * used DLT_USER2, which causes problems for everything except for 1260335640Shselasky * their version of tcpdump. 1261335640Shselasky * 1262335640Shselasky * So I'll just give them one; hopefully this will show up in a 1263335640Shselasky * libpcap release in time for them to get this into 10.10 Big Sur 1264335640Shselasky * or whatever Mavericks' successor is called. LINKTYPE_PKTAP 1265335640Shselasky * will be 258 *even on macOS*; that is *intentional*, so that 1266335640Shselasky * PKTAP files look the same on *all* OSes (different OSes can have 1267335640Shselasky * different numerical values for a given DLT_, but *MUST NOT* have 1268335640Shselasky * different values for what goes in a file, as files can be moved 1269335640Shselasky * between OSes!). 1270335640Shselasky * 1271335640Shselasky * When capturing, on a system with a Darwin-based OS, on a device 1272335640Shselasky * that returns 149 (DLT_USER2 and Apple's DLT_PKTAP) with this 1273335640Shselasky * version of libpcap, the DLT_ value for the pcap_t will be DLT_PKTAP, 1274335640Shselasky * and that will continue to be DLT_USER2 on Darwin-based OSes. That way, 1275335640Shselasky * binary compatibility with Mavericks is preserved for programs using 1276335640Shselasky * this version of libpcap. This does mean that if you were using 1277335640Shselasky * DLT_USER2 for some capture device on macOS, you can't do so with 1278335640Shselasky * this version of libpcap, just as you can't with Apple's libpcap - 1279335640Shselasky * on macOS, they define DLT_PKTAP to be DLT_USER2, so programs won't 1280335640Shselasky * be able to distinguish between PKTAP and whatever you were using 1281335640Shselasky * DLT_USER2 for. 1282335640Shselasky * 1283335640Shselasky * If the program saves the capture to a file using this version of 1284335640Shselasky * libpcap's pcap_dump code, the LINKTYPE_ value in the file will be 1285335640Shselasky * LINKTYPE_PKTAP, which will be 258, even on Darwin-based OSes. 1286335640Shselasky * That way, the file will *not* be a DLT_USER2 file. That means 1287335640Shselasky * that the latest version of tcpdump, when built with this version 1288335640Shselasky * of libpcap, and sufficiently recent versions of Wireshark will 1289335640Shselasky * be able to read those files and interpret them correctly; however, 1290335640Shselasky * Apple's version of tcpdump in OS X 10.9 won't be able to handle 1291335640Shselasky * them. (Hopefully, Apple will pick up this version of libpcap, 1292335640Shselasky * and the corresponding version of tcpdump, so that tcpdump will 1293335640Shselasky * be able to handle the old LINKTYPE_USER2 captures *and* the new 1294335640Shselasky * LINKTYPE_PKTAP captures.) 1295335640Shselasky */ 1296335640Shselasky#ifdef __APPLE__ 1297335640Shselasky#define DLT_PKTAP DLT_USER2 1298335640Shselasky#else 1299335640Shselasky#define DLT_PKTAP 258 1300335640Shselasky#endif 1301335640Shselasky 1302335640Shselasky/* 1303335640Shselasky * Ethernet packets preceded by a header giving the last 6 octets 1304335640Shselasky * of the preamble specified by 802.3-2012 Clause 65, section 1305335640Shselasky * 65.1.3.2 "Transmit". 1306335640Shselasky */ 1307335640Shselasky#define DLT_EPON 259 1308335640Shselasky 1309335640Shselasky/* 1310335640Shselasky * IPMI trace packets, as specified by Table 3-20 "Trace Data Block Format" 1311335640Shselasky * in the PICMG HPM.2 specification. 1312335640Shselasky */ 1313335640Shselasky#define DLT_IPMI_HPM_2 260 1314335640Shselasky 1315335640Shselasky/* 1316335640Shselasky * per Joshua Wright <jwright@hasborg.com>, formats for Zwave captures. 1317335640Shselasky */ 1318335640Shselasky#define DLT_ZWAVE_R1_R2 261 1319335640Shselasky#define DLT_ZWAVE_R3 262 1320335640Shselasky 1321335640Shselasky/* 1322335640Shselasky * per Steve Karg <skarg@users.sourceforge.net>, formats for Wattstopper 1323335640Shselasky * Digital Lighting Management room bus serial protocol captures. 1324335640Shselasky */ 1325335640Shselasky#define DLT_WATTSTOPPER_DLM 263 1326335640Shselasky 1327335640Shselasky/* 1328335640Shselasky * ISO 14443 contactless smart card messages. 1329335640Shselasky */ 1330335640Shselasky#define DLT_ISO_14443 264 1331335640Shselasky 1332335640Shselasky/* 1333335640Shselasky * Radio data system (RDS) groups. IEC 62106. 1334335640Shselasky * Per Jonathan Brucker <jonathan.brucke@gmail.com>. 1335335640Shselasky */ 1336335640Shselasky#define DLT_RDS 265 1337335640Shselasky 1338335640Shselasky/* 1339335640Shselasky * USB packets, beginning with a Darwin (macOS, etc.) header. 1340335640Shselasky */ 1341335640Shselasky#define DLT_USB_DARWIN 266 1342335640Shselasky 1343335640Shselasky/* 1344335640Shselasky * OpenBSD DLT_OPENFLOW. 1345335640Shselasky */ 1346335640Shselasky#define DLT_OPENFLOW 267 1347335640Shselasky 1348335640Shselasky/* 1349335640Shselasky * SDLC frames containing SNA PDUs. 1350335640Shselasky */ 1351335640Shselasky#define DLT_SDLC 268 1352335640Shselasky 1353335640Shselasky/* 1354335640Shselasky * per "Selvig, Bjorn" <b.selvig@ti.com> used for 1355335640Shselasky * TI protocol sniffer. 1356335640Shselasky */ 1357335640Shselasky#define DLT_TI_LLN_SNIFFER 269 1358335640Shselasky 1359335640Shselasky/* 1360335640Shselasky * per: Erik de Jong <erikdejong at gmail.com> for 1361335640Shselasky * https://github.com/eriknl/LoRaTap/releases/tag/v0.1 1362335640Shselasky */ 1363335640Shselasky#define DLT_LORATAP 270 1364335640Shselasky 1365335640Shselasky/* 1366335640Shselasky * per: Stefanha at gmail.com for 1367335640Shselasky * http://lists.sandelman.ca/pipermail/tcpdump-workers/2017-May/000772.html 1368335640Shselasky * and: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/vsockmon.h 1369335640Shselasky * for: http://qemu-project.org/Features/VirtioVsock 1370335640Shselasky */ 1371335640Shselasky#define DLT_VSOCK 271 1372335640Shselasky 1373335640Shselasky/* 1374335640Shselasky * Nordic Semiconductor Bluetooth LE sniffer. 1375335640Shselasky */ 1376335640Shselasky#define DLT_NORDIC_BLE 272 1377335640Shselasky 1378335640Shselasky/* 1379335640Shselasky * Excentis DOCSIS 3.1 RF sniffer (XRA-31) 1380335640Shselasky * per: bruno.verstuyft at excentis.com 1381335640Shselasky * http://www.xra31.com/xra-header 1382335640Shselasky */ 1383335640Shselasky#define DLT_DOCSIS31_XRA31 273 1384335640Shselasky 1385335640Shselasky/* 1386335640Shselasky * mPackets, as specified by IEEE 802.3br Figure 99-4, starting 1387335640Shselasky * with the preamble and always ending with a CRC field. 1388335640Shselasky */ 1389335640Shselasky#define DLT_ETHERNET_MPACKET 274 1390335640Shselasky 1391335640Shselasky/* 1392335640Shselasky * DisplayPort AUX channel monitoring data as specified by VESA 1393335640Shselasky * DisplayPort(DP) Standard preceeded by a pseudo-header. 1394335640Shselasky * per dirk.eibach at gdsys.cc 1395335640Shselasky */ 1396335640Shselasky#define DLT_DISPLAYPORT_AUX 275 1397335640Shselasky 1398335640Shselasky/* 1399356341Scy * Linux cooked sockets v2. 1400356341Scy */ 1401356341Scy#define DLT_LINUX_SLL2 276 1402356341Scy 1403356341Scy/* 1404335640Shselasky * In case the code that includes this file (directly or indirectly) 1405335640Shselasky * has also included OS files that happen to define DLT_MATCHING_MAX, 1406335640Shselasky * with a different value (perhaps because that OS hasn't picked up 1407335640Shselasky * the latest version of our DLT definitions), we undefine the 1408335640Shselasky * previous value of DLT_MATCHING_MAX. 1409335640Shselasky */ 1410335640Shselasky#ifdef DLT_MATCHING_MAX 1411335640Shselasky#undef DLT_MATCHING_MAX 1412335640Shselasky#endif 1413356341Scy#define DLT_MATCHING_MAX 276 /* highest value in the "matching" range */ 1414335640Shselasky 1415335640Shselasky/* 1416335640Shselasky * DLT and savefile link type values are split into a class and 1417335640Shselasky * a member of that class. A class value of 0 indicates a regular 1418335640Shselasky * DLT_/LINKTYPE_ value. 1419335640Shselasky */ 1420335640Shselasky#define DLT_CLASS(x) ((x) & 0x03ff0000) 1421335640Shselasky 1422335640Shselasky/* 1423335640Shselasky * NetBSD-specific generic "raw" link type. The class value indicates 1424335640Shselasky * that this is the generic raw type, and the lower 16 bits are the 1425335640Shselasky * address family we're dealing with. Those values are NetBSD-specific; 1426335640Shselasky * do not assume that they correspond to AF_ values for your operating 1427335640Shselasky * system. 1428335640Shselasky */ 1429335640Shselasky#define DLT_CLASS_NETBSD_RAWAF 0x02240000 1430335640Shselasky#define DLT_NETBSD_RAWAF(af) (DLT_CLASS_NETBSD_RAWAF | (af)) 1431335640Shselasky#define DLT_NETBSD_RAWAF_AF(x) ((x) & 0x0000ffff) 1432335640Shselasky#define DLT_IS_NETBSD_RAWAF(x) (DLT_CLASS(x) == DLT_CLASS_NETBSD_RAWAF) 1433335640Shselasky 1434335640Shselasky#endif /* !defined(lib_pcap_dlt_h) */ 1435