capture: Add packet capture infrastructure

This commit is contained in:
Douile 2023-11-22 02:20:03 +00:00
parent 3b1edd8e3d
commit abbcae618f
No known key found for this signature in database
GPG key ID: 1EC3120F9A1028F2
4 changed files with 593 additions and 4 deletions

View file

@ -23,6 +23,7 @@ services = []
game_defs = ["dep:phf", "games"]
serde = ["dep:serde", "serde/derive"]
clap = ["dep:clap"]
packet_capture = ["dep:pcap-file", "dep:pnet_packet"]
[dependencies]
byteorder = "1.5"
@ -37,6 +38,9 @@ phf = { version = "0.11", optional = true, features = ["macros"] }
clap = { version = "4.1.11", optional = true, features = ["derive"] }
pcap-file = { version = "2.0", optional = true }
pnet_packet = { version = "0.34", optional = true }
# Examples
[[example]]
name = "minecraft"