dlt_names.c 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  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. * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
  20. * The Regents of the University of California. All rights reserved.
  21. *
  22. * This code is derived from the Stanford/CMU enet packet filter,
  23. * (net/enet.c) distributed as part of 4.3BSD, and code contributed
  24. * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence
  25. * Berkeley Laboratory.
  26. *
  27. * Redistribution and use in source and binary forms, with or without
  28. * modification, are permitted provided that the following conditions
  29. * are met:
  30. * 1. Redistributions of source code must retain the above copyright
  31. * notice, this list of conditions and the following disclaimer.
  32. * 2. Redistributions in binary form must reproduce the above copyright
  33. * notice, this list of conditions and the following disclaimer in the
  34. * documentation and/or other materials provided with the distribution.
  35. * 3. All advertising materials mentioning features or use of this software
  36. * must display the following acknowledgement:
  37. * This product includes software developed by the University of
  38. * California, Berkeley and its contributors.
  39. * 4. Neither the name of the University nor the names of its contributors
  40. * may be used to endorse or promote products derived from this software
  41. * without specific prior written permission.
  42. *
  43. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  44. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  45. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  46. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  47. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  48. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  49. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  50. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  51. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  52. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  53. * SUCH DAMAGE.
  54. *
  55. * @(#)bpf.h 7.1 (Berkeley) 5/7/91
  56. *
  57. * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.34.2.6 2005/08/13 22:29:47 hannes Exp $ (LBL)
  58. */
  59. #include <stdlib.h>
  60. /* DLT to descriptions */
  61. char *dlt2desc[] = {
  62. "BSD loopback encapsulation",
  63. "Ethernet (10Mb)",
  64. "Experimental Ethernet (3Mb)",
  65. "Amateur Radio AX.25",
  66. "Proteon ProNET Token Ring",
  67. "Chaos",
  68. "IEEE 802 Networks",
  69. "ARCNET, with BSD-style header",
  70. "Serial Line IP",
  71. "Point-to-point Protocol",
  72. "FDDI",
  73. "LLC-encapsulated ATM",
  74. "raw IP",
  75. "BSD/OS Serial Line IP",
  76. "BSD/OS Point-to-point Protocol",
  77. "BSD/OS Serial Line IP",
  78. "BSD/OS Point-to-point Protocol",
  79. "",
  80. "",
  81. "Linux Classical-IP over ATM",
  82. "Unknown",
  83. "Unknown",
  84. "Unknown",
  85. "Unknown",
  86. "Unknown",
  87. "Unknown",
  88. "Unknown",
  89. "Unknown",
  90. "Unknown",
  91. "Unknown",
  92. "Unknown",
  93. "Unknown",
  94. "",
  95. "Unknown",
  96. "Unknown",
  97. "Unknown",
  98. "Unknown",
  99. "Unknown",
  100. "Unknown",
  101. "Unknown",
  102. "Unknown",
  103. "Unknown",
  104. "Unknown",
  105. "Unknown",
  106. "Unknown",
  107. "Unknown",
  108. "Unknown",
  109. "Unknown",
  110. "Unknown",
  111. "Unknown",
  112. "PPP over serial with HDLC encapsulation",
  113. "PPP over Ethernet",
  114. "Unknown",
  115. "Unknown",
  116. "Unknown",
  117. "Unknown",
  118. "Unknown",
  119. "Unknown",
  120. "Unknown",
  121. "Unknown",
  122. "Unknown",
  123. "Unknown",
  124. "Unknown",
  125. "Unknown",
  126. "Unknown",
  127. "Unknown",
  128. "Unknown",
  129. "Unknown",
  130. "Unknown",
  131. "Unknown",
  132. "Unknown",
  133. "Unknown",
  134. "Unknown",
  135. "Unknown",
  136. "Unknown",
  137. "Unknown",
  138. "Unknown",
  139. "Unknown",
  140. "Unknown",
  141. "Unknown",
  142. "Unknown",
  143. "Unknown",
  144. "Unknown",
  145. "Unknown",
  146. "Unknown",
  147. "Unknown",
  148. "Unknown",
  149. "Unknown",
  150. "Unknown",
  151. "Unknown",
  152. "Unknown",
  153. "Unknown",
  154. "Unknown",
  155. "Unknown",
  156. "Unknown",
  157. "Unknown",
  158. "Unknown",
  159. "Unknown",
  160. "Unknown",
  161. "",
  162. "Unknown",
  163. "Unknown",
  164. "Unknown",
  165. "Unknown",
  166. "Cisco HDLC",
  167. "IEEE 802.11 wireless",
  168. "Unknown",
  169. "BSD/OS Frame Relay",
  170. "OpenBSD Loopback",
  171. "",
  172. "Unknown",
  173. "Unknown",
  174. "Unknown",
  175. "Linux Cooked Sockets",
  176. "Apple LocalTalk",
  177. "Acorn Econet",
  178. "OpenBSD IPFilter",
  179. "OpenBSD PF Log/SuSE 6.3 LANE 802.3",
  180. "Cisco IOS",
  181. "802.11 Prism Header",
  182. "802.11 Aironet Header",
  183. "Siemens HiPath HDLC",
  184. "IP over Fibre Channel",
  185. "Solaris+SunATM",
  186. "RapidIO",
  187. "PCI Express",
  188. "Xilinx Aurora link layer",
  189. "802.11 plus radiotap radio header",
  190. "Tazmen Sniffer Protocol",
  191. "ARCNET",
  192. "",
  193. "",
  194. "",
  195. "",
  196. "",
  197. "",
  198. "",
  199. "",
  200. "",
  201. "pseudo-header with various info, followed by MTP2",
  202. "MTP2, without pseudo-header",
  203. "MTP3, without pseudo-header or MTP2",
  204. "SCCP, without pseudo-header or MTP2 or MTP3",
  205. "",
  206. "",
  207. "",
  208. "",
  209. "",
  210. "",
  211. "",
  212. "",
  213. "",
  214. "",
  215. "",
  216. "",
  217. "",
  218. "",
  219. "",
  220. "",
  221. "",
  222. "",
  223. "",
  224. "",
  225. "802.11 plus AVS radio header",
  226. "",
  227. "",
  228. "",
  229. "",
  230. "",
  231. "GPRS LLC",
  232. "GPF-T (ITU-T G.7041/Y.1303)",
  233. "GPF-F (ITU-T G.7041/Y.1303)",
  234. "",
  235. "",
  236. "",
  237. "Ethernet",
  238. "Packet-over-SONET",
  239. "",
  240. "",
  241. "",
  242. "",
  243. NULL
  244. };
  245. /* DLT to names */
  246. char *dlt2name[] = {
  247. "DLT_NULL",
  248. "DLT_EN10MB",
  249. "DLT_EN3MB",
  250. "DLT_AX25",
  251. "DLT_PRONET",
  252. "DLT_CHAOS",
  253. "DLT_IEEE802",
  254. "DLT_ARCNET",
  255. "DLT_SLIP",
  256. "DLT_PPP",
  257. "DLT_FDDI",
  258. "DLT_ATM_RFC1483",
  259. "DLT_RAW",
  260. "DLT_ENC",
  261. "DLT_PPP_BSDOS",
  262. "DLT_SLIP_BSDOS",
  263. "DLT_PPP_BSDOS",
  264. "DLT_OLD_PFLOG",
  265. "DLT_PFSYNC",
  266. "DLT_ATM_CLIP",
  267. "Unknown",
  268. "Unknown",
  269. "Unknown",
  270. "Unknown",
  271. "Unknown",
  272. "Unknown",
  273. "Unknown",
  274. "Unknown",
  275. "Unknown",
  276. "Unknown",
  277. "Unknown",
  278. "Unknown",
  279. "DLT_REDBACK_SMARTEDGE",
  280. "Unknown",
  281. "Unknown",
  282. "Unknown",
  283. "Unknown",
  284. "Unknown",
  285. "Unknown",
  286. "Unknown",
  287. "Unknown",
  288. "Unknown",
  289. "Unknown",
  290. "Unknown",
  291. "Unknown",
  292. "Unknown",
  293. "Unknown",
  294. "Unknown",
  295. "Unknown",
  296. "Unknown",
  297. "DLT_PPP_SERIAL",
  298. "DLT_PPP_ETHER",
  299. "Unknown",
  300. "Unknown",
  301. "Unknown",
  302. "Unknown",
  303. "Unknown",
  304. "Unknown",
  305. "Unknown",
  306. "Unknown",
  307. "Unknown",
  308. "Unknown",
  309. "Unknown",
  310. "Unknown",
  311. "Unknown",
  312. "Unknown",
  313. "Unknown",
  314. "Unknown",
  315. "Unknown",
  316. "Unknown",
  317. "Unknown",
  318. "Unknown",
  319. "Unknown",
  320. "Unknown",
  321. "Unknown",
  322. "Unknown",
  323. "Unknown",
  324. "Unknown",
  325. "Unknown",
  326. "Unknown",
  327. "Unknown",
  328. "Unknown",
  329. "Unknown",
  330. "Unknown",
  331. "Unknown",
  332. "Unknown",
  333. "Unknown",
  334. "Unknown",
  335. "Unknown",
  336. "Unknown",
  337. "Unknown",
  338. "Unknown",
  339. "Unknown",
  340. "Unknown",
  341. "Unknown",
  342. "Unknown",
  343. "Unknown",
  344. "Unknown",
  345. "Unknown",
  346. "DLT_SYMANTEC_FIREWALL",
  347. "Unknown",
  348. "Unknown",
  349. "Unknown",
  350. "Unknown",
  351. "DLT_C_HDLC",
  352. "DLT_IEEE802_11",
  353. "Unknown",
  354. "DLT_FRELAY",
  355. "DLT_LOOP",
  356. "DLT_ENC",
  357. "Unknown",
  358. "Unknown",
  359. "Unknown",
  360. "DLT_LINUX_SLL",
  361. "DLT_LTALK",
  362. "DLT_ECONET",
  363. "DLT_IPFILTER",
  364. "DLT_PFLOG",
  365. "DLT_CISCO_IOS",
  366. "DLT_PRISM_HEADER",
  367. "DLT_AIRONET_HEADER",
  368. "DLT_HHDLC",
  369. "DLT_IP_OVER_FC",
  370. "DLT_SUNATM",
  371. "DLT_RIO",
  372. "DLT_PCI_EXP",
  373. "DLT_AURORA",
  374. "DLT_IEEE802_11_RADIO",
  375. "DLT_TZSP",
  376. "DLT_ARCNET_LINUX",
  377. "DLT_JUNIPER_MLPPP",
  378. "DLT_JUNIPER_MLFR",
  379. "DLT_JUNIPER_ES",
  380. "DLT_JUNIPER_GGSN",
  381. "DLT_JUNIPER_MFR",
  382. "DLT_JUNIPER_ATM2",
  383. "DLT_JUNIPER_SERVICES",
  384. "DLT_JUNIPER_ATM1",
  385. "DLT_APPLE_IP_OVER_IEEE1394",
  386. "DLT_MTP2_WITH_PHDR",
  387. "DLT_MTP2",
  388. "DLT_MTP3",
  389. "DLT_SCCP",
  390. "DLT_DOCSIS",
  391. "DLT_LINUX_IRDA",
  392. "DLT_IBM_SP",
  393. "DLT_IBM_SN",
  394. "DLT_USER0",
  395. "DLT_USER1",
  396. "DLT_USER2",
  397. "DLT_USER3",
  398. "DLT_USER4",
  399. "DLT_USER5",
  400. "DLT_USER6",
  401. "DLT_USER7",
  402. "DLT_USER8",
  403. "DLT_USER9",
  404. "DLT_USER10",
  405. "DLT_USER11",
  406. "DLT_USER12",
  407. "DLT_USER13",
  408. "DLT_USER14",
  409. "DLT_USER15",
  410. "DLT_IEEE802_11_RADIO_AVS",
  411. "DLT_JUNIPER_MONITOR",
  412. "DLT_BACNET_MS_TP",
  413. "DLT_PPP_PPPD",
  414. "DLT_JUNIPER_PPPOE",
  415. "DLT_JUNIPER_PPPOE_ATM",
  416. "DLT_GPRS_LLC",
  417. "DLT_GPF_T",
  418. "DLT_GPF_F",
  419. "DLT_GCOM_T1E1",
  420. "DLT_GCOM_SERIAL",
  421. "DLT_JUNIPER_PIC_PEER",
  422. "DLT_ERF_ETH",
  423. "DLT_ERF_POS",
  424. "DLT_LINUX_LAPD",
  425. "DLT_JUNIPER_ETHER",
  426. "DLT_JUNIPER_PPP",
  427. "DLT_JUNIPER_FRELAY",
  428. "DLT_JUNIPER_CHDLC",
  429. "Unknown",
  430. "Unknown",
  431. "Unknown",
  432. "Unknown",
  433. "Unknown",
  434. "Unknown",
  435. "Unknown",
  436. "Unknown",
  437. "Unknown",
  438. "Unknown",
  439. "Unknown",
  440. "Unknown",
  441. "Unknown",
  442. "Unknown",
  443. "Unknown",
  444. "Unknown",
  445. "Unknown",
  446. "Unknown",
  447. "Unknown",
  448. "Unknown",
  449. "Unknown",
  450. "Unknown",
  451. "Unknown",
  452. "Unknown",
  453. "Unknown",
  454. "Unknown",
  455. "Unknown",
  456. "Unknown",
  457. "Unknown",
  458. "Unknown",
  459. "Unknown",
  460. "Unknown",
  461. "Unknown",
  462. "Unknown",
  463. "Unknown",
  464. "Unknown",
  465. "Unknown",
  466. "Unknown",
  467. "Unknown",
  468. "Unknown",
  469. "Unknown",
  470. "Unknown",
  471. "Unknown",
  472. "Unknown",
  473. "Unknown",
  474. "Unknown",
  475. "Unknown",
  476. "Unknown",
  477. "Unknown",
  478. "Unknown",
  479. "Unknown",
  480. "Unknown",
  481. "Unknown",
  482. "Unknown",
  483. "Unknown",
  484. "Unknown",
  485. "Unknown",
  486. "Unknown",
  487. "Unknown",
  488. "Unknown",
  489. "Unknown",
  490. "Unknown",
  491. "Unknown",
  492. "Unknown",
  493. "Unknown",
  494. "Unknown",
  495. "Unknown",
  496. "Unknown",
  497. "Unknown",
  498. "Unknown",
  499. "Unknown",
  500. "Unknown",
  501. "Unknown",
  502. "Unknown",
  503. "Unknown",
  504. "Unknown",
  505. "Unknown",
  506. "Unknown",
  507. "Unknown",
  508. "Unknown",
  509. "Unknown",
  510. "Unknown",
  511. "Unknown",
  512. "Unknown",
  513. "Unknown",
  514. "Unknown",
  515. "Unknown",
  516. "Unknown",
  517. "Unknown",
  518. "Unknown",
  519. "Unknown",
  520. "Unknown",
  521. "Unknown",
  522. "Unknown",
  523. "DLT_LINUX_SLL2",
  524. NULL
  525. };