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,714 @@
1
+ # -*- coding: utf-8 -*-
2
+ # pylint: disable=line-too-long,consider-using-f-string
3
+ """Ethertype IEEE 802 Numbers
4
+ ================================
5
+
6
+ .. module:: pcapkit.const.reg.ethertype
7
+
8
+ This module contains the constant enumeration for **Ethertype IEEE 802 Numbers**,
9
+ which is automatically generated from :class:`pcapkit.vendor.reg.ethertype.EtherType`.
10
+
11
+ """
12
+
13
+ from aenum import IntEnum, extend_enum
14
+
15
+ __all__ = ['EtherType']
16
+
17
+
18
+ class EtherType(IntEnum):
19
+ """[EtherType] Ethertype IEEE 802 Numbers"""
20
+
21
+ #: Formerly XEROX PUP. Invalid as an Ethertype since 1983. Use 0x0A00. [Boggs,
22
+ #: D., J. Shoch, E. Taft, and R. Metcalfe, "PUP: An Internetwork Architecture",
23
+ #: XEROX Palo Alto Research Center, CSL-79-10, July 1979; also in IEEE
24
+ #: Transactions on Communication, Volume COM-28, Number 4, April 1980.][Neil
25
+ #: Sembower]
26
+ Formerly_XEROX_PUP_Invalid_as_an_Ethertype_since_1983_Use_0x0A00 = 0x0200
27
+
28
+ #: Formerly PUP Addr Trans. Invalid as an Ethertype since 1983. Use 0x0A01.
29
+ #: [Neil Sembower]
30
+ Formerly_PUP_Addr_Trans_Invalid_as_an_Ethertype_since_1983_Use_0x0A01 = 0x0201
31
+
32
+ #: Old Nixdorf private protocol. Invalid as an Ethertype since 1983. [Neil
33
+ #: Sembower]
34
+ Old_Nixdorf_private_protocol_Invalid_as_an_Ethertype_since_1983 = 0x0400
35
+
36
+ #: XEROX NS IDP ["The Ethernet, A Local Area Network: Data Link Layer and
37
+ #: Physical Layer Specification", AA-K759B-TK, Digital Equipment Corporation,
38
+ #: Maynard, MA. Also as: "The Ethernet - A Local Area Network", Version 1.0,
39
+ #: Digital Equipment Corporation, Intel Corporation, Xerox Corporation,
40
+ #: September 1980. And: "The Ethernet, A Local Area Network: Data Link Layer
41
+ #: and Physical Layer Specifications", Digital, Intel and Xerox, November 1982.
42
+ #: And: XEROX, "The Ethernet, A Local Area Network: Data Link Layer and
43
+ #: Physical Layer Specification", X3T51/80-50, Xerox Corporation, Stamford,
44
+ #: CT., October 1980.][Neil Sembower]
45
+ XEROX_NS_IDP = 0x0600
46
+
47
+ #: DLOG [Neil Sembower]
48
+ DLOG_0x0660 = 0x0660
49
+
50
+ #: DLOG [Neil Sembower]
51
+ DLOG_0x0661 = 0x0661
52
+
53
+ #: Internet Protocol version 4 (IPv4) [:rfc:`9542`]
54
+ Internet_Protocol_version_4 = 0x0800
55
+
56
+ #: X.75 Internet [Neil Sembower]
57
+ X_75_Internet = 0x0801
58
+
59
+ #: NBS Internet [Neil Sembower]
60
+ NBS_Internet = 0x0802
61
+
62
+ #: ECMA Internet [Neil Sembower]
63
+ ECMA_Internet = 0x0803
64
+
65
+ #: Chaosnet [Neil Sembower]
66
+ Chaosnet = 0x0804
67
+
68
+ #: X.25 Level 3 [Neil Sembower]
69
+ X_25_Level_3 = 0x0805
70
+
71
+ #: Address Resolution Protocol (ARP) [:rfc:`9542`]
72
+ Address_Resolution_Protocol = 0x0806
73
+
74
+ #: XNS Compatability [Neil Sembower]
75
+ XNS_Compatability = 0x0807
76
+
77
+ #: Frame Relay ARP [:rfc:`1701`]
78
+ Frame_Relay_ARP = 0x0808
79
+
80
+ #: Symbolics Private [David Plummer]
81
+ Symbolics_Private = 0x081C
82
+
83
+ #: Ungermann-Bass net debugr [Neil Sembower]
84
+ Ungermann_Bass_net_debugr = 0x0900
85
+
86
+ #: Xerox IEEE802.3 PUP [Neil Sembower]
87
+ Xerox_IEEE802_3_PUP = 0x0A00
88
+
89
+ #: PUP Addr Trans [Neil Sembower]
90
+ PUP_Addr_Trans = 0x0A01
91
+
92
+ #: Banyan VINES [Neil Sembower]
93
+ Banyan_VINES = 0x0BAD
94
+
95
+ #: VINES Loopback [:rfc:`1701`]
96
+ VINES_Loopback = 0x0BAE
97
+
98
+ #: VINES Echo [:rfc:`1701`]
99
+ VINES_Echo = 0x0BAF
100
+
101
+ #: Berkeley Trailer nego [Neil Sembower]
102
+ Berkeley_Trailer_nego = 0x1000
103
+
104
+ #: Valid Systems [Neil Sembower]
105
+ Valid_Systems = 0x1600
106
+
107
+ #: TRILL [:rfc:`6325`]
108
+ TRILL = 0x22F3
109
+
110
+ #: L2-IS-IS [:rfc:`6325`]
111
+ L2_IS_IS = 0x22F4
112
+
113
+ #: PCS Basic Block Protocol [Neil Sembower]
114
+ PCS_Basic_Block_Protocol = 0x4242
115
+
116
+ #: BBN Simnet [Neil Sembower]
117
+ BBN_Simnet = 0x5208
118
+
119
+ #: DEC Unassigned (Exp.) [Neil Sembower]
120
+ DEC_Unassigned_0x6000 = 0x6000
121
+
122
+ #: DEC MOP Dump/Load [Neil Sembower]
123
+ DEC_MOP_Dump_Load = 0x6001
124
+
125
+ #: DEC MOP Remote Console [Neil Sembower]
126
+ DEC_MOP_Remote_Console = 0x6002
127
+
128
+ #: DEC DECNET Phase IV Route [Neil Sembower]
129
+ DEC_DECNET_Phase_IV_Route = 0x6003
130
+
131
+ #: DEC LAT [Neil Sembower]
132
+ DEC_LAT = 0x6004
133
+
134
+ #: DEC Diagnostic Protocol [Neil Sembower]
135
+ DEC_Diagnostic_Protocol = 0x6005
136
+
137
+ #: DEC Customer Protocol [Neil Sembower]
138
+ DEC_Customer_Protocol = 0x6006
139
+
140
+ #: DEC LAVC, SCA [Neil Sembower]
141
+ DEC_LAVC_SCA = 0x6007
142
+
143
+ #: Trans Ether Bridging [:rfc:`1701`]
144
+ Trans_Ether_Bridging = 0x6558
145
+
146
+ #: Raw Frame Relay [:rfc:`1701`]
147
+ Raw_Frame_Relay = 0x6559
148
+
149
+ #: Ungermann-Bass download [Neil Sembower]
150
+ Ungermann_Bass_download = 0x7000
151
+
152
+ #: Ungermann-Bass dia/loop [Neil Sembower]
153
+ Ungermann_Bass_dia_loop = 0x7002
154
+
155
+ #: Proteon [Neil Sembower]
156
+ Proteon = 0x7030
157
+
158
+ #: Cabletron [Neil Sembower]
159
+ Cabletron = 0x7034
160
+
161
+ #: Cronus VLN [:rfc:`824`][Daniel Tappan]
162
+ Cronus_VLN = 0x8003
163
+
164
+ #: Cronus Direct [:rfc:`824`][Daniel Tappan]
165
+ Cronus_Direct = 0x8004
166
+
167
+ #: HP Probe [Neil Sembower]
168
+ HP_Probe = 0x8005
169
+
170
+ #: Nestar [Neil Sembower]
171
+ Nestar = 0x8006
172
+
173
+ #: AT&T [Neil Sembower]
174
+ AT_T_0x8008 = 0x8008
175
+
176
+ #: Excelan [Neil Sembower]
177
+ Excelan = 0x8010
178
+
179
+ #: SGI diagnostics [Andrew Cherenson]
180
+ SGI_diagnostics = 0x8013
181
+
182
+ #: SGI network games [Andrew Cherenson]
183
+ SGI_network_games = 0x8014
184
+
185
+ #: SGI reserved [Andrew Cherenson]
186
+ SGI_reserved = 0x8015
187
+
188
+ #: SGI bounce server [Andrew Cherenson]
189
+ SGI_bounce_server = 0x8016
190
+
191
+ #: Apollo Domain [Neil Sembower]
192
+ Apollo_Domain = 0x8019
193
+
194
+ #: Tymshare [Neil Sembower]
195
+ Tymshare = 0x802E
196
+
197
+ #: Tigan, Inc. [Neil Sembower]
198
+ Tigan_Inc = 0x802F
199
+
200
+ #: Reverse Address Resolution Protocol (RARP) [:rfc:`903`][Joseph Murdock]
201
+ Reverse_Address_Resolution_Protocol = 0x8035
202
+
203
+ #: Aeonic Systems [Neil Sembower]
204
+ Aeonic_Systems = 0x8036
205
+
206
+ #: DEC LANBridge [Neil Sembower]
207
+ DEC_LANBridge = 0x8038
208
+
209
+ #: DEC Ethernet Encryption [Neil Sembower]
210
+ DEC_Ethernet_Encryption = 0x803D
211
+
212
+ #: DEC Unassigned [Neil Sembower]
213
+ DEC_Unassigned_0x803E = 0x803E
214
+
215
+ #: DEC LAN Traffic Monitor [Neil Sembower]
216
+ DEC_LAN_Traffic_Monitor = 0x803F
217
+
218
+ #: Planning Research Corp. [Neil Sembower]
219
+ Planning_Research_Corp = 0x8044
220
+
221
+ #: AT&T [Neil Sembower]
222
+ AT_T_0x8046 = 0x8046
223
+
224
+ #: AT&T [Neil Sembower]
225
+ AT_T_0x8047 = 0x8047
226
+
227
+ #: ExperData [Neil Sembower]
228
+ ExperData = 0x8049
229
+
230
+ #: Stanford V Kernel exp. [Neil Sembower]
231
+ Stanford_V_Kernel_exp = 0x805B
232
+
233
+ #: Stanford V Kernel prod. [Neil Sembower]
234
+ Stanford_V_Kernel_prod = 0x805C
235
+
236
+ #: Evans & Sutherland [Neil Sembower]
237
+ Evans_Sutherland = 0x805D
238
+
239
+ #: Little Machines [Neil Sembower]
240
+ Little_Machines = 0x8060
241
+
242
+ #: Counterpoint Computers [Neil Sembower]
243
+ Counterpoint_Computers = 0x8062
244
+
245
+ #: Univ. of Mass. @ Amherst [Neil Sembower]
246
+ Univ_of_Mass_Amherst_0x8065 = 0x8065
247
+
248
+ #: Univ. of Mass. @ Amherst [Neil Sembower]
249
+ Univ_of_Mass_Amherst_0x8066 = 0x8066
250
+
251
+ #: Veeco Integrated Auto. [Neil Sembower]
252
+ Veeco_Integrated_Auto = 0x8067
253
+
254
+ #: General Dynamics [Neil Sembower]
255
+ General_Dynamics = 0x8068
256
+
257
+ #: AT&T [Neil Sembower]
258
+ AT_T_0x8069 = 0x8069
259
+
260
+ #: Autophon [Neil Sembower]
261
+ Autophon = 0x806A
262
+
263
+ #: ComDesign [Neil Sembower]
264
+ ComDesign = 0x806C
265
+
266
+ #: Computgraphic Corp. [Neil Sembower]
267
+ Computgraphic_Corp = 0x806D
268
+
269
+ #: Matra [Neil Sembower]
270
+ Matra = 0x807A
271
+
272
+ #: Dansk Data Elektronik [Neil Sembower]
273
+ Dansk_Data_Elektronik = 0x807B
274
+
275
+ #: Merit Internodal [Hans Werner Braun]
276
+ Merit_Internodal = 0x807C
277
+
278
+ #: Vitalink TransLAN III [Neil Sembower]
279
+ Vitalink_TransLAN_III = 0x8080
280
+
281
+ #: Appletalk [Neil Sembower]
282
+ Appletalk = 0x809B
283
+
284
+ #: Spider Systems Ltd. [Neil Sembower]
285
+ Spider_Systems_Ltd = 0x809F
286
+
287
+ #: Nixdorf Computers [Neil Sembower]
288
+ Nixdorf_Computers = 0x80A3
289
+
290
+ #: Banyan Systems [Neil Sembower]
291
+ Banyan_Systems_0x80C4 = 0x80C4
292
+
293
+ #: Banyan Systems [Neil Sembower]
294
+ Banyan_Systems_0x80C5 = 0x80C5
295
+
296
+ #: Pacer Software [Neil Sembower]
297
+ Pacer_Software = 0x80C6
298
+
299
+ #: Applitek Corporation [Neil Sembower]
300
+ Applitek_Corporation = 0x80C7
301
+
302
+ #: IBM SNA Service on Ether [Neil Sembower]
303
+ IBM_SNA_Service_on_Ether = 0x80D5
304
+
305
+ #: Varian Associates [Neil Sembower]
306
+ Varian_Associates = 0x80DD
307
+
308
+ #: Retix [Neil Sembower]
309
+ Retix = 0x80F2
310
+
311
+ #: AppleTalk AARP (Kinetics) [Neil Sembower]
312
+ AppleTalk_AARP = 0x80F3
313
+
314
+ #: Apollo Computer [Neil Sembower]
315
+ Apollo_Computer = 0x80F7
316
+
317
+ #: Wellfleet Communications [Neil Sembower]
318
+ Wellfleet_Communications = 0x80FF
319
+
320
+ #: Customer VLAN Tag Type (C-Tag, formerly called the Q-Tag) (initially
321
+ #: Wellfleet) [:rfc:`9542`]
322
+ Customer_VLAN_Tag_Type = 0x8100
323
+
324
+ #: Hayes Microcomputers [Neil Sembower]
325
+ Hayes_Microcomputers = 0x8130
326
+
327
+ #: VG Laboratory Systems [Neil Sembower]
328
+ VG_Laboratory_Systems = 0x8131
329
+
330
+ #: Logicraft [Neil Sembower]
331
+ Logicraft = 0x8148
332
+
333
+ #: Network Computing Devices [Neil Sembower]
334
+ Network_Computing_Devices = 0x8149
335
+
336
+ #: Alpha Micro [Neil Sembower]
337
+ Alpha_Micro = 0x814A
338
+
339
+ #: SNMP [Joyce K Reynolds]
340
+ SNMP = 0x814C
341
+
342
+ #: BIIN [Neil Sembower]
343
+ BIIN_0x814D = 0x814D
344
+
345
+ #: BIIN [Neil Sembower]
346
+ BIIN_0x814E = 0x814E
347
+
348
+ #: Technically Elite Concept [Neil Sembower]
349
+ Technically_Elite_Concept = 0x814F
350
+
351
+ #: Rational Corp [Neil Sembower]
352
+ Rational_Corp = 0x8150
353
+
354
+ #: XTP [Neil Sembower]
355
+ XTP = 0x817D
356
+
357
+ #: SGI/Time Warner prop. [Neil Sembower]
358
+ SGI_Time_Warner_prop = 0x817E
359
+
360
+ #: HIPPI-FP encapsulation [Neil Sembower]
361
+ HIPPI_FP_encapsulation = 0x8180
362
+
363
+ #: STP, HIPPI-ST [Neil Sembower]
364
+ STP_HIPPI_ST = 0x8181
365
+
366
+ #: Reserved for HIPPI-6400 [Neil Sembower]
367
+ Reserved_for_HIPPI_6400_0x8182 = 0x8182
368
+
369
+ #: Reserved for HIPPI-6400 [Neil Sembower]
370
+ Reserved_for_HIPPI_6400_0x8183 = 0x8183
371
+
372
+ #: Motorola Computer [Neil Sembower]
373
+ Motorola_Computer = 0x818D
374
+
375
+ #: ARAI Bunkichi [Neil Sembower]
376
+ ARAI_Bunkichi = 0x81A4
377
+
378
+ #: SECTRA [Neil Sembower]
379
+ SECTRA = 0x86DB
380
+
381
+ #: Delta Controls [Neil Sembower]
382
+ Delta_Controls = 0x86DE
383
+
384
+ #: Internet Protocol version 6 (IPv6) [:rfc:`9542`]
385
+ Internet_Protocol_version_6 = 0x86DD
386
+
387
+ #: ATOMIC [Joe Touch]
388
+ ATOMIC = 0x86DF
389
+
390
+ #: TCP/IP Compression [:rfc:`1144`][:rfc:`1701`]
391
+ TCP_IP_Compression = 0x876B
392
+
393
+ #: IP Autonomous Systems [:rfc:`1701`]
394
+ IP_Autonomous_Systems = 0x876C
395
+
396
+ #: Secure Data [:rfc:`1701`]
397
+ Secure_Data = 0x876D
398
+
399
+ #: IEEE Std 802.3 - Ethernet Passive Optical Network (EPON) [EPON][:rfc:`9542`]
400
+ IEEE_Std_802_3_Ethernet_Passive_Optical_Network = 0x8808
401
+
402
+ #: Slow Protocols (Link Aggregation, OAM, etc.) [IEEE]
403
+ Slow_Protocols = 0x8809
404
+
405
+ #: Point-to-Point Protocol (PPP) [:rfc:`9542`]
406
+ Point_to_Point_Protocol = 0x880B
407
+
408
+ #: General Switch Management Protocol (GSMP) [:rfc:`9542`]
409
+ General_Switch_Management_Protocol = 0x880C
410
+
411
+ #: Ethernet NIC hardware and software testing [Wind River]
412
+ Ethernet_NIC_hardware_and_software_testing = 0x8822
413
+
414
+ #: MPLS [:rfc:`5332`]
415
+ MPLS = 0x8847
416
+
417
+ #: MPLS with upstream-assigned label [:rfc:`5332`]
418
+ MPLS_with_upstream_assigned_label = 0x8848
419
+
420
+ #: Multicast Channel Allocation Protocol (MCAP) [:rfc:`9542`]
421
+ Multicast_Channel_Allocation_Protocol = 0x8861
422
+
423
+ #: PPP over Ethernet (PPPoE) Discovery Stage [:rfc:`2516`]
424
+ PPP_over_Ethernet_Discovery_Stage = 0x8863
425
+
426
+ #: PPP over Ethernet (PPPoE) Session Stage [:rfc:`2516`][:rfc:`8822`]
427
+ PPP_over_Ethernet_Session_Stage = 0x8864
428
+
429
+ #: IEEE Std 802.1X - Port-based network access control [IEEE]
430
+ IEEE_Std_802_1X_Port_based_network_access_control = 0x888E
431
+
432
+ #: IEEE Std 802.1Q - Service VLAN tag identifier (S-Tag) [IEEE]
433
+ IEEE_Std_802_1Q_Service_VLAN_tag_identifier = 0x88A8
434
+
435
+ #: IEEE Std 802 - Local Experimental Ethertype [IEEE]
436
+ IEEE_Std_802_Local_Experimental_Ethertype_0x88B5 = 0x88B5
437
+
438
+ #: IEEE Std 802 - Local Experimental Ethertype [IEEE]
439
+ IEEE_Std_802_Local_Experimental_Ethertype_0x88B6 = 0x88B6
440
+
441
+ #: IEEE Std 802 - OUI Extended Ethertype [IEEE]
442
+ IEEE_Std_802_OUI_Extended_Ethertype = 0x88B7
443
+
444
+ #: IEEE Std 802.11 - Pre-Authentication (802.11i) [IEEE]
445
+ IEEE_Std_802_11_Pre_Authentication = 0x88C7
446
+
447
+ #: IEEE Std 802.1AB - Link Layer Discovery Protocol (LLDP) [IEEE]
448
+ IEEE_Std_802_1AB_Link_Layer_Discovery_Protocol = 0x88CC
449
+
450
+ #: IEEE Std 802.1AE - Media Access Control Security [IEEE]
451
+ IEEE_Std_802_1AE_Media_Access_Control_Security = 0x88E5
452
+
453
+ #: Provider Backbone Bridging Instance tag [IEEE Std 802.1Q-2014]
454
+ Provider_Backbone_Bridging_Instance_tag = 0x88E7
455
+
456
+ #: IEEE Std 802.1Q - Multiple VLAN Registration Protocol (MVRP) [IEEE]
457
+ IEEE_Std_802_1Q_Multiple_VLAN_Registration_Protocol = 0x88F5
458
+
459
+ #: IEEE Std 802.1Q - Multiple Multicast Registration Protocol (MMRP) [IEEE]
460
+ IEEE_Std_802_1Q_Multiple_Multicast_Registration_Protocol = 0x88F6
461
+
462
+ #: Precision Time Protocol [NIST: IEEE Std 1588][Kang Lee]
463
+ Precision_Time_Protocol = 0x88F7
464
+
465
+ #: IEEE Std 802.11 - Fast Roaming Remote Request (802.11r) [IEEE]
466
+ IEEE_Std_802_11_Fast_Roaming_Remote_Request = 0x890D
467
+
468
+ #: IEEE Std 802.21 - Media Independent Handover Protocol [IEEE]
469
+ IEEE_Std_802_21_Media_Independent_Handover_Protocol = 0x8917
470
+
471
+ #: IEEE Std 802.1Qbe - Multiple I-SID Registration Protocol [IEEE]
472
+ IEEE_Std_802_1Qbe_Multiple_I_SID_Registration_Protocol = 0x8929
473
+
474
+ #: TRILL Fine Grained Labeling (FGL) [:rfc:`7172`]
475
+ TRILL_Fine_Grained_Labeling = 0x893B
476
+
477
+ #: IEEE Std 802.1Qbg - ECP Protocol (also used in 802.1BR) [IEEE]
478
+ IEEE_Std_802_1Qbg_ECP_Protocol = 0x8940
479
+
480
+ #: TRILL RBridge Channel [:rfc:`7178`]
481
+ TRILL_RBridge_Channel = 0x8946
482
+
483
+ #: GeoNetworking as defined in ETSI EN 302 636-4-1 [IEEE]
484
+ GeoNetworking_as_defined_in_ETSI_EN_302_636_4_1 = 0x8947
485
+
486
+ #: NSH (Network Service Header) [:rfc:`8300`]
487
+ NSH = 0x894F
488
+
489
+ #: Loopback [Neil Sembower]
490
+ Loopback = 0x9000
491
+
492
+ #: 3Com(Bridge) XNS Sys Mgmt [Neil Sembower]
493
+ EtherType_3Com_XNS_Sys_Mgmt = 0x9001
494
+
495
+ #: 3Com(Bridge) TCP-IP Sys [Neil Sembower]
496
+ EtherType_3Com_TCP_IP_Sys = 0x9002
497
+
498
+ #: 3Com(Bridge) loop detect [Neil Sembower]
499
+ EtherType_3Com_loop_detect = 0x9003
500
+
501
+ #: Multi-Topology [:rfc:`8377`]
502
+ Multi_Topology = 0x9A22
503
+
504
+ #: LoWPAN encapsulation [:rfc:`7973`]
505
+ LoWPAN_encapsulation = 0xA0ED
506
+
507
+ #: The Ethertype will be used to identify a "Channel" in which control messages
508
+ #: are encapsulated as payload of GRE packets. When a GRE packet tagged with
509
+ #: the Ethertype is received, the payload will be handed to the network
510
+ #: processor for processing. [:rfc:`8157`]
511
+ The_Ethertype_will_be_used_to_identify_a_Channel_in_which_control_messages_are_encapsulated_as_payload_of_GRE_packets_When_a_GRE_packet_tagged_with_the_Ethertype_is_received_the_payload_will_be_handed_to_the_network_processor_for_processing = 0xB7EA
512
+
513
+ #: BBN VITAL-LanBridge cache private protocol. [Neil Sembower]
514
+ BBN_VITAL_LanBridge_cache_private_protocol = 0xFF00
515
+
516
+ #: Reserved [:rfc:`1701`]
517
+ Reserved = 0xFFFF
518
+
519
+ @staticmethod
520
+ def get(key: 'int | str', default: 'int' = -1) -> 'EtherType':
521
+ """Backport support for original codes.
522
+
523
+ Args:
524
+ key: Key to get enum item.
525
+ default: Default value if not found.
526
+
527
+ :meta private:
528
+ """
529
+ if isinstance(key, int):
530
+ return EtherType(key)
531
+ if key not in EtherType._member_map_: # pylint: disable=no-member
532
+ return extend_enum(EtherType, key, default)
533
+ return EtherType[key] # type: ignore[misc]
534
+
535
+ @classmethod
536
+ def _missing_(cls, value: 'int') -> 'EtherType':
537
+ """Lookup function used when value is not found.
538
+
539
+ Args:
540
+ value: Value to get enum item.
541
+
542
+ """
543
+ if not (isinstance(value, int) and 0x0000 <= value <= 0xFFFF):
544
+ raise ValueError('%r is not a valid %s' % (value, cls.__name__))
545
+ if 0x0000 <= value <= 0x05DC:
546
+ #: IEEE802.3 Length Field [IEEE Std 802.3]
547
+ return extend_enum(cls, 'IEEE802_3_Length_Field_0x%s' % hex(value)[2:].upper().zfill(4), value)
548
+ if 0x0101 <= value <= 0x01FF:
549
+ #: Old Xerox Experimental values. Invalid as an Ethertype since 1983. [Neil
550
+ #: Sembower]
551
+ return extend_enum(cls, 'Old_Xerox_Experimental_values_Invalid_as_an_Ethertype_since_1983_0x%s' % hex(value)[2:].upper().zfill(4), value)
552
+ if 0x0888 <= value <= 0x088A:
553
+ #: Xyplex [Neil Sembower]
554
+ return extend_enum(cls, 'Xyplex_0x%s' % hex(value)[2:].upper().zfill(4), value)
555
+ if 0x1001 <= value <= 0x100F:
556
+ #: Berkeley Trailer encap/IP [Neil Sembower]
557
+ return extend_enum(cls, 'Berkeley_Trailer_encap_IP_0x%s' % hex(value)[2:].upper().zfill(4), value)
558
+ if 0x6008 <= value <= 0x6009:
559
+ #: DEC Unassigned [Neil Sembower]
560
+ return extend_enum(cls, 'DEC_Unassigned_0x%s' % hex(value)[2:].upper().zfill(4), value)
561
+ if 0x6010 <= value <= 0x6014:
562
+ #: 3Com Corporation [Neil Sembower]
563
+ return extend_enum(cls, 'EtherType_3Com_Corporation_0x%s' % hex(value)[2:].upper().zfill(4), value)
564
+ if 0x7020 <= value <= 0x7029:
565
+ #: LRT [Neil Sembower]
566
+ return extend_enum(cls, 'LRT_0x%s' % hex(value)[2:].upper().zfill(4), value)
567
+ if 0x8039 <= value <= 0x803C:
568
+ #: DEC Unassigned [Neil Sembower]
569
+ return extend_enum(cls, 'DEC_Unassigned_0x%s' % hex(value)[2:].upper().zfill(4), value)
570
+ if 0x8040 <= value <= 0x8042:
571
+ #: DEC Unassigned [Neil Sembower]
572
+ return extend_enum(cls, 'DEC_Unassigned_0x%s' % hex(value)[2:].upper().zfill(4), value)
573
+ if 0x806E <= value <= 0x8077:
574
+ #: Landmark Graphics Corp. [Neil Sembower]
575
+ return extend_enum(cls, 'Landmark_Graphics_Corp_0x%s' % hex(value)[2:].upper().zfill(4), value)
576
+ if 0x807D <= value <= 0x807F:
577
+ #: Vitalink Communications [Neil Sembower]
578
+ return extend_enum(cls, 'Vitalink_Communications_0x%s' % hex(value)[2:].upper().zfill(4), value)
579
+ if 0x8081 <= value <= 0x8083:
580
+ #: Counterpoint Computers [Neil Sembower]
581
+ return extend_enum(cls, 'Counterpoint_Computers_0x%s' % hex(value)[2:].upper().zfill(4), value)
582
+ if 0x809C <= value <= 0x809E:
583
+ #: Datability [Neil Sembower]
584
+ return extend_enum(cls, 'Datability_0x%s' % hex(value)[2:].upper().zfill(4), value)
585
+ if 0x80A4 <= value <= 0x80B3:
586
+ #: Siemens Gammasonics Inc. [Neil Sembower]
587
+ return extend_enum(cls, 'Siemens_Gammasonics_Inc_0x%s' % hex(value)[2:].upper().zfill(4), value)
588
+ if 0x80C0 <= value <= 0x80C3:
589
+ #: DCA Data Exchange Cluster [Neil Sembower]
590
+ return extend_enum(cls, 'DCA_Data_Exchange_Cluster_0x%s' % hex(value)[2:].upper().zfill(4), value)
591
+ if 0x80C8 <= value <= 0x80CC:
592
+ #: Intergraph Corporation [Neil Sembower]
593
+ return extend_enum(cls, 'Intergraph_Corporation_0x%s' % hex(value)[2:].upper().zfill(4), value)
594
+ if 0x80CD <= value <= 0x80CE:
595
+ #: Harris Corporation [Neil Sembower]
596
+ return extend_enum(cls, 'Harris_Corporation_0x%s' % hex(value)[2:].upper().zfill(4), value)
597
+ if 0x80CF <= value <= 0x80D2:
598
+ #: Taylor Instrument [Neil Sembower]
599
+ return extend_enum(cls, 'Taylor_Instrument_0x%s' % hex(value)[2:].upper().zfill(4), value)
600
+ if 0x80D3 <= value <= 0x80D4:
601
+ #: Rosemount Corporation [Neil Sembower]
602
+ return extend_enum(cls, 'Rosemount_Corporation_0x%s' % hex(value)[2:].upper().zfill(4), value)
603
+ if 0x80DE <= value <= 0x80DF:
604
+ #: Integrated Solutions TRFS [Neil Sembower]
605
+ return extend_enum(cls, 'Integrated_Solutions_TRFS_0x%s' % hex(value)[2:].upper().zfill(4), value)
606
+ if 0x80E0 <= value <= 0x80E3:
607
+ #: Allen-Bradley [Neil Sembower]
608
+ return extend_enum(cls, 'Allen_Bradley_0x%s' % hex(value)[2:].upper().zfill(4), value)
609
+ if 0x80E4 <= value <= 0x80F0:
610
+ #: Datability [Neil Sembower]
611
+ return extend_enum(cls, 'Datability_0x%s' % hex(value)[2:].upper().zfill(4), value)
612
+ if 0x80F4 <= value <= 0x80F5:
613
+ #: Kinetics [Neil Sembower]
614
+ return extend_enum(cls, 'Kinetics_0x%s' % hex(value)[2:].upper().zfill(4), value)
615
+ if 0x8101 <= value <= 0x8103:
616
+ #: Wellfleet Communications [Neil Sembower]
617
+ return extend_enum(cls, 'Wellfleet_Communications_0x%s' % hex(value)[2:].upper().zfill(4), value)
618
+ if 0x8107 <= value <= 0x8109:
619
+ #: Symbolics Private [Neil Sembower]
620
+ return extend_enum(cls, 'Symbolics_Private_0x%s' % hex(value)[2:].upper().zfill(4), value)
621
+ if 0x8132 <= value <= 0x8136:
622
+ #: Bridge Communications [Neil Sembower]
623
+ return extend_enum(cls, 'Bridge_Communications_0x%s' % hex(value)[2:].upper().zfill(4), value)
624
+ if 0x8137 <= value <= 0x8138:
625
+ #: Novell, Inc. [Neil Sembower]
626
+ return extend_enum(cls, 'Novell_Inc_0x%s' % hex(value)[2:].upper().zfill(4), value)
627
+ if 0x8139 <= value <= 0x813D:
628
+ #: KTI [Neil Sembower]
629
+ return extend_enum(cls, 'KTI_0x%s' % hex(value)[2:].upper().zfill(4), value)
630
+ if 0x8151 <= value <= 0x8153:
631
+ #: Qualcomm [Neil Sembower]
632
+ return extend_enum(cls, 'Qualcomm_0x%s' % hex(value)[2:].upper().zfill(4), value)
633
+ if 0x815C <= value <= 0x815E:
634
+ #: Computer Protocol Pty Ltd [Neil Sembower]
635
+ return extend_enum(cls, 'Computer_Protocol_Pty_Ltd_0x%s' % hex(value)[2:].upper().zfill(4), value)
636
+ if 0x8164 <= value <= 0x8166:
637
+ #: Charles River Data System [Neil Sembower]
638
+ return extend_enum(cls, 'Charles_River_Data_System_0x%s' % hex(value)[2:].upper().zfill(4), value)
639
+ if 0x8184 <= value <= 0x818C:
640
+ #: Silicon Graphics prop. [Neil Sembower]
641
+ return extend_enum(cls, 'Silicon_Graphics_prop_0x%s' % hex(value)[2:].upper().zfill(4), value)
642
+ if 0x819A <= value <= 0x81A3:
643
+ #: Qualcomm [Neil Sembower]
644
+ return extend_enum(cls, 'Qualcomm_0x%s' % hex(value)[2:].upper().zfill(4), value)
645
+ if 0x81A5 <= value <= 0x81AE:
646
+ #: RAD Network Devices [Neil Sembower]
647
+ return extend_enum(cls, 'RAD_Network_Devices_0x%s' % hex(value)[2:].upper().zfill(4), value)
648
+ if 0x81B7 <= value <= 0x81B9:
649
+ #: Xyplex [Neil Sembower]
650
+ return extend_enum(cls, 'Xyplex_0x%s' % hex(value)[2:].upper().zfill(4), value)
651
+ if 0x81CC <= value <= 0x81D5:
652
+ #: Apricot Computers [Neil Sembower]
653
+ return extend_enum(cls, 'Apricot_Computers_0x%s' % hex(value)[2:].upper().zfill(4), value)
654
+ if 0x81D6 <= value <= 0x81DD:
655
+ #: Artisoft [Neil Sembower]
656
+ return extend_enum(cls, 'Artisoft_0x%s' % hex(value)[2:].upper().zfill(4), value)
657
+ if 0x81E6 <= value <= 0x81EF:
658
+ #: Polygon [Neil Sembower]
659
+ return extend_enum(cls, 'Polygon_0x%s' % hex(value)[2:].upper().zfill(4), value)
660
+ if 0x81F0 <= value <= 0x81F2:
661
+ #: Comsat Labs [Neil Sembower]
662
+ return extend_enum(cls, 'Comsat_Labs_0x%s' % hex(value)[2:].upper().zfill(4), value)
663
+ if 0x81F3 <= value <= 0x81F5:
664
+ #: SAIC [Neil Sembower]
665
+ return extend_enum(cls, 'SAIC_0x%s' % hex(value)[2:].upper().zfill(4), value)
666
+ if 0x81F6 <= value <= 0x81F8:
667
+ #: VG Analytical [Neil Sembower]
668
+ return extend_enum(cls, 'VG_Analytical_0x%s' % hex(value)[2:].upper().zfill(4), value)
669
+ if 0x8203 <= value <= 0x8205:
670
+ #: Quantum Software [Neil Sembower]
671
+ return extend_enum(cls, 'Quantum_Software_0x%s' % hex(value)[2:].upper().zfill(4), value)
672
+ if 0x8221 <= value <= 0x8222:
673
+ #: Ascom Banking Systems [Neil Sembower]
674
+ return extend_enum(cls, 'Ascom_Banking_Systems_0x%s' % hex(value)[2:].upper().zfill(4), value)
675
+ if 0x823E <= value <= 0x8240:
676
+ #: Advanced Encryption Syste [Neil Sembower]
677
+ return extend_enum(cls, 'Advanced_Encryption_Syste_0x%s' % hex(value)[2:].upper().zfill(4), value)
678
+ if 0x827F <= value <= 0x8282:
679
+ #: Athena Programming [Neil Sembower]
680
+ return extend_enum(cls, 'Athena_Programming_0x%s' % hex(value)[2:].upper().zfill(4), value)
681
+ if 0x8263 <= value <= 0x826A:
682
+ #: Charles River Data System [Neil Sembower]
683
+ return extend_enum(cls, 'Charles_River_Data_System_0x%s' % hex(value)[2:].upper().zfill(4), value)
684
+ if 0x829A <= value <= 0x829B:
685
+ #: Inst Ind Info Tech [Neil Sembower]
686
+ return extend_enum(cls, 'Inst_Ind_Info_Tech_0x%s' % hex(value)[2:].upper().zfill(4), value)
687
+ if 0x829C <= value <= 0x82AB:
688
+ #: Taurus Controls [Neil Sembower]
689
+ return extend_enum(cls, 'Taurus_Controls_0x%s' % hex(value)[2:].upper().zfill(4), value)
690
+ if 0x82AC <= value <= 0x8693:
691
+ #: Walker Richer & Quinn [Neil Sembower]
692
+ return extend_enum(cls, 'Walker_Richer_Quinn_0x%s' % hex(value)[2:].upper().zfill(4), value)
693
+ if 0x8694 <= value <= 0x869D:
694
+ #: Idea Courier [Neil Sembower]
695
+ return extend_enum(cls, 'Idea_Courier_0x%s' % hex(value)[2:].upper().zfill(4), value)
696
+ if 0x869E <= value <= 0x86A1:
697
+ #: Computer Network Tech [Neil Sembower]
698
+ return extend_enum(cls, 'Computer_Network_Tech_0x%s' % hex(value)[2:].upper().zfill(4), value)
699
+ if 0x86A3 <= value <= 0x86AC:
700
+ #: Gateway Communications [Neil Sembower]
701
+ return extend_enum(cls, 'Gateway_Communications_0x%s' % hex(value)[2:].upper().zfill(4), value)
702
+ if 0x86E0 <= value <= 0x86EF:
703
+ #: Landis & Gyr Powers [Neil Sembower]
704
+ return extend_enum(cls, 'Landis_Gyr_Powers_0x%s' % hex(value)[2:].upper().zfill(4), value)
705
+ if 0x8700 <= value <= 0x8710:
706
+ #: Motorola [Neil Sembower]
707
+ return extend_enum(cls, 'Motorola_0x%s' % hex(value)[2:].upper().zfill(4), value)
708
+ if 0x8A96 <= value <= 0x8A97:
709
+ #: Invisible Software [Neil Sembower]
710
+ return extend_enum(cls, 'Invisible_Software_0x%s' % hex(value)[2:].upper().zfill(4), value)
711
+ if 0xFF00 <= value <= 0xFF0F:
712
+ #: ISC Bunker Ramo private protocol. [Neil Sembower]
713
+ return extend_enum(cls, 'ISC_Bunker_Ramo_private_protocol_0x%s' % hex(value)[2:].upper().zfill(4), value)
714
+ return super()._missing_(value)