pypcapkit 1.3.3.post1__cp313-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (466) hide show
  1. pcapkit/__init__.py +126 -0
  2. pcapkit/__main__.py +138 -0
  3. pcapkit/all.py +136 -0
  4. pcapkit/const/__init__.py +81 -0
  5. pcapkit/const/arp/__init__.py +25 -0
  6. pcapkit/const/arp/hardware.py +181 -0
  7. pcapkit/const/arp/operation.py +131 -0
  8. pcapkit/const/ftp/__init__.py +25 -0
  9. pcapkit/const/ftp/command.py +309 -0
  10. pcapkit/const/ftp/return_code.py +304 -0
  11. pcapkit/const/hip/__init__.py +94 -0
  12. pcapkit/const/hip/certificate.py +77 -0
  13. pcapkit/const/hip/cipher.py +65 -0
  14. pcapkit/const/hip/di.py +59 -0
  15. pcapkit/const/hip/ecdsa_curve.py +59 -0
  16. pcapkit/const/hip/ecdsa_low_curve.py +56 -0
  17. pcapkit/const/hip/eddsa_curve.py +65 -0
  18. pcapkit/const/hip/esp_transform_suite.py +98 -0
  19. pcapkit/const/hip/group.py +86 -0
  20. pcapkit/const/hip/hi_algorithm.py +86 -0
  21. pcapkit/const/hip/hit_suite.py +68 -0
  22. pcapkit/const/hip/nat_traversal.py +62 -0
  23. pcapkit/const/hip/notify_message.py +200 -0
  24. pcapkit/const/hip/packet.py +89 -0
  25. pcapkit/const/hip/parameter.py +377 -0
  26. pcapkit/const/hip/registration.py +68 -0
  27. pcapkit/const/hip/registration_failure.py +84 -0
  28. pcapkit/const/hip/suite.py +71 -0
  29. pcapkit/const/hip/transport.py +59 -0
  30. pcapkit/const/http/__init__.py +39 -0
  31. pcapkit/const/http/error_code.py +95 -0
  32. pcapkit/const/http/frame.py +95 -0
  33. pcapkit/const/http/method.py +184 -0
  34. pcapkit/const/http/setting.py +96 -0
  35. pcapkit/const/http/status_code.py +294 -0
  36. pcapkit/const/ipv4/__init__.py +57 -0
  37. pcapkit/const/ipv4/classification_level.py +64 -0
  38. pcapkit/const/ipv4/option_class.py +55 -0
  39. pcapkit/const/ipv4/option_number.py +137 -0
  40. pcapkit/const/ipv4/protection_authority.py +63 -0
  41. pcapkit/const/ipv4/qs_function.py +51 -0
  42. pcapkit/const/ipv4/router_alert.py +251 -0
  43. pcapkit/const/ipv4/tos_del.py +51 -0
  44. pcapkit/const/ipv4/tos_ecn.py +55 -0
  45. pcapkit/const/ipv4/tos_pre.py +63 -0
  46. pcapkit/const/ipv4/tos_rel.py +51 -0
  47. pcapkit/const/ipv4/tos_thr.py +51 -0
  48. pcapkit/const/ipv4/ts_flag.py +53 -0
  49. pcapkit/const/ipv6/__init__.py +53 -0
  50. pcapkit/const/ipv6/extension_header.py +66 -0
  51. pcapkit/const/ipv6/option.py +137 -0
  52. pcapkit/const/ipv6/option_action.py +55 -0
  53. pcapkit/const/ipv6/qs_function.py +51 -0
  54. pcapkit/const/ipv6/router_alert.py +266 -0
  55. pcapkit/const/ipv6/routing.py +80 -0
  56. pcapkit/const/ipv6/seed_id.py +55 -0
  57. pcapkit/const/ipv6/smf_dpd_mode.py +51 -0
  58. pcapkit/const/ipv6/tagger_id.py +62 -0
  59. pcapkit/const/ipx/__init__.py +27 -0
  60. pcapkit/const/ipx/packet.py +72 -0
  61. pcapkit/const/ipx/socket.py +104 -0
  62. pcapkit/const/l2tp/__init__.py +21 -0
  63. pcapkit/const/l2tp/type.py +51 -0
  64. pcapkit/const/mh/__init__.py +204 -0
  65. pcapkit/const/mh/access_type.py +92 -0
  66. pcapkit/const/mh/ack_status_code.py +71 -0
  67. pcapkit/const/mh/ani_suboption.py +74 -0
  68. pcapkit/const/mh/auth_subtype.py +53 -0
  69. pcapkit/const/mh/binding_ack_flag.py +66 -0
  70. pcapkit/const/mh/binding_error.py +51 -0
  71. pcapkit/const/mh/binding_revocation.py +59 -0
  72. pcapkit/const/mh/binding_update_flag.py +81 -0
  73. pcapkit/const/mh/cga_extension.py +66 -0
  74. pcapkit/const/mh/cga_sec.py +57 -0
  75. pcapkit/const/mh/cga_type.py +68 -0
  76. pcapkit/const/mh/dhcp_support_mode.py +53 -0
  77. pcapkit/const/mh/dns_status_code.py +65 -0
  78. pcapkit/const/mh/dsmip6_tls_packet.py +62 -0
  79. pcapkit/const/mh/dsmipv6_home_address.py +74 -0
  80. pcapkit/const/mh/enumerating_algorithm.py +56 -0
  81. pcapkit/const/mh/fb_ack_status.py +62 -0
  82. pcapkit/const/mh/fb_action.py +71 -0
  83. pcapkit/const/mh/fb_indication_trigger.py +65 -0
  84. pcapkit/const/mh/fb_type.py +59 -0
  85. pcapkit/const/mh/flow_id_status.py +77 -0
  86. pcapkit/const/mh/flow_id_suboption.py +71 -0
  87. pcapkit/const/mh/handoff_type.py +71 -0
  88. pcapkit/const/mh/handover_ack_flag.py +54 -0
  89. pcapkit/const/mh/handover_ack_status.py +92 -0
  90. pcapkit/const/mh/handover_initiate_flag.py +57 -0
  91. pcapkit/const/mh/handover_initiate_status.py +62 -0
  92. pcapkit/const/mh/home_address_reply.py +71 -0
  93. pcapkit/const/mh/lla_code.py +63 -0
  94. pcapkit/const/mh/lma_mag_suboption.py +59 -0
  95. pcapkit/const/mh/mn_group_id.py +59 -0
  96. pcapkit/const/mh/mn_id_subtype.py +77 -0
  97. pcapkit/const/mh/operator_id.py +63 -0
  98. pcapkit/const/mh/option.py +260 -0
  99. pcapkit/const/mh/packet.py +119 -0
  100. pcapkit/const/mh/qos_attribute.py +89 -0
  101. pcapkit/const/mh/revocation_status_code.py +83 -0
  102. pcapkit/const/mh/revocation_trigger.py +86 -0
  103. pcapkit/const/mh/status_code.py +232 -0
  104. pcapkit/const/mh/traffic_selector.py +62 -0
  105. pcapkit/const/mh/upa_status.py +71 -0
  106. pcapkit/const/mh/upn_reason.py +80 -0
  107. pcapkit/const/ospf/__init__.py +27 -0
  108. pcapkit/const/ospf/authentication.py +65 -0
  109. pcapkit/const/ospf/packet.py +71 -0
  110. pcapkit/const/pcapng/__init__.py +51 -0
  111. pcapkit/const/pcapng/block_type.py +152 -0
  112. pcapkit/const/pcapng/filter_type.py +48 -0
  113. pcapkit/const/pcapng/hash_algorithm.py +59 -0
  114. pcapkit/const/pcapng/option_type.py +233 -0
  115. pcapkit/const/pcapng/record_type.py +57 -0
  116. pcapkit/const/pcapng/secrets_type.py +56 -0
  117. pcapkit/const/pcapng/verdict_type.py +53 -0
  118. pcapkit/const/reg/__init__.py +34 -0
  119. pcapkit/const/reg/apptype.py +32702 -0
  120. pcapkit/const/reg/ethertype.py +714 -0
  121. pcapkit/const/reg/linktype.py +902 -0
  122. pcapkit/const/reg/transtype.py +523 -0
  123. pcapkit/const/tcp/__init__.py +35 -0
  124. pcapkit/const/tcp/checksum.py +55 -0
  125. pcapkit/const/tcp/flags.py +73 -0
  126. pcapkit/const/tcp/mp_tcp_option.py +80 -0
  127. pcapkit/const/tcp/option.py +198 -0
  128. pcapkit/const/vlan/__init__.py +23 -0
  129. pcapkit/const/vlan/priority_level.py +71 -0
  130. pcapkit/corekit/__init__.py +59 -0
  131. pcapkit/corekit/fields/__init__.py +45 -0
  132. pcapkit/corekit/fields/collections.py +282 -0
  133. pcapkit/corekit/fields/field.py +269 -0
  134. pcapkit/corekit/fields/ipaddress.py +274 -0
  135. pcapkit/corekit/fields/misc.py +722 -0
  136. pcapkit/corekit/fields/numbers.py +375 -0
  137. pcapkit/corekit/fields/strings.py +245 -0
  138. pcapkit/corekit/infoclass.py +394 -0
  139. pcapkit/corekit/io.py +506 -0
  140. pcapkit/corekit/module.py +39 -0
  141. pcapkit/corekit/multidict.py +626 -0
  142. pcapkit/corekit/protochain.py +263 -0
  143. pcapkit/corekit/version.py +33 -0
  144. pcapkit/dumpkit/__init__.py +15 -0
  145. pcapkit/dumpkit/common.py +199 -0
  146. pcapkit/dumpkit/null.py +77 -0
  147. pcapkit/dumpkit/pcap.py +144 -0
  148. pcapkit/foundation/__init__.py +45 -0
  149. pcapkit/foundation/engines/__init__.py +36 -0
  150. pcapkit/foundation/engines/dpkt.py +230 -0
  151. pcapkit/foundation/engines/engine.py +194 -0
  152. pcapkit/foundation/engines/pcap.py +188 -0
  153. pcapkit/foundation/engines/pcapng.py +310 -0
  154. pcapkit/foundation/engines/pyshark.py +166 -0
  155. pcapkit/foundation/engines/scapy.py +161 -0
  156. pcapkit/foundation/extraction.py +915 -0
  157. pcapkit/foundation/reassembly/__init__.py +49 -0
  158. pcapkit/foundation/reassembly/data/__init__.py +48 -0
  159. pcapkit/foundation/reassembly/data/ip.py +117 -0
  160. pcapkit/foundation/reassembly/data/tcp.py +145 -0
  161. pcapkit/foundation/reassembly/ip.py +192 -0
  162. pcapkit/foundation/reassembly/ipv4.py +50 -0
  163. pcapkit/foundation/reassembly/ipv6.py +50 -0
  164. pcapkit/foundation/reassembly/reassembly.py +389 -0
  165. pcapkit/foundation/reassembly/tcp.py +249 -0
  166. pcapkit/foundation/registry/__init__.py +41 -0
  167. pcapkit/foundation/registry/foundation.py +327 -0
  168. pcapkit/foundation/registry/protocols.py +885 -0
  169. pcapkit/foundation/traceflow/__init__.py +44 -0
  170. pcapkit/foundation/traceflow/data/__init__.py +30 -0
  171. pcapkit/foundation/traceflow/data/tcp.py +105 -0
  172. pcapkit/foundation/traceflow/tcp.py +159 -0
  173. pcapkit/foundation/traceflow/traceflow.py +390 -0
  174. pcapkit/interface/__init__.py +22 -0
  175. pcapkit/interface/core.py +185 -0
  176. pcapkit/interface/misc.py +120 -0
  177. pcapkit/protocols/__init__.py +85 -0
  178. pcapkit/protocols/application/NotImplemented/bgp.py +0 -0
  179. pcapkit/protocols/application/NotImplemented/dhcp.py +0 -0
  180. pcapkit/protocols/application/NotImplemented/dhcpv6.py +0 -0
  181. pcapkit/protocols/application/NotImplemented/dns.py +0 -0
  182. pcapkit/protocols/application/NotImplemented/imap.py +0 -0
  183. pcapkit/protocols/application/NotImplemented/ldap.py +0 -0
  184. pcapkit/protocols/application/NotImplemented/mqtt.py +0 -0
  185. pcapkit/protocols/application/NotImplemented/nntp.py +0 -0
  186. pcapkit/protocols/application/NotImplemented/ntp.py +0 -0
  187. pcapkit/protocols/application/NotImplemented/onc_rpc.py +0 -0
  188. pcapkit/protocols/application/NotImplemented/pop.py +0 -0
  189. pcapkit/protocols/application/NotImplemented/rip.py +0 -0
  190. pcapkit/protocols/application/NotImplemented/rtp.py +0 -0
  191. pcapkit/protocols/application/NotImplemented/sip.py +0 -0
  192. pcapkit/protocols/application/NotImplemented/smtp.py +0 -0
  193. pcapkit/protocols/application/NotImplemented/snmp.py +0 -0
  194. pcapkit/protocols/application/NotImplemented/ssh.py +0 -0
  195. pcapkit/protocols/application/NotImplemented/telnet.py +0 -0
  196. pcapkit/protocols/application/NotImplemented/tls.py +0 -0
  197. pcapkit/protocols/application/NotImplemented/xmpp.py +0 -0
  198. pcapkit/protocols/application/__init__.py +34 -0
  199. pcapkit/protocols/application/application.py +114 -0
  200. pcapkit/protocols/application/ftp.py +206 -0
  201. pcapkit/protocols/application/http.py +176 -0
  202. pcapkit/protocols/application/httpv1.py +320 -0
  203. pcapkit/protocols/application/httpv2.py +1255 -0
  204. pcapkit/protocols/data/__init__.py +192 -0
  205. pcapkit/protocols/data/application/__init__.py +57 -0
  206. pcapkit/protocols/data/application/ftp.py +59 -0
  207. pcapkit/protocols/data/application/httpv1.py +79 -0
  208. pcapkit/protocols/data/application/httpv2.py +293 -0
  209. pcapkit/protocols/data/data.py +25 -0
  210. pcapkit/protocols/data/internet/__init__.py +298 -0
  211. pcapkit/protocols/data/internet/ah.py +31 -0
  212. pcapkit/protocols/data/internet/hip.py +804 -0
  213. pcapkit/protocols/data/internet/hopopt.py +351 -0
  214. pcapkit/protocols/data/internet/ipv4.py +369 -0
  215. pcapkit/protocols/data/internet/ipv6.py +67 -0
  216. pcapkit/protocols/data/internet/ipv6_frag.py +29 -0
  217. pcapkit/protocols/data/internet/ipv6_opts.py +368 -0
  218. pcapkit/protocols/data/internet/ipv6_route.py +86 -0
  219. pcapkit/protocols/data/internet/ipx.py +56 -0
  220. pcapkit/protocols/data/internet/mh.py +509 -0
  221. pcapkit/protocols/data/link/__init__.py +33 -0
  222. pcapkit/protocols/data/link/arp.py +74 -0
  223. pcapkit/protocols/data/link/ethernet.py +28 -0
  224. pcapkit/protocols/data/link/l2tp.py +63 -0
  225. pcapkit/protocols/data/link/ospf.py +58 -0
  226. pcapkit/protocols/data/link/vlan.py +42 -0
  227. pcapkit/protocols/data/misc/__init__.py +109 -0
  228. pcapkit/protocols/data/misc/null.py +18 -0
  229. pcapkit/protocols/data/misc/pcap/__init__.py +18 -0
  230. pcapkit/protocols/data/misc/pcap/frame.py +56 -0
  231. pcapkit/protocols/data/misc/pcap/header.py +53 -0
  232. pcapkit/protocols/data/misc/pcapng.py +925 -0
  233. pcapkit/protocols/data/misc/raw.py +25 -0
  234. pcapkit/protocols/data/protocol.py +32 -0
  235. pcapkit/protocols/data/transport/__init__.py +71 -0
  236. pcapkit/protocols/data/transport/tcp.py +555 -0
  237. pcapkit/protocols/data/transport/udp.py +29 -0
  238. pcapkit/protocols/internet/NotImplemented/ecn.py +0 -0
  239. pcapkit/protocols/internet/NotImplemented/esp.py +97 -0
  240. pcapkit/protocols/internet/NotImplemented/icmp.py +0 -0
  241. pcapkit/protocols/internet/NotImplemented/icmpv6.py +0 -0
  242. pcapkit/protocols/internet/NotImplemented/igmp.py +0 -0
  243. pcapkit/protocols/internet/NotImplemented/shim6.py +0 -0
  244. pcapkit/protocols/internet/__init__.py +43 -0
  245. pcapkit/protocols/internet/ah.py +275 -0
  246. pcapkit/protocols/internet/hip.py +4727 -0
  247. pcapkit/protocols/internet/hopopt.py +1879 -0
  248. pcapkit/protocols/internet/internet.py +240 -0
  249. pcapkit/protocols/internet/ip.py +51 -0
  250. pcapkit/protocols/internet/ipsec.py +50 -0
  251. pcapkit/protocols/internet/ipv4.py +1782 -0
  252. pcapkit/protocols/internet/ipv6.py +361 -0
  253. pcapkit/protocols/internet/ipv6_frag.py +258 -0
  254. pcapkit/protocols/internet/ipv6_opts.py +1890 -0
  255. pcapkit/protocols/internet/ipv6_route.py +710 -0
  256. pcapkit/protocols/internet/ipx.py +230 -0
  257. pcapkit/protocols/internet/mh.py +2764 -0
  258. pcapkit/protocols/link/NotImplemented/dsl.py +0 -0
  259. pcapkit/protocols/link/NotImplemented/eapol.py +1 -0
  260. pcapkit/protocols/link/NotImplemented/fddi.py +0 -0
  261. pcapkit/protocols/link/NotImplemented/isdn.py +0 -0
  262. pcapkit/protocols/link/NotImplemented/ndp.py +0 -0
  263. pcapkit/protocols/link/NotImplemented/ppp.py +0 -0
  264. pcapkit/protocols/link/__init__.py +35 -0
  265. pcapkit/protocols/link/arp.py +421 -0
  266. pcapkit/protocols/link/ethernet.py +248 -0
  267. pcapkit/protocols/link/l2tp.py +267 -0
  268. pcapkit/protocols/link/link.py +140 -0
  269. pcapkit/protocols/link/ospf.py +342 -0
  270. pcapkit/protocols/link/rarp.py +82 -0
  271. pcapkit/protocols/link/vlan.py +225 -0
  272. pcapkit/protocols/misc/__init__.py +37 -0
  273. pcapkit/protocols/misc/null.py +129 -0
  274. pcapkit/protocols/misc/pcap/__init__.py +17 -0
  275. pcapkit/protocols/misc/pcap/frame.py +478 -0
  276. pcapkit/protocols/misc/pcap/header.py +358 -0
  277. pcapkit/protocols/misc/pcapng.py +5520 -0
  278. pcapkit/protocols/misc/raw.py +180 -0
  279. pcapkit/protocols/protocol.py +1216 -0
  280. pcapkit/protocols/schema/__init__.py +140 -0
  281. pcapkit/protocols/schema/application/__init__.py +40 -0
  282. pcapkit/protocols/schema/application/ftp.py +21 -0
  283. pcapkit/protocols/schema/application/httpv1.py +21 -0
  284. pcapkit/protocols/schema/application/httpv2.py +384 -0
  285. pcapkit/protocols/schema/internet/__init__.py +294 -0
  286. pcapkit/protocols/schema/internet/ah.py +40 -0
  287. pcapkit/protocols/schema/internet/hip.py +1184 -0
  288. pcapkit/protocols/schema/internet/hopopt.py +679 -0
  289. pcapkit/protocols/schema/internet/ipv4.py +576 -0
  290. pcapkit/protocols/schema/internet/ipv6.py +63 -0
  291. pcapkit/protocols/schema/internet/ipv6_frag.py +48 -0
  292. pcapkit/protocols/schema/internet/ipv6_opts.py +680 -0
  293. pcapkit/protocols/schema/internet/ipv6_route.py +198 -0
  294. pcapkit/protocols/schema/internet/ipx.py +40 -0
  295. pcapkit/protocols/schema/internet/mh.py +718 -0
  296. pcapkit/protocols/schema/link/__init__.py +19 -0
  297. pcapkit/protocols/schema/link/arp.py +39 -0
  298. pcapkit/protocols/schema/link/ethernet.py +51 -0
  299. pcapkit/protocols/schema/link/l2tp.py +88 -0
  300. pcapkit/protocols/schema/link/ospf.py +90 -0
  301. pcapkit/protocols/schema/link/vlan.py +69 -0
  302. pcapkit/protocols/schema/misc/__init__.py +108 -0
  303. pcapkit/protocols/schema/misc/null.py +18 -0
  304. pcapkit/protocols/schema/misc/pcap/__init__.py +10 -0
  305. pcapkit/protocols/schema/misc/pcap/frame.py +51 -0
  306. pcapkit/protocols/schema/misc/pcap/header.py +63 -0
  307. pcapkit/protocols/schema/misc/pcapng.py +1689 -0
  308. pcapkit/protocols/schema/misc/raw.py +24 -0
  309. pcapkit/protocols/schema/schema.py +809 -0
  310. pcapkit/protocols/schema/transport/__init__.py +69 -0
  311. pcapkit/protocols/schema/transport/tcp.py +928 -0
  312. pcapkit/protocols/schema/transport/udp.py +90 -0
  313. pcapkit/protocols/transport/NotImplemented/dccp.py +0 -0
  314. pcapkit/protocols/transport/NotImplemented/rsvp.py +0 -0
  315. pcapkit/protocols/transport/NotImplemented/sctp.py +0 -0
  316. pcapkit/protocols/transport/__init__.py +27 -0
  317. pcapkit/protocols/transport/tcp.py +3025 -0
  318. pcapkit/protocols/transport/transport.py +158 -0
  319. pcapkit/protocols/transport/udp.py +214 -0
  320. pcapkit/py.typed +0 -0
  321. pcapkit/toolkit/__init__.py +57 -0
  322. pcapkit/toolkit/dpkt.py +306 -0
  323. pcapkit/toolkit/pcap.py +212 -0
  324. pcapkit/toolkit/pcapng.py +251 -0
  325. pcapkit/toolkit/pyshark.py +99 -0
  326. pcapkit/toolkit/scapy.py +297 -0
  327. pcapkit/utilities/__init__.py +20 -0
  328. pcapkit/utilities/compat.py +196 -0
  329. pcapkit/utilities/decorators.py +192 -0
  330. pcapkit/utilities/exceptions.py +365 -0
  331. pcapkit/utilities/logging.py +55 -0
  332. pcapkit/utilities/warnings.py +185 -0
  333. pcapkit/vendor/__init__.py +105 -0
  334. pcapkit/vendor/__main__.py +92 -0
  335. pcapkit/vendor/arp/__init__.py +27 -0
  336. pcapkit/vendor/arp/hardware.py +29 -0
  337. pcapkit/vendor/arp/operation.py +29 -0
  338. pcapkit/vendor/default.py +474 -0
  339. pcapkit/vendor/ftp/__init__.py +27 -0
  340. pcapkit/vendor/ftp/command.py +244 -0
  341. pcapkit/vendor/ftp/return_code.py +256 -0
  342. pcapkit/vendor/hip/__init__.py +94 -0
  343. pcapkit/vendor/hip/certificate.py +29 -0
  344. pcapkit/vendor/hip/cipher.py +29 -0
  345. pcapkit/vendor/hip/di.py +29 -0
  346. pcapkit/vendor/hip/ecdsa_curve.py +29 -0
  347. pcapkit/vendor/hip/ecdsa_low_curve.py +29 -0
  348. pcapkit/vendor/hip/eddsa_curve.py +85 -0
  349. pcapkit/vendor/hip/esp_transform_suite.py +29 -0
  350. pcapkit/vendor/hip/group.py +87 -0
  351. pcapkit/vendor/hip/hi_algorithm.py +29 -0
  352. pcapkit/vendor/hip/hit_suite.py +29 -0
  353. pcapkit/vendor/hip/nat_traversal.py +29 -0
  354. pcapkit/vendor/hip/notify_message.py +29 -0
  355. pcapkit/vendor/hip/packet.py +88 -0
  356. pcapkit/vendor/hip/parameter.py +88 -0
  357. pcapkit/vendor/hip/registration.py +29 -0
  358. pcapkit/vendor/hip/registration_failure.py +29 -0
  359. pcapkit/vendor/hip/suite.py +29 -0
  360. pcapkit/vendor/hip/transport.py +29 -0
  361. pcapkit/vendor/http/__init__.py +39 -0
  362. pcapkit/vendor/http/error_code.py +95 -0
  363. pcapkit/vendor/http/frame.py +91 -0
  364. pcapkit/vendor/http/method.py +167 -0
  365. pcapkit/vendor/http/setting.py +93 -0
  366. pcapkit/vendor/http/status_code.py +185 -0
  367. pcapkit/vendor/ipv4/__init__.py +57 -0
  368. pcapkit/vendor/ipv4/classification_level.py +91 -0
  369. pcapkit/vendor/ipv4/option_class.py +80 -0
  370. pcapkit/vendor/ipv4/option_number.py +105 -0
  371. pcapkit/vendor/ipv4/protection_authority.py +84 -0
  372. pcapkit/vendor/ipv4/qs_function.py +78 -0
  373. pcapkit/vendor/ipv4/router_alert.py +93 -0
  374. pcapkit/vendor/ipv4/tos_del.py +78 -0
  375. pcapkit/vendor/ipv4/tos_ecn.py +95 -0
  376. pcapkit/vendor/ipv4/tos_pre.py +84 -0
  377. pcapkit/vendor/ipv4/tos_rel.py +78 -0
  378. pcapkit/vendor/ipv4/tos_thr.py +77 -0
  379. pcapkit/vendor/ipv4/ts_flag.py +79 -0
  380. pcapkit/vendor/ipv6/__init__.py +53 -0
  381. pcapkit/vendor/ipv6/extension_header.py +171 -0
  382. pcapkit/vendor/ipv6/option.py +104 -0
  383. pcapkit/vendor/ipv6/option_action.py +90 -0
  384. pcapkit/vendor/ipv6/qs_function.py +78 -0
  385. pcapkit/vendor/ipv6/router_alert.py +93 -0
  386. pcapkit/vendor/ipv6/routing.py +87 -0
  387. pcapkit/vendor/ipv6/seed_id.py +81 -0
  388. pcapkit/vendor/ipv6/smf_dpd_mode.py +78 -0
  389. pcapkit/vendor/ipv6/tagger_id.py +81 -0
  390. pcapkit/vendor/ipx/__init__.py +37 -0
  391. pcapkit/vendor/ipx/packet.py +123 -0
  392. pcapkit/vendor/ipx/socket.py +125 -0
  393. pcapkit/vendor/l2tp/__init__.py +21 -0
  394. pcapkit/vendor/l2tp/type.py +78 -0
  395. pcapkit/vendor/mh/__init__.py +204 -0
  396. pcapkit/vendor/mh/access_type.py +87 -0
  397. pcapkit/vendor/mh/ack_status_code.py +88 -0
  398. pcapkit/vendor/mh/ani_suboption.py +88 -0
  399. pcapkit/vendor/mh/auth_subtype.py +83 -0
  400. pcapkit/vendor/mh/binding_ack_flag.py +148 -0
  401. pcapkit/vendor/mh/binding_error.py +78 -0
  402. pcapkit/vendor/mh/binding_revocation.py +87 -0
  403. pcapkit/vendor/mh/binding_update_flag.py +147 -0
  404. pcapkit/vendor/mh/cga_extension.py +91 -0
  405. pcapkit/vendor/mh/cga_sec.py +91 -0
  406. pcapkit/vendor/mh/cga_type.py +74 -0
  407. pcapkit/vendor/mh/dhcp_support_mode.py +77 -0
  408. pcapkit/vendor/mh/dns_status_code.py +87 -0
  409. pcapkit/vendor/mh/dsmip6_tls_packet.py +87 -0
  410. pcapkit/vendor/mh/dsmipv6_home_address.py +87 -0
  411. pcapkit/vendor/mh/enumerating_algorithm.py +82 -0
  412. pcapkit/vendor/mh/fb_ack_status.py +87 -0
  413. pcapkit/vendor/mh/fb_action.py +88 -0
  414. pcapkit/vendor/mh/fb_indication_trigger.py +87 -0
  415. pcapkit/vendor/mh/fb_type.py +88 -0
  416. pcapkit/vendor/mh/flow_id_status.py +87 -0
  417. pcapkit/vendor/mh/flow_id_suboption.py +87 -0
  418. pcapkit/vendor/mh/handoff_type.py +87 -0
  419. pcapkit/vendor/mh/handover_ack_flag.py +143 -0
  420. pcapkit/vendor/mh/handover_ack_status.py +87 -0
  421. pcapkit/vendor/mh/handover_initiate_flag.py +143 -0
  422. pcapkit/vendor/mh/handover_initiate_status.py +87 -0
  423. pcapkit/vendor/mh/home_address_reply.py +87 -0
  424. pcapkit/vendor/mh/lla_code.py +97 -0
  425. pcapkit/vendor/mh/lma_mag_suboption.py +88 -0
  426. pcapkit/vendor/mh/mn_group_id.py +87 -0
  427. pcapkit/vendor/mh/mn_id_subtype.py +87 -0
  428. pcapkit/vendor/mh/operator_id.py +87 -0
  429. pcapkit/vendor/mh/option.py +83 -0
  430. pcapkit/vendor/mh/packet.py +82 -0
  431. pcapkit/vendor/mh/qos_attribute.py +87 -0
  432. pcapkit/vendor/mh/revocation_status_code.py +87 -0
  433. pcapkit/vendor/mh/revocation_trigger.py +87 -0
  434. pcapkit/vendor/mh/status_code.py +91 -0
  435. pcapkit/vendor/mh/traffic_selector.py +87 -0
  436. pcapkit/vendor/mh/upa_status.py +87 -0
  437. pcapkit/vendor/mh/upn_reason.py +87 -0
  438. pcapkit/vendor/ospf/__init__.py +27 -0
  439. pcapkit/vendor/ospf/authentication.py +29 -0
  440. pcapkit/vendor/ospf/packet.py +29 -0
  441. pcapkit/vendor/pcapng/__init__.py +51 -0
  442. pcapkit/vendor/pcapng/block_type.py +94 -0
  443. pcapkit/vendor/pcapng/filter_type.py +77 -0
  444. pcapkit/vendor/pcapng/hash_algorithm.py +82 -0
  445. pcapkit/vendor/pcapng/option_type.py +287 -0
  446. pcapkit/vendor/pcapng/record_type.py +81 -0
  447. pcapkit/vendor/pcapng/secrets_type.py +81 -0
  448. pcapkit/vendor/pcapng/verdict_type.py +79 -0
  449. pcapkit/vendor/reg/__init__.py +34 -0
  450. pcapkit/vendor/reg/apptype.py +338 -0
  451. pcapkit/vendor/reg/ethertype.py +121 -0
  452. pcapkit/vendor/reg/linktype.py +110 -0
  453. pcapkit/vendor/reg/transtype.py +111 -0
  454. pcapkit/vendor/tcp/__init__.py +35 -0
  455. pcapkit/vendor/tcp/checksum.py +80 -0
  456. pcapkit/vendor/tcp/flags.py +149 -0
  457. pcapkit/vendor/tcp/mp_tcp_option.py +90 -0
  458. pcapkit/vendor/tcp/option.py +103 -0
  459. pcapkit/vendor/vlan/__init__.py +23 -0
  460. pcapkit/vendor/vlan/priority_level.py +97 -0
  461. pypcapkit-1.3.3.post1.dist-info/LICENSE +29 -0
  462. pypcapkit-1.3.3.post1.dist-info/METADATA +236 -0
  463. pypcapkit-1.3.3.post1.dist-info/RECORD +466 -0
  464. pypcapkit-1.3.3.post1.dist-info/WHEEL +5 -0
  465. pypcapkit-1.3.3.post1.dist-info/entry_points.txt +3 -0
  466. pypcapkit-1.3.3.post1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,902 @@
1
+ # -*- coding: utf-8 -*-
2
+ # pylint: disable=line-too-long,consider-using-f-string
3
+ """Link-Layer Header Type Values
4
+ ===================================
5
+
6
+ .. module:: pcapkit.const.reg.linktype
7
+
8
+ This module contains the constant enumeration for **Link-Layer Header Type Values**,
9
+ which is automatically generated from :class:`pcapkit.vendor.reg.linktype.LinkType`.
10
+
11
+ """
12
+
13
+ from aenum import IntEnum, extend_enum
14
+
15
+ __all__ = ['LinkType']
16
+
17
+
18
+ class LinkType(IntEnum):
19
+ """[LinkType] Link-Layer Header Type Values"""
20
+
21
+ #: [``DLT_NULL``] BSD loopback encapsulation.
22
+ NULL = 0
23
+
24
+ #: [``DLT_EN10MB``] IEEE 802.3 Ethernet (10Mb, 100Mb, 1000Mb, and up); the 10MB
25
+ #: in the DLT\_ name is historical.
26
+ ETHERNET = 1
27
+
28
+ #: [``DLT_EN3MB``] Experimental Ethernet (3Mb).
29
+ EXP_ETHERNET = 2
30
+
31
+ #: [``DLT_AX25``] AX.25 packet, with nothing preceding it.
32
+ AX25 = 3
33
+
34
+ #: [``DLT_PRONET``] Proteon ProNET Token Ring.
35
+ PRONET = 4
36
+
37
+ #: [``DLT_CHAOS``] Chaos.
38
+ CHAOS = 5
39
+
40
+ #: [``DLT_IEEE802``] IEEE 802.5 Token Ring; the IEEE802, without \_5, in the
41
+ #: DLT\_ name is historical.
42
+ IEEE802_5 = 6
43
+
44
+ #: [``DLT_ARCNET``] ARCNET Data Packets, as described by the ARCNET Trade
45
+ #: Association standard ATA 878.1-1999, but without the Starting Delimiter,
46
+ #: Information Length, or Frame Check Sequence fields, and with only the first
47
+ #: ISU of the Destination Identifier. For most packet types, ARCNET Trade
48
+ #: Association draft standard ATA 878.2 is also used. See also RFC 1051 and RFC
49
+ #: 1201; for RFC 1051 frames, ATA 878.2 is not used.
50
+ ARCNET_BSD = 7
51
+
52
+ #: [``DLT_SLIP``] SLIP, with a header giving packet direction
53
+ SLIP = 8
54
+
55
+ #: [``DLT_PPP``] PPP, as per RFC 1661 and RFC 1662; if the first 2 bytes are
56
+ #: 0xff and 0x03, it's PPP in HDLC-like framing, with the PPP header following
57
+ #: those two bytes, otherwise it's PPP without framing, and the packet begins
58
+ #: with the PPP header. The data in the frame is not octet-stuffed or bit-
59
+ #: stuffed.
60
+ PPP = 9
61
+
62
+ #: [``DLT_FDDI``] FDDI, as specified by ANSI INCITS 239-1994.
63
+ FDDI = 10
64
+
65
+ #: [``DLT_REDBACK_SMARTEDGE``] Redback SmartEdge 400/800.
66
+ REDBACK_SMARTEDGE = 32
67
+
68
+ #: [``DLT_PPP_SERIAL``] PPP in HDLC-like framing, as per RFC 1662, or Cisco PPP
69
+ #: with HDLC framing, as per section 4.3.1 of RFC 1547; the first byte will be
70
+ #: 0xFF for PPP in HDLC-like framing, and will be 0x0F or 0x8F for Cisco PPP
71
+ #: with HDLC framing. The data in the frame is not octet-stuffed or bit-
72
+ #: stuffed.
73
+ PPP_HDLC = 50
74
+
75
+ #: [``DLT_PPP_ETHER``] PPPoE; the packet begins with a PPPoE header, as per RFC
76
+ #: 2516.
77
+ PPP_ETHER = 51
78
+
79
+ #: [``DLT_SYMANTEC_FIREWALL``] Symantec Enterprise (ex-Axent Raptor) firewall.
80
+ SYMANTEC_FIREWALL = 99
81
+
82
+ #: [``DLT_ATM_RFC1483``] RFC 1483 LLC/SNAP-encapsulated ATM; the packet begins
83
+ #: with an ISO 8802-2 (formerly known as IEEE 802.2) LLC header.
84
+ ATM_RFC1483 = 100
85
+
86
+ #: [``DLT_RAW``] Raw IP; the packet begins with an IPv4 or IPv6 header, with
87
+ #: the version field of the header indicating whether it's an IPv4 or IPv6
88
+ #: header.
89
+ RAW = 101
90
+
91
+ #: [``DLT_C_HDLC``] Cisco PPP with HDLC framing, as per section 4.3.1 of RFC
92
+ #: 1547.
93
+ C_HDLC = 104
94
+
95
+ #: [``DLT_IEEE802_11``] IEEE 802.11 wireless LAN.
96
+ IEEE802_11 = 105
97
+
98
+ #: [``DLT_ATM_CLIP``] Linux Classical IP over ATM.
99
+ ATM_CLIP = 106
100
+
101
+ #: [``DLT_FRELAY``] Frame Relay LAPF frames, beginning with a ITU-T
102
+ #: Recommendation Q.922 LAPF header starting with the address field, and
103
+ #: without an FCS at the end of the frame.
104
+ FRELAY = 107
105
+
106
+ #: [``DLT_LOOP``] OpenBSD loopback encapsulation.
107
+ LOOP = 108
108
+
109
+ #: [``DLT_ENC``] Encapsulated packets for IPsec.
110
+ ENC = 109
111
+
112
+ #: [``DLT_HDLC``] Cisco HDLC.
113
+ NETBSD_HDLC = 112
114
+
115
+ #: [``DLT_LINUX_SLL``] Linux "cooked" capture encapsulation.
116
+ LINUX_SLL = 113
117
+
118
+ #: [``DLT_LTALK``] Apple LocalTalk; the packet begins with an AppleTalk
119
+ #: LocalTalk Link Access Protocol header, as described in chapter 1 of Inside
120
+ #: AppleTalk, Second Edition.
121
+ LTALK = 114
122
+
123
+ #: [``DLT_ECONET``] Acorn Econet.
124
+ ECONET = 115
125
+
126
+ #: [``DLT_IPFILTER``] OpenBSD ipfilter.
127
+ IPFILTER = 116
128
+
129
+ #: [``DLT_PFLOG``] OpenBSD pflog; the link-layer header contains a struct
130
+ #: pfloghdr structure, as defined by the host on that the file was saved. (This
131
+ #: differs from operating system to operating system and release to release;
132
+ #: there is nothing in the file to indicate what the layout of that structure
133
+ #: is.)
134
+ PFLOG = 117
135
+
136
+ #: [``DLT_CISCO_IOS``] Cisco internal use.
137
+ CISCO_IOS = 118
138
+
139
+ #: [``DLT_PRISM_HEADER``] Prism monitor mode information, followed by an 802.11
140
+ #: frame.
141
+ IEEE802_11_PRISM = 119
142
+
143
+ #: [``DLT_AIRONET_HEADER``] Reserved for Aironet 802.11 cards, with an Aironet
144
+ #: link-layer header.
145
+ AIRONET_HEADER = 120
146
+
147
+ #: [``DLT_IP_OVER_FC``] RFC 2625 IP-over-Fibre Channel, with the link-layer
148
+ #: header being the Network\_Header as described in that RFC.
149
+ IP_OVER_FC = 122
150
+
151
+ #: [``DLT_SUNATM``] ATM traffic captured from a SunATM device.
152
+ SUNATM = 123
153
+
154
+ #: [``DLT_RIO``] RapidIO.
155
+ RIO = 124
156
+
157
+ #: [``DLT_PCI_EXP``] PCI Express.
158
+ PCI_EXP = 125
159
+
160
+ #: [``DLT_AURORA``] Xilinx Aurora.
161
+ AURORA = 126
162
+
163
+ #: [``DLT_IEEE802_11_RADIO``] Radiotap link-layer information followed by an
164
+ #: 802.11 header.
165
+ IEEE802_11_RADIOTAP = 127
166
+
167
+ #: [``DLT_TZSP``] Tazmen Sniffer Protocol (TZSP) is a generic encapsulation for
168
+ #: any other link type, which includes a means to include meta-information with
169
+ #: the packet, e.g. signal strength and channel for 802.11 packets.
170
+ TZSP = 128
171
+
172
+ #: [``DLT_ARCNET_LINUX``] ARCNET Data Packets, as described by the ARCNET Trade
173
+ #: Association standard ATA 878.1-1999, but without the Starting Delimiter,
174
+ #: Information Length, or Frame Check Sequence fields, with only the first ISU
175
+ #: of the Destination Identifier, and with an extra two-ISU offset field
176
+ #: following the Destination Identifier. For most packet types, ARCNET Trade
177
+ #: Association draft standard ATA 878.2 is also used; however, no exception
178
+ #: frames are supplied, and reassembled frames, rather than fragments, are
179
+ #: supplied. See also RFC 1051 and RFC 1201; for RFC 1051 frames, ATA 878.2 is
180
+ #: not used.
181
+ ARCNET_LINUX = 129
182
+
183
+ #: [``DLT_JUNIPER_MLPPP``] Juniper Networks private data link type.
184
+ JUNIPER_MLPPP = 130
185
+
186
+ #: [``DLT_JUNIPER_MLFR``] Juniper Networks private data link type.
187
+ JUNIPER_MLFR = 131
188
+
189
+ #: [``DLT_JUNIPER_ES``] Juniper Networks private data link type.
190
+ JUNIPER_ES = 132
191
+
192
+ #: [``DLT_JUNIPER_GGSN``] Juniper Networks private data link type.
193
+ JUNIPER_GGSN = 133
194
+
195
+ #: [``DLT_JUNIPER_MFR``] Juniper Networks private data link type.
196
+ JUNIPER_MFR = 134
197
+
198
+ #: [``DLT_JUNIPER_ATM2``] Juniper Networks private data link type.
199
+ JUNIPER_ATM2 = 135
200
+
201
+ #: [``DLT_JUNIPER_SERVICES``] Juniper Networks private data link type.
202
+ JUNIPER_SERVICES = 136
203
+
204
+ #: [``DLT_JUNIPER_ATM1``] Juniper Networks private data link type.
205
+ JUNIPER_ATM1 = 137
206
+
207
+ #: [``DLT_APPLE_IP_OVER_IEEE1394``] Apple IP-over-IEEE 1394 cooked header.
208
+ APPLE_IP_OVER_IEEE1394 = 138
209
+
210
+ #: [``DLT_MTP2_WITH_PHDR``] Signaling System 7 Message Transfer Part Level 2,
211
+ #: as specified by ITU-T Recommendation Q.703, preceded by a pseudo-header.
212
+ MTP2_WITH_PHDR = 139
213
+
214
+ #: [``DLT_MTP2``] Signaling System 7 Message Transfer Part Level 2, as
215
+ #: specified by ITU-T Recommendation Q.703.
216
+ MTP2 = 140
217
+
218
+ #: [``DLT_MTP3``] Signaling System 7 Message Transfer Part Level 3, as
219
+ #: specified by ITU-T Recommendation Q.704, with no MTP2 header preceding the
220
+ #: MTP3 packet.
221
+ MTP3 = 141
222
+
223
+ #: [``DLT_SCCP``] Signaling System 7 Signalling Connection Control Part, as
224
+ #: specified by ITU-T Recommendation Q.711, ITU-T Recommendation Q.712, ITU-T
225
+ #: Recommendation Q.713, and ITU-T Recommendation Q.714, with no MTP3 or MTP2
226
+ #: headers preceding the SCCP packet.
227
+ SCCP = 142
228
+
229
+ #: [``DLT_DOCSIS``] DOCSIS MAC frames, as described by the DOCSIS 4.0 MAC and
230
+ #: Upper Layer Protocols Interface Specification or earlier specifications for
231
+ #: MAC frames.
232
+ DOCSIS = 143
233
+
234
+ #: [``DLT_LINUX_IRDA``] Linux-IrDA packets
235
+ LINUX_IRDA = 144
236
+
237
+ #: [``DLT_IBM_SP``] IBM SP switch.
238
+ IBM_SP = 145
239
+
240
+ #: [``DLT_IBM_SN``] IBM Next Federation switch.
241
+ IBM_SN = 146
242
+
243
+ #: [``DLT_USER0``] Reserved for private use; see above.
244
+ USER0 = 147
245
+
246
+ #: [``DLT_USER1``] Reserved for private use; see above.
247
+ USER1 = 148
248
+
249
+ #: [``DLT_USER2``] Reserved for private use; see above.
250
+ USER2 = 149
251
+
252
+ #: [``DLT_USER3``] Reserved for private use; see above.
253
+ USER3 = 150
254
+
255
+ #: [``DLT_USER4``] Reserved for private use; see above.
256
+ USER4 = 151
257
+
258
+ #: [``DLT_USER5``] Reserved for private use; see above.
259
+ USER5 = 152
260
+
261
+ #: [``DLT_USER6``] Reserved for private use; see above.
262
+ USER6 = 153
263
+
264
+ #: [``DLT_USER7``] Reserved for private use; see above.
265
+ USER7 = 154
266
+
267
+ #: [``DLT_USER8``] Reserved for private use; see above.
268
+ USER8 = 155
269
+
270
+ #: [``DLT_USER9``] Reserved for private use; see above.
271
+ USER9 = 156
272
+
273
+ #: [``DLT_USER10``] Reserved for private use; see above.
274
+ USER10 = 157
275
+
276
+ #: [``DLT_USER11``] Reserved for private use; see above.
277
+ USER11 = 158
278
+
279
+ #: [``DLT_USER12``] Reserved for private use; see above.
280
+ USER12 = 159
281
+
282
+ #: [``DLT_USER13``] Reserved for private use; see above.
283
+ USER13 = 160
284
+
285
+ #: [``DLT_USER14``] Reserved for private use; see above.
286
+ USER14 = 161
287
+
288
+ #: [``DLT_USER15``] Reserved for private use; see above.
289
+ USER15 = 162
290
+
291
+ #: [``DLT_IEEE802_11_RADIO_AVS``] AVS monitor mode information followed by an
292
+ #: 802.11 header.
293
+ IEEE802_11_AVS = 163
294
+
295
+ #: [``DLT_JUNIPER_MONITOR``] Juniper Networks private data link type.
296
+ JUNIPER_MONITOR = 164
297
+
298
+ #: [``DLT_BACNET_MS_TP``] BACnet MS/TP frames, as specified by section 9.3
299
+ #: MS/TP Frame Format of ANSI/ASHRAE Standard 135, BACnet® - A Data
300
+ #: Communication Protocol for Building Automation and Control Networks,
301
+ #: including the preamble and, if present, the Data CRC.
302
+ BACNET_MS_TP = 165
303
+
304
+ #: [``DLT_PPP_PPPD``] PPP in HDLC-like encapsulation, like LINKTYPE\_PPP\_HDLC,
305
+ #: but with the 0xff address byte replaced by a direction indication—0x00 for
306
+ #: incoming and 0x01 for outgoing.
307
+ PPP_PPPD = 166
308
+
309
+ #: [``DLT_JUNIPER_PPPOE``] Juniper Networks private data link type.
310
+ JUNIPER_PPPOE = 167
311
+
312
+ #: [``DLT_JUNIPER_PPPOE_ATM``] Juniper Networks private data link type.
313
+ JUNIPER_PPPOE_ATM = 168
314
+
315
+ #: [``DLT_GPRS_LLC``] General Packet Radio Service Logical Link Control, as
316
+ #: defined by 3GPP TS 04.64.
317
+ GPRS_LLC = 169
318
+
319
+ #: [``DLT_GPF_T``] Transparent-mapped generic framing procedure, as specified
320
+ #: by ITU-T Recommendation G.7041/Y.1303.
321
+ GPF_T = 170
322
+
323
+ #: [``DLT_GPF_F``] Frame-mapped generic framing procedure, as specified by
324
+ #: ITU-T Recommendation G.7041/Y.1303.
325
+ GPF_F = 171
326
+
327
+ #: [``DLT_GCOM_T1E1``] Gcom's T1/E1 line monitoring equipment.
328
+ GCOM_T1E1 = 172
329
+
330
+ #: [``DLT_GCOM_SERIAL``] Gcom's T1/E1 line monitoring equipment.
331
+ GCOM_SERIAL = 173
332
+
333
+ #: [``DLT_JUNIPER_PIC_PEER``] Juniper Networks private data link type.
334
+ JUNIPER_PIC_PEER = 174
335
+
336
+ #: [``DLT_ERF_ETH``] An ERF header followed by Ethernet.
337
+ ERF_ETH = 175
338
+
339
+ #: [``DLT_ERF_POS``] An ERF header followed by Packet-over-SONET.
340
+ ERF_POS = 176
341
+
342
+ #: [``DLT_LINUX_LAPD``] Linux vISDN LAPD frames
343
+ LINUX_LAPD = 177
344
+
345
+ #: [``DLT_JUNIPER_ETHER``] Juniper Networks private data link type. Ethernet
346
+ #: frames prepended with meta-information.
347
+ JUNIPER_ETHER = 178
348
+
349
+ #: [``DLT_JUNIPER_PPP``] Juniper Networks private data link type. PPP frames
350
+ #: prepended with meta-information.
351
+ JUNIPER_PPP = 179
352
+
353
+ #: [``DLT_JUNIPER_FRELAY``] Juniper Networks private data link type. Frame
354
+ #: Relay frames prepended with meta-information.
355
+ JUNIPER_FRELAY = 180
356
+
357
+ #: [``DLT_JUNIPER_CHDLC``] Juniper Networks private data link type. C-HDLC
358
+ #: frames prepended with meta-information.
359
+ JUNIPER_CHDLC = 181
360
+
361
+ #: [``DLT_MFR``] FRF.16.1 Multi-Link Frame Relay frames, beginning with an
362
+ #: FRF.12 Interface fragmentation format fragmentation header.
363
+ MFR = 182
364
+
365
+ #: [``DLT_JUNIPER_VP``] Juniper Networks private data link type.
366
+ JUNIPER_VP = 183
367
+
368
+ #: [``DLT_A429``] ARINC 429 frames. Every frame contains a 32-bit A429 word, in
369
+ #: little-endian format.
370
+ A429 = 184
371
+
372
+ #: [``DLT_A653_ICM``] ARINC 653 interpartition communication messages. Please
373
+ #: refer to the A653-1 standard for more information.
374
+ A653_ICM = 185
375
+
376
+ #: [``DLT_USB_FREEBSD``] USB with FreeBSD header.
377
+ USB_FREEBSD = 186
378
+
379
+ #: [``DLT_BLUETOOTH_HCI_H4``] Bluetooth HCI UART transport layer; the frame
380
+ #: contains an HCI packet indicator byte, as specified by the UART Transport
381
+ #: Layer portion of the most recent Bluetooth Core specification, followed by
382
+ #: an HCI packet of the specified packet type, as specified by the Host
383
+ #: Controller Interface Functional Specification portion of the most recent
384
+ #: Bluetooth Core Specification.
385
+ BLUETOOTH_HCI_H4 = 187
386
+
387
+ #: [``DLT_IEEE802_16_MAC_CPS``] IEEE 802.16 MAC Common Part Sublayer.
388
+ IEEE802_16_MAC_CPS = 188
389
+
390
+ #: [``DLT_USB_LINUX``] USB packets, beginning with a Linux USB header, as
391
+ #: specified by the struct usbmon\_packet in the Documentation/usb/usbmon.txt
392
+ #: file in the Linux source tree. Only the first 48 bytes of that header are
393
+ #: present. All fields in the header are in host byte order. When performing a
394
+ #: live capture, the host byte order is the byte order of the machine on that
395
+ #: the packets are captured. When reading a pcap file, the byte order is the
396
+ #: byte order for the file, as specified by the file's magic number; when
397
+ #: reading a pcapng file, the byte order is the byte order for the section of
398
+ #: the pcapng file, as specified by the Section Header Block.
399
+ USB_LINUX = 189
400
+
401
+ #: [``DLT_CAN20B``] Controller Area Network (CAN) v. 2.0B.
402
+ CAN20B = 190
403
+
404
+ #: [``DLT_IEEE802_15_4_LINUX``] IEEE 802.15.4, with address fields padded, as
405
+ #: is done by Linux drivers.
406
+ IEEE802_15_4_LINUX = 191
407
+
408
+ #: [``DLT_PPI``] Per-Packet Information information, as specified by the Per-
409
+ #: Packet Information Header Specification, followed by a packet with the
410
+ #: LINKTYPE\_ value specified by the pph\_dlt field of that header.
411
+ PPI = 192
412
+
413
+ #: [``DLT_IEEE802_16_MAC_CPS_RADIO``] IEEE 802.16 MAC Common Part Sublayer plus
414
+ #: radiotap header.
415
+ IEEE802_16_MAC_CPS_RADIO = 193
416
+
417
+ #: [``DLT_JUNIPER_ISM``] Juniper Networks private data link type.
418
+ JUNIPER_ISM = 194
419
+
420
+ #: [``DLT_IEEE802_15_4_WITHFCS``] IEEE 802.15.4 Low-Rate Wireless Networks,
421
+ #: with each packet having the FCS at the end of the frame.
422
+ IEEE802_15_4_WITHFCS = 195
423
+
424
+ #: [``DLT_SITA``] Various link-layer types, with a pseudo-header, for SITA.
425
+ SITA = 196
426
+
427
+ #: [``DLT_ERF``] Various link-layer types, with a pseudo-header, for Endace DAG
428
+ #: cards; encapsulates Endace ERF records.
429
+ ERF = 197
430
+
431
+ #: [``DLT_RAIF1``] Special header prepended to Ethernet packets when capturing
432
+ #: from a u10 Networks board.
433
+ RAIF1 = 198
434
+
435
+ #: [``DLT_IPMB_KONTRON``] IPMB packet for IPMI, beginning with a 2-byte header,
436
+ #: followed by the I2C slave address, followed by the netFn and LUN, etc…
437
+ IPMB_KONTRON = 199
438
+
439
+ #: [``DLT_JUNIPER_ST``] Juniper Networks private data link type.
440
+ JUNIPER_ST = 200
441
+
442
+ #: [``DLT_BLUETOOTH_HCI_H4_WITH_PHDR``] Bluetooth HCI UART transport layer; the
443
+ #: frame contains a 4-byte direction field, in network byte order (big-endian),
444
+ #: the low-order bit of which is set if the frame was sent from the host to the
445
+ #: controller and clear if the frame was received by the host from the
446
+ #: controller, followed by an HCI packet indicator byte, as specified by the
447
+ #: UART Transport Layer portion of the most recent Bluetooth Core
448
+ #: specification, followed by an HCI packet of the specified packet type, as
449
+ #: specified by the Host Controller Interface Functional Specification portion
450
+ #: of the most recent Bluetooth Core Specification.
451
+ BLUETOOTH_HCI_H4_WITH_PHDR = 201
452
+
453
+ #: [``DLT_AX25_KISS``] AX.25 packet, with a 1-byte KISS header containing a
454
+ #: type indicator.
455
+ AX25_KISS = 202
456
+
457
+ #: [``DLT_LAPD``] Link Access Procedures on the D Channel (LAPD) frames, as
458
+ #: specified by ITU-T Recommendation Q.920 and ITU-T Recommendation Q.921,
459
+ #: starting with the address field, with no pseudo-header.
460
+ LAPD = 203
461
+
462
+ #: [``DLT_PPP_WITH_DIR``] PPP, as per RFC 1661 and RFC 1662, preceded with a
463
+ #: one-byte pseudo-header with a zero value meaning "received by this host" and
464
+ #: a non-zero value meaning "sent by this host"; if the first 2 bytes are 0xff
465
+ #: and 0x03, it's PPP in HDLC-like framing, with the PPP header following those
466
+ #: two bytes, otherwise it's PPP without framing, and the packet begins with
467
+ #: the PPP header. The data in the frame is not octet-stuffed or bit-stuffed.
468
+ PPP_WITH_DIR = 204
469
+
470
+ #: [``DLT_C_HDLC_WITH_DIR``] Cisco PPP with HDLC framing, as per section 4.3.1
471
+ #: of RFC 1547, preceded with a one-byte pseudo-header with a zero value
472
+ #: meaning "received by this host" and a non-zero value meaning "sent by this
473
+ #: host".
474
+ C_HDLC_WITH_DIR = 205
475
+
476
+ #: [``DLT_FRELAY_WITH_DIR``] Frame Relay LAPF frames, beginning with a one-byte
477
+ #: pseudo-header with a zero value meaning "received by this host" (DCE⇒DTE)
478
+ #: and a non-zero value meaning "sent by this host" (DTE⇒DCE), followed by an
479
+ #: ITU-T Recommendation Q.922 LAPF header starting with the address field, and
480
+ #: without an FCS at the end of the frame.
481
+ FRELAY_WITH_DIR = 206
482
+
483
+ #: [``DLT_LAPB_WITH_DIR``] Link Access Procedure, Balanced (LAPB), as specified
484
+ #: by ITU-T Recommendation X.25, preceded with a one-byte pseudo-header with a
485
+ #: zero value meaning "received by this host" (DCE⇒DTE) and a non-zero value
486
+ #: meaning "sent by this host" (DTE⇒DCE).
487
+ LAPB_WITH_DIR = 207
488
+
489
+ #: [``DLT_IPMB_LINUX``] Legacy names (do not use) for Linux I2C below.
490
+ IPMB_LINUX = 209
491
+
492
+ #: [``DLT_I2C_LINUX``] Linux I2C packets.
493
+ I2C_LINUX = 209
494
+
495
+ #: [``DLT_FLEXRAY``] FlexRay automotive bus frames or symbols, preceded by a
496
+ #: pseudo-header
497
+ FLEXRAY = 210
498
+
499
+ #: [``DLT_MOST``] Media Oriented Systems Transport (MOST) bus for multimedia
500
+ #: transport.
501
+ MOST = 211
502
+
503
+ #: [``DLT_LIN``] Local Interconnect Network (LIN) automotive bus, preceded by a
504
+ #: pseudo-header
505
+ LIN = 212
506
+
507
+ #: [``DLT_X2E_SERIAL``] X2E-private data link type used for serial line
508
+ #: capture.
509
+ X2E_SERIAL = 213
510
+
511
+ #: [``DLT_X2E_XORAYA``] X2E-private data link type used for the Xoraya data
512
+ #: logger family.
513
+ X2E_XORAYA = 214
514
+
515
+ #: [``DLT_IEEE802_15_4_NONASK_PHY``] IEEE 802.15.4 Low-Rate Wireless Networks,
516
+ #: with each packet having the FCS at the end of the frame, and with the PHY-
517
+ #: level data for the O-QPSK, BPSK, GFSK, MSK, and RCC DSS BPSK PHYs (4 octets
518
+ #: of 0 as preamble, one octet of SFD, one octet of frame length + reserved
519
+ #: bit) preceding the MAC-layer data (starting with the frame control field).
520
+ IEEE802_15_4_NONASK_PHY = 215
521
+
522
+ #: [``DLT_LINUX_EVDEV``] Linux evdev events from /dev/input/eventN devices.
523
+ LINUX_EVDEV = 216
524
+
525
+ #: [``DLT_GSMTAP_UM``] GSM Um interface, preceded by a "gsmtap" header.
526
+ GSMTAP_UM = 217
527
+
528
+ #: [``DLT_GSMTAP_ABIS``] GSM Abis interface, preceded by a "gsmtap" header.
529
+ GSMTAP_ABIS = 218
530
+
531
+ #: [``DLT_MPLS``] MPLS, with an MPLS label as the link-layer header.
532
+ MPLS = 219
533
+
534
+ #: [``DLT_USB_LINUX_MMAPPED``] USB packets, beginning with a Linux USB header,
535
+ #: as specified by the struct usbmon\_packet in the
536
+ #: Documentation/usb/usbmon.txt file in the Linux source tree. All 64 bytes of
537
+ #: the header are present. All fields in the header are in host byte order.
538
+ #: When performing a live capture, the host byte order is the byte order of the
539
+ #: machine on that the packets are captured. When reading a pcap file, the byte
540
+ #: order is the byte order for the file, as specified by the file's magic
541
+ #: number; when reading a pcapng file, the byte order is the byte order for the
542
+ #: section of the pcapng file, as specified by the Section Header Block. For
543
+ #: isochronous transfers, the ndesc field specifies the number of isochronous
544
+ #: descriptors that follow.
545
+ USB_LINUX_MMAPPED = 220
546
+
547
+ #: [``DLT_DECT``] DECT packets, with a pseudo-header.
548
+ DECT = 221
549
+
550
+ #: [``DLT_AOS``] AOS Space Data Link Protocol.
551
+ AOS = 222
552
+
553
+ #: [``DLT_WIHART``] WirelessHART (Highway Addressable Remote Transducer) from
554
+ #: the HART Communication Foundation (IEC/PAS 62591).
555
+ WIHART = 223
556
+
557
+ #: [``DLT_FC_2``] Fibre Channel FC-2 frames, beginning with a Frame\_Header.
558
+ FC_2 = 224
559
+
560
+ #: [``DLT_FC_2_WITH_FRAME_DELIMS``] Fibre Channel FC-2 frames, beginning an
561
+ #: encoding of the SOF, followed by a Frame\_Header, and ending with an
562
+ #: encoding of the SOF. The encodings represent the frame delimiters as 4-byte
563
+ #: sequences representing the corresponding ordered sets, with K28.5
564
+ #: represented as 0xBC, and the D symbols as the corresponding byte values; for
565
+ #: example, SOFi2, which is K28.5 - D21.5 - D1.2 - D21.2, is represented as
566
+ #: 0xBC 0xB5 0x55 0x55.
567
+ FC_2_WITH_FRAME_DELIMS = 225
568
+
569
+ #: [``DLT_IPNET``] Solaris ipnet
570
+ IPNET = 226
571
+
572
+ #: [``DLT_CAN_SOCKETCAN``] CAN (Controller Area Network) frames, with a pseudo-
573
+ #: header followed by the frame payload.
574
+ CAN_SOCKETCAN = 227
575
+
576
+ #: [``DLT_IPV4``] Raw IPv4; the packet begins with an IPv4 header.
577
+ IPV4 = 228
578
+
579
+ #: [``DLT_IPV6``] Raw IPv6; the packet begins with an IPv6 header.
580
+ IPV6 = 229
581
+
582
+ #: [``DLT_IEEE802_15_4_NOFCS``] IEEE 802.15.4 Low-Rate Wireless Network,
583
+ #: without the FCS at the end of the frame.
584
+ IEEE802_15_4_NOFCS = 230
585
+
586
+ #: [``DLT_DBUS``] Raw D-Bus messages, starting with the endianness flag,
587
+ #: followed by the message type, etc., but without the authentication handshake
588
+ #: before the message sequence.
589
+ DBUS = 231
590
+
591
+ #: [``DLT_JUNIPER_VS``] Juniper Networks private data link type.
592
+ JUNIPER_VS = 232
593
+
594
+ #: [``DLT_JUNIPER_SRX_E2E``] Juniper Networks private data link type.
595
+ JUNIPER_SRX_E2E = 233
596
+
597
+ #: [``DLT_JUNIPER_FIBRECHANNEL``] Juniper Networks private data link type.
598
+ JUNIPER_FIBRECHANNEL = 234
599
+
600
+ #: [``DLT_DVB_CI``] DVB-CI messages, with the message format specified by the
601
+ #: PCAP format for DVB-CI specification.
602
+ DVB_CI = 235
603
+
604
+ #: [``DLT_MUX27010``] Variant of 3GPP TS 27.010 multiplexing protocol (similar
605
+ #: to, but not the same as, 27.010).
606
+ MUX27010 = 236
607
+
608
+ #: [``DLT_STANAG_5066_D_PDU``] D\_PDUs as described by NATO standard STANAG
609
+ #: 5066, starting with the synchronization sequence, and including both header
610
+ #: and data CRCs. The current version of STANAG 5066 is backwards-compatible
611
+ #: with the 1.0.2 version, although newer versions are classified.
612
+ STANAG_5066_D_PDU = 237
613
+
614
+ #: [``DLT_JUNIPER_ATM_CEMIC``] Juniper Networks private data link type.
615
+ JUNIPER_ATM_CEMIC = 238
616
+
617
+ #: [``DLT_NFLOG``] Linux netlink NETLINK NFLOG socket log messages.
618
+ NFLOG = 239
619
+
620
+ #: [``DLT_NETANALYZER``] Ethernet frames, preceded by a Hilscher netANALYZER
621
+ #: pseudo-header.
622
+ NETANALYZER = 240
623
+
624
+ #: [``DLT_NETANALYZER_TRANSPARENT``] Ethernet frames, including the preamble
625
+ #: and SFD, preceded by a Hilscher netANALYZER pseudo-header.
626
+ NETANALYZER_TRANSPARENT = 241
627
+
628
+ #: [``DLT_IPOIB``] IP-over-InfiniBand, as specified by RFC 4391 section 6.
629
+ IPOIB = 242
630
+
631
+ #: [``DLT_MPEG_2_TS``] MPEG-2 Transport Stream transport packets, as specified
632
+ #: by ISO 13818-1/ITU-T Recommendation H.222.0 (see table 2-2 of section
633
+ #: 2.4.3.2 "Transport Stream packet layer").
634
+ MPEG_2_TS = 243
635
+
636
+ #: [``DLT_NG40``] Frames from ng4T GmbH's ng40 protocol tester.
637
+ NG40 = 244
638
+
639
+ #: [``DLT_NFC_LLCP``] NFC Logical Link Control Protocol frames, with a pseudo-
640
+ #: header.
641
+ NFC_LLCP = 245
642
+
643
+ #: Packet filter state syncing.
644
+ PFSYNC = 246
645
+
646
+ #: [``DLT_INFINIBAND``] Raw InfiniBand frames, starting with the Local Routing
647
+ #: Header, as specified in Chapter 5 "Data packet format" of InfiniBand™
648
+ #: Architecture Specification Release 1.2.1 Volume 1 - General Specifications.
649
+ INFINIBAND = 247
650
+
651
+ #: [``DLT_SCTP``] SCTP packets, as defined by RFC 4960, with no lower-level
652
+ #: protocols such as IPv4 or IPv6.
653
+ SCTP = 248
654
+
655
+ #: [``DLT_USBPCAP``] USB packets, beginning with a USBPcap header.
656
+ USBPCAP = 249
657
+
658
+ #: [``DLT_RTAC_SERIAL``] Serial-line packets from the Schweitzer Engineering
659
+ #: Laboratories "RTAC" product.
660
+ RTAC_SERIAL = 250
661
+
662
+ #: [``DLT_BLUETOOTH_LE_LL``] Bluetooth Low Energy air interface Link Layer
663
+ #: packets, in the format described in section 2.1 "PACKET FORMAT" of volume 6
664
+ #: of the Bluetooth Specification Version 4.0 (see PDF page 2200), but without
665
+ #: the Preamble.
666
+ BLUETOOTH_LE_LL = 251
667
+
668
+ #: [``DLT_WIRESHARK_UPPER_PDU``] Upper-protocol layer PDU saves from Wireshark;
669
+ #: the actual contents are determined by two tags, one or more of which is
670
+ #: stored with each packet.
671
+ WIRESHARK_UPPER_PDU = 252
672
+
673
+ #: [``DLT_NETLINK``] Linux Netlink capture encapsulation.
674
+ NETLINK = 253
675
+
676
+ #: [``DLT_BLUETOOTH_LINUX_MONITOR``] Bluetooth Linux Monitor encapsulation of
677
+ #: traffic for the BlueZ stack.
678
+ BLUETOOTH_LINUX_MONITOR = 254
679
+
680
+ #: [``DLT_BLUETOOTH_BREDR_BB``] Bluetooth Basic Rate and Enhanced Data Rate
681
+ #: baseband packets.
682
+ BLUETOOTH_BREDR_BB = 255
683
+
684
+ #: [``DLT_BLUETOOTH_LE_LL_WITH_PHDR``] Bluetooth Low Energy link-layer packets.
685
+ BLUETOOTH_LE_LL_WITH_PHDR = 256
686
+
687
+ #: [``DLT_PROFIBUS_DL``] PROFIBUS data link layer packets, as specified by IEC
688
+ #: standard 61158-4-3, beginning with the start delimiter, ending with the end
689
+ #: delimiter, and including all octets between them.
690
+ PROFIBUS_DL = 257
691
+
692
+ #: [``DLT_PKTAP``] Apple PKTAP capture encapsulation.
693
+ PKTAP = 258
694
+
695
+ #: [``DLT_EPON``] Ethernet-over-passive-optical-network packets, starting with
696
+ #: the last 6 octets of the modified preamble as specified by 65.1.3.2
697
+ #: "Transmit" in Clause 65 of Section 5 of IEEE 802.3, followed immediately by
698
+ #: an Ethernet frame.
699
+ EPON = 259
700
+
701
+ #: [``DLT_IPMI_HPM_2``] IPMI trace packets, as specified by Table 3-20 "Trace
702
+ #: Data Block Format" in the PICMG HPM.2 specification. The time stamps for
703
+ #: packets in this format must match the time stamps in the Trace Data Blocks.
704
+ IPMI_HPM_2 = 260
705
+
706
+ #: [``DLT_ZWAVE_R1_R2``] Z-Wave RF profile R1 and R2 packets, as specified by
707
+ #: ITU-T Recommendation G.9959, with some MAC layer fields moved.
708
+ ZWAVE_R1_R2 = 261
709
+
710
+ #: [``DLT_ZWAVE_R3``] Z-Wave RF profile R3 packets, as specified by ITU-T
711
+ #: Recommendation G.9959, with some MAC layer fields moved.
712
+ ZWAVE_R3 = 262
713
+
714
+ #: [``DLT_WATTSTOPPER_DLM``] WattStopper Digital Lighting Management (DLM) and
715
+ #: Legrand Nitoo Open protocol packets.
716
+ WATTSTOPPER_DLM = 263
717
+
718
+ #: [``DLT_ISO_14443``] Messages between ISO 14443 contactless smartcards
719
+ #: (Proximity Integrated Circuit Card, PICC) and card readers (Proximity
720
+ #: Coupling Device, PCD), with the message format specified by the PCAP format
721
+ #: for ISO14443 specification.
722
+ ISO_14443 = 264
723
+
724
+ #: [``DLT_RDS``] IEC 62106 Radio data system (RDS) groups.
725
+ RDS = 265
726
+
727
+ #: [``DLT_USB_DARWIN``] USB packets captured on a Darwin-based operating system
728
+ #: (macOS, etc.).
729
+ USB_DARWIN = 266
730
+
731
+ #: [``DLT_OPENFLOW``] OpenFlow messages with an additional 12-octet header, as
732
+ #: used in OpenBSD switch interface monitoring.
733
+ OPENFLOW = 267
734
+
735
+ #: [``DLT_SDLC``] SDLC packets, as specified by Chapter 1, "DLC Links", section
736
+ #: "Synchronous Data Link Control (SDLC)" of Systems Network Architecture
737
+ #: Formats, GA27-3136-20, without the flag fields, zero-bit insertion, or Frame
738
+ #: Check Sequence field, containing SNA path information units (PIUs) as the
739
+ #: payload.
740
+ SDLC = 268
741
+
742
+ #: [``DLT_TI_LLN_SNIFFER``] TI LLN sniffer frames.
743
+ TI_LLN_SNIFFER = 269
744
+
745
+ #: [``DLT_LORATAP``] LoRaTap pseudo-header, followed by the payload, which is
746
+ #: typically the PHYPayload from the LoRaWan specification.
747
+ LORATAP = 270
748
+
749
+ #: [``DLT_VSOCK``] Protocol for communication between host and guest machines
750
+ #: in VMware and KVM hypervisors.
751
+ VSOCK = 271
752
+
753
+ #: [``DLT_NORDIC_BLE``] Messages to and from a Nordic Semiconductor nRF Sniffer
754
+ #: for Bluetooth LE packets.
755
+ NORDIC_BLE = 272
756
+
757
+ #: [``DLT_DOCSIS31_XRA31``] DOCSIS packets and bursts, preceded by a pseudo-
758
+ #: header giving metadata about the packet.
759
+ DOCSIS31_XRA31 = 273
760
+
761
+ #: [``DLT_ETHERNET_MPACKET``] mPackets, as specified by IEEE 802.3br Figure
762
+ #: 99-4, starting with the preamble and always ending with a CRC field.
763
+ ETHERNET_MPACKET = 274
764
+
765
+ #: [``DLT_DISPLAYPORT_AUX``] DisplayPort AUX channel monitoring messages.
766
+ DISPLAYPORT_AUX = 275
767
+
768
+ #: [``DLT_LINUX_SLL2``] Linux "cooked" capture encapsulation v2.
769
+ LINUX_SLL2 = 276
770
+
771
+ #: [``DLT_SERCOS_MONITOR``] Sercos Monitor.
772
+ SERCOS_MONITOR = 277
773
+
774
+ #: [``DLT_OPENVIZSLA``] OpenVizsla FPGA-based USB sniffer frames.
775
+ OPENVIZSLA = 278
776
+
777
+ #: [``DLT_EBHSCR``] Elektrobit High Speed Capture and Replay (EBHSCR) format.
778
+ EBHSCR = 279
779
+
780
+ #: [``DLT_VPP_DISPATCH``] Records in traces from the http://fd.io VPP graph
781
+ #: dispatch tracer, in the the graph dispatcher trace format.
782
+ VPP_DISPATCH = 280
783
+
784
+ #: [``DLT_DSA_TAG_BRCM``] Ethernet frames, with a Broadcom switch tag inserted.
785
+ DSA_TAG_BRCM = 281
786
+
787
+ #: [``DLT_DSA_TAG_BRCM_PREPEND``] Ethernet frames, with a Broadcom switch tag
788
+ #: prepended.
789
+ DSA_TAG_BRCM_PREPEND = 282
790
+
791
+ #: [``DLT_IEEE802_15_4_TAP``] IEEE 802.15.4 Low-Rate Wireless Networks, with a
792
+ #: pseudo-header containing TLVs with metadata preceding the 802.15.4 header.
793
+ IEEE802_15_4_TAP = 283
794
+
795
+ #: [``DLT_DSA_TAG_DSA``] Ethernet frames, with a Marvell DSA switch tag
796
+ #: inserted.
797
+ DSA_TAG_DSA = 284
798
+
799
+ #: [``DLT_DSA_TAG_EDSA``] Ethernet frames, with a Marvell EDSA switch tag
800
+ #: inserted.
801
+ DSA_TAG_EDSA = 285
802
+
803
+ #: [``DLT_ELEE``] Payload of lawful intercept packets using the ELEE protocol.
804
+ #: The packet begins with the ELEE header; it does not include any transport-
805
+ #: layer or lower-layer headers for protocols used to transport ELEE packets.
806
+ ELEE = 286
807
+
808
+ #: [``DLT_Z_WAVE_SERIAL``] Serial frames transmitted between a host and a
809
+ #: Z-Wave chip over an RS-232 or USB serial connection, as described in section
810
+ #: 5 of the Z-Wave Serial API Host Application Programming Guide.
811
+ Z_WAVE_SERIAL = 287
812
+
813
+ #: [``DLT_USB_2_0``] USB 2.0, 1.1, or 1.0 packet, beginning with a PID, as
814
+ #: described by Chapter 8 "Protocol Layer" of the the Universal Serial Bus
815
+ #: Specification Revision 2.0. Deprecated in favor of speed specific USB 2.0,
816
+ #: 1.1, or 1.0 linktypes.
817
+ USB_2_0 = 288
818
+
819
+ #: [``DLT_ATSC_ALP``] ATSC Link-Layer Protocol frames, as described in section
820
+ #: 5 of the A/330 Link-Layer Protocol specification, found at the ATSC 3.0
821
+ #: standards page, beginning with a Base Header.
822
+ ATSC_ALP = 289
823
+
824
+ #: [``DLT_ETW``] Event Tracing for Windows messages.
825
+ ETW = 290
826
+
827
+ #: [``DLT_NETANALYZER_NG``] Reserved for Hilscher Gesellschaft fuer
828
+ #: Systemautomation mbH netANALYZER NG hardware and software.
829
+ NETANALYZER_NG = 291
830
+
831
+ #: [``DLT_ZBOSS_NCP``] ZBOSS NCP Serial Protocol, with a pseudo-header.
832
+ ZBOSS_NCP = 292
833
+
834
+ #: [``DLT_USB_2_0_LOW_SPEED``] Low-Speed USB 2.0, 1.1, or 1.0 packet, beginning
835
+ #: with a PID, as described by Chapter 8 "Protocol Layer" of the the Universal
836
+ #: Serial Bus Specification Revision 2.0.
837
+ USB_2_0_LOW_SPEED = 293
838
+
839
+ #: [``DLT_USB_2_0_FULL_SPEED``] Full-Speed USB 2.0, 1.1, or 1.0 packet,
840
+ #: beginning with a PID, as described by Chapter 8 "Protocol Layer" of the the
841
+ #: Universal Serial Bus Specification Revision 2.0.
842
+ USB_2_0_FULL_SPEED = 294
843
+
844
+ #: [``DLT_USB_2_0_HIGH_SPEED``] High-Speed USB 2.0 packet, beginning with a
845
+ #: PID, as described by Chapter 8 "Protocol Layer" of the the Universal Serial
846
+ #: Bus Specification Revision 2.0.
847
+ USB_2_0_HIGH_SPEED = 295
848
+
849
+ #: [``DLT_AUERSWALD_LOG``] Auerswald Logger Protocol, as described in this
850
+ #: document.
851
+ AUERSWALD_LOG = 296
852
+
853
+ #: [``DLT_ZWAVE_TAP``] Z-Wave packets, as specified by ITU-T Recommendation
854
+ #: G.9959, with a TAP meta-data header.
855
+ ZWAVE_TAP = 297
856
+
857
+ #: [``DLT_SILABS_DEBUG_CHANNEL``] Silicon Labs debug channel protocol, as
858
+ #: described in the specification.
859
+ SILABS_DEBUG_CHANNEL = 298
860
+
861
+ #: [``DLT_FIRA_UCI``] Ultra-wideband (UWB) controller interface protocol (UCI).
862
+ FIRA_UCI = 299
863
+
864
+ #: [``DLT_MDB``] MDB (Multi-Drop Bus) protocol between a vending machine
865
+ #: controller and peripherals inside the vending machine, with the message
866
+ #: format specified by the PCAP format for MDB specification.
867
+ MDB = 300
868
+
869
+ #: [``DLT_DECT_NR``] DECT-2020 New Radio (NR) MAC layer specified in ETSI TS
870
+ #: 103 636-4. The Physical Header Field is always encoded using 80 bits (10
871
+ #: bytes). Broadcast transmissions using 40 bits (5 bytes) is padded with 40
872
+ #: zero bits (5 bytes). When padding is used the Receiver Identity value 0x0000
873
+ #: (reserved address) is used to detect broadcast transmissions.
874
+ DECT_NR = 301
875
+
876
+ @staticmethod
877
+ def get(key: 'int | str', default: 'int' = -1) -> 'LinkType':
878
+ """Backport support for original codes.
879
+
880
+ Args:
881
+ key: Key to get enum item.
882
+ default: Default value if not found.
883
+
884
+ :meta private:
885
+ """
886
+ if isinstance(key, int):
887
+ return LinkType(key)
888
+ if key not in LinkType._member_map_: # pylint: disable=no-member
889
+ return extend_enum(LinkType, key, default)
890
+ return LinkType[key] # type: ignore[misc]
891
+
892
+ @classmethod
893
+ def _missing_(cls, value: 'int') -> 'LinkType':
894
+ """Lookup function used when value is not found.
895
+
896
+ Args:
897
+ value: Value to get enum item.
898
+
899
+ """
900
+ if not (isinstance(value, int) and 0x00000000 <= value <= 0xFFFFFFFF):
901
+ raise ValueError('%r is not a valid %s' % (value, cls.__name__))
902
+ return extend_enum(cls, 'Unassigned_%d' % value, value)