1 /* $Id$ */ 2 /* 3 * Copyright (c) 2006-2010 Aaron Turner 4 * All rights reserved. 5 * 6 * This file is generated by scripts/dlt2name.pl which converts your pcap-bpf.h 7 * header file which comes with libpcap into a header file 8 * which translates DLT values to their string names as well as a list of all 9 * of the available DLT types. 10 * 11 * Hence DO NOT EDIT THIS FILE! 12 * If your DLT type is not listed here, edit the %known hash in 13 * scripts/dlt2name.pl 14 * 15 * This file contains data which was taken from libpcap's pcap-bpf.h. 16 * The copyright/license is included below: 17 */ 18 19 /*- 20 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 21 * The Regents of the University of California. All rights reserved. 22 * 23 * This code is derived from the Stanford/CMU enet packet filter, 24 * (net/enet.c) distributed as part of 4.3BSD, and code contributed 25 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence 26 * Berkeley Laboratory. 27 * 28 * Redistribution and use in source and binary forms, with or without 29 * modification, are permitted provided that the following conditions 30 * are met: 31 * 1. Redistributions of source code must retain the above copyright 32 * notice, this list of conditions and the following disclaimer. 33 * 2. Redistributions in binary form must reproduce the above copyright 34 * notice, this list of conditions and the following disclaimer in the 35 * documentation and/or other materials provided with the distribution. 36 * 3. All advertising materials mentioning features or use of this software 37 * must display the following acknowledgement: 38 * This product includes software developed by the University of 39 * California, Berkeley and its contributors. 40 * 4. Neither the name of the University nor the names of its contributors 41 * may be used to endorse or promote products derived from this software 42 * without specific prior written permission. 43 * 44 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 45 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 46 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 47 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 48 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 49 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 54 * SUCH DAMAGE. 55 * 56 * @(#)bpf.h 7.1 (Berkeley) 5/7/91 57 * 58 * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.34.2.6 2005/08/13 22:29:47 hannes Exp $ (LBL) 59 */ 60 61 62 /* include all the DLT types form pcap-bpf.h */ 63 64 extern const char *dlt2desc[]; 65 extern const char *dlt2name[]; 66 #define DLT2DESC_LEN 181 67 #define DLT2NAME_LEN 181 68 69 #ifndef DLT_NULL 70 #define DLT_NULL 0 71 #endif 72 73 #ifndef DLT_EN10MB 74 #define DLT_EN10MB 1 75 #endif 76 77 #ifndef DLT_EN3MB 78 #define DLT_EN3MB 2 79 #endif 80 81 #ifndef DLT_AX25 82 #define DLT_AX25 3 83 #endif 84 85 #ifndef DLT_PRONET 86 #define DLT_PRONET 4 87 #endif 88 89 #ifndef DLT_CHAOS 90 #define DLT_CHAOS 5 91 #endif 92 93 #ifndef DLT_IEEE802 94 #define DLT_IEEE802 6 95 #endif 96 97 #ifndef DLT_ARCNET 98 #define DLT_ARCNET 7 99 #endif 100 101 #ifndef DLT_SLIP 102 #define DLT_SLIP 8 103 #endif 104 105 #ifndef DLT_PPP 106 #define DLT_PPP 9 107 #endif 108 109 #ifndef DLT_FDDI 110 #define DLT_FDDI 10 111 #endif 112 113 #ifndef DLT_ATM_RFC1483 114 #define DLT_ATM_RFC1483 11 115 #endif 116 117 #ifndef DLT_RAW 118 #define DLT_RAW 12 119 #endif 120 121 #ifndef DLT_ENC 122 #define DLT_ENC 13 123 #endif 124 125 #ifndef DLT_PPP_BSDOS 126 #define DLT_PPP_BSDOS 14 127 #endif 128 129 #ifndef DLT_SLIP_BSDOS 130 #define DLT_SLIP_BSDOS 15 131 #endif 132 133 #ifndef DLT_PPP_BSDOS 134 #define DLT_PPP_BSDOS 16 135 #endif 136 137 #ifndef DLT_OLD_PFLOG 138 #define DLT_OLD_PFLOG 17 139 #endif 140 141 #ifndef DLT_PFSYNC 142 #define DLT_PFSYNC 18 143 #endif 144 145 #ifndef DLT_ATM_CLIP 146 #define DLT_ATM_CLIP 19 147 #endif 148 149 #ifndef DLT_REDBACK_SMARTEDGE 150 #define DLT_REDBACK_SMARTEDGE 32 151 #endif 152 153 #ifndef DLT_PPP_SERIAL 154 #define DLT_PPP_SERIAL 50 155 #endif 156 157 #ifndef DLT_PPP_ETHER 158 #define DLT_PPP_ETHER 51 159 #endif 160 161 #ifndef DLT_SYMANTEC_FIREWALL 162 #define DLT_SYMANTEC_FIREWALL 99 163 #endif 164 165 #ifndef DLT_C_HDLC 166 #define DLT_C_HDLC 104 167 #endif 168 169 #ifndef DLT_IEEE802_11 170 #define DLT_IEEE802_11 105 171 #endif 172 173 #ifndef DLT_FRELAY 174 #define DLT_FRELAY 107 175 #endif 176 177 #ifndef DLT_LOOP 178 #define DLT_LOOP 108 179 #endif 180 181 #ifndef DLT_ENC 182 #define DLT_ENC 109 183 #endif 184 185 #ifndef DLT_LINUX_SLL 186 #define DLT_LINUX_SLL 113 187 #endif 188 189 #ifndef DLT_LTALK 190 #define DLT_LTALK 114 191 #endif 192 193 #ifndef DLT_ECONET 194 #define DLT_ECONET 115 195 #endif 196 197 #ifndef DLT_IPFILTER 198 #define DLT_IPFILTER 116 199 #endif 200 201 #ifndef DLT_PFLOG 202 #define DLT_PFLOG 117 203 #endif 204 205 #ifndef DLT_CISCO_IOS 206 #define DLT_CISCO_IOS 118 207 #endif 208 209 #ifndef DLT_PRISM_HEADER 210 #define DLT_PRISM_HEADER 119 211 #endif 212 213 #ifndef DLT_AIRONET_HEADER 214 #define DLT_AIRONET_HEADER 120 215 #endif 216 217 #ifndef DLT_HHDLC 218 #define DLT_HHDLC 121 219 #endif 220 221 #ifndef DLT_IP_OVER_FC 222 #define DLT_IP_OVER_FC 122 223 #endif 224 225 #ifndef DLT_SUNATM 226 #define DLT_SUNATM 123 227 #endif 228 229 #ifndef DLT_RIO 230 #define DLT_RIO 124 231 #endif 232 233 #ifndef DLT_PCI_EXP 234 #define DLT_PCI_EXP 125 235 #endif 236 237 #ifndef DLT_AURORA 238 #define DLT_AURORA 126 239 #endif 240 241 #ifndef DLT_IEEE802_11_RADIO 242 #define DLT_IEEE802_11_RADIO 127 243 #endif 244 245 #ifndef DLT_TZSP 246 #define DLT_TZSP 128 247 #endif 248 249 #ifndef DLT_ARCNET_LINUX 250 #define DLT_ARCNET_LINUX 129 251 #endif 252 253 #ifndef DLT_JUNIPER_MLPPP 254 #define DLT_JUNIPER_MLPPP 130 255 #endif 256 257 #ifndef DLT_JUNIPER_MLFR 258 #define DLT_JUNIPER_MLFR 131 259 #endif 260 261 #ifndef DLT_JUNIPER_ES 262 #define DLT_JUNIPER_ES 132 263 #endif 264 265 #ifndef DLT_JUNIPER_GGSN 266 #define DLT_JUNIPER_GGSN 133 267 #endif 268 269 #ifndef DLT_JUNIPER_MFR 270 #define DLT_JUNIPER_MFR 134 271 #endif 272 273 #ifndef DLT_JUNIPER_ATM2 274 #define DLT_JUNIPER_ATM2 135 275 #endif 276 277 #ifndef DLT_JUNIPER_SERVICES 278 #define DLT_JUNIPER_SERVICES 136 279 #endif 280 281 #ifndef DLT_JUNIPER_ATM1 282 #define DLT_JUNIPER_ATM1 137 283 #endif 284 285 #ifndef DLT_APPLE_IP_OVER_IEEE1394 286 #define DLT_APPLE_IP_OVER_IEEE1394 138 287 #endif 288 289 #ifndef DLT_MTP2_WITH_PHDR 290 #define DLT_MTP2_WITH_PHDR 139 291 #endif 292 293 #ifndef DLT_MTP2 294 #define DLT_MTP2 140 295 #endif 296 297 #ifndef DLT_MTP3 298 #define DLT_MTP3 141 299 #endif 300 301 #ifndef DLT_SCCP 302 #define DLT_SCCP 142 303 #endif 304 305 #ifndef DLT_DOCSIS 306 #define DLT_DOCSIS 143 307 #endif 308 309 #ifndef DLT_LINUX_IRDA 310 #define DLT_LINUX_IRDA 144 311 #endif 312 313 #ifndef DLT_IBM_SP 314 #define DLT_IBM_SP 145 315 #endif 316 317 #ifndef DLT_IBM_SN 318 #define DLT_IBM_SN 146 319 #endif 320 321 #ifndef DLT_USER0 322 #define DLT_USER0 147 323 #endif 324 325 #ifndef DLT_USER1 326 #define DLT_USER1 148 327 #endif 328 329 #ifndef DLT_USER2 330 #define DLT_USER2 149 331 #endif 332 333 #ifndef DLT_USER3 334 #define DLT_USER3 150 335 #endif 336 337 #ifndef DLT_USER4 338 #define DLT_USER4 151 339 #endif 340 341 #ifndef DLT_USER5 342 #define DLT_USER5 152 343 #endif 344 345 #ifndef DLT_USER6 346 #define DLT_USER6 153 347 #endif 348 349 #ifndef DLT_USER7 350 #define DLT_USER7 154 351 #endif 352 353 #ifndef DLT_USER8 354 #define DLT_USER8 155 355 #endif 356 357 #ifndef DLT_USER9 358 #define DLT_USER9 156 359 #endif 360 361 #ifndef DLT_USER10 362 #define DLT_USER10 157 363 #endif 364 365 #ifndef DLT_USER11 366 #define DLT_USER11 158 367 #endif 368 369 #ifndef DLT_USER12 370 #define DLT_USER12 159 371 #endif 372 373 #ifndef DLT_USER13 374 #define DLT_USER13 160 375 #endif 376 377 #ifndef DLT_USER14 378 #define DLT_USER14 161 379 #endif 380 381 #ifndef DLT_USER15 382 #define DLT_USER15 162 383 #endif 384 385 #ifndef DLT_IEEE802_11_RADIO_AVS 386 #define DLT_IEEE802_11_RADIO_AVS 163 387 #endif 388 389 #ifndef DLT_JUNIPER_MONITOR 390 #define DLT_JUNIPER_MONITOR 164 391 #endif 392 393 #ifndef DLT_BACNET_MS_TP 394 #define DLT_BACNET_MS_TP 165 395 #endif 396 397 #ifndef DLT_PPP_PPPD 398 #define DLT_PPP_PPPD 166 399 #endif 400 401 #ifndef DLT_JUNIPER_PPPOE 402 #define DLT_JUNIPER_PPPOE 167 403 #endif 404 405 #ifndef DLT_JUNIPER_PPPOE_ATM 406 #define DLT_JUNIPER_PPPOE_ATM 168 407 #endif 408 409 #ifndef DLT_GPRS_LLC 410 #define DLT_GPRS_LLC 169 411 #endif 412 413 #ifndef DLT_GPF_T 414 #define DLT_GPF_T 170 415 #endif 416 417 #ifndef DLT_GPF_F 418 #define DLT_GPF_F 171 419 #endif 420 421 #ifndef DLT_GCOM_T1E1 422 #define DLT_GCOM_T1E1 172 423 #endif 424 425 #ifndef DLT_GCOM_SERIAL 426 #define DLT_GCOM_SERIAL 173 427 #endif 428 429 #ifndef DLT_JUNIPER_PIC_PEER 430 #define DLT_JUNIPER_PIC_PEER 174 431 #endif 432 433 #ifndef DLT_ERF_ETH 434 #define DLT_ERF_ETH 175 435 #endif 436 437 #ifndef DLT_ERF_POS 438 #define DLT_ERF_POS 176 439 #endif 440 441 #ifndef DLT_LINUX_LAPD 442 #define DLT_LINUX_LAPD 177 443 #endif 444 445 #ifndef DLT_JUNIPER_ETHER 446 #define DLT_JUNIPER_ETHER 178 447 #endif 448 449 #ifndef DLT_JUNIPER_PPP 450 #define DLT_JUNIPER_PPP 179 451 #endif 452 453 #ifndef DLT_JUNIPER_FRELAY 454 #define DLT_JUNIPER_FRELAY 180 455 #endif 456 457 #ifndef DLT_JUNIPER_CHDLC 458 #define DLT_JUNIPER_CHDLC 181 459 #endif 460 461 462