first commit

This commit is contained in:
Giuliano Bellini s294739
2022-08-05 22:36:23 +02:00
commit b8444982a0
417 changed files with 751 additions and 0 deletions

8
packet_sniffer/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

8
packet_sniffer/.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/packet_sniffer.iml" filepath="$PROJECT_DIR$/.idea/packet_sniffer.iml" />
</modules>
</component>
</project>

11
packet_sniffer/.idea/packet_sniffer.iml generated Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="CPP_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
packet_sniffer/.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

149
packet_sniffer/Cargo.lock generated Normal file
View File

@@ -0,0 +1,149 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "aho-corasick"
version = "0.7.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
dependencies = [
"memchr",
]
[[package]]
name = "arrayvec"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"
[[package]]
name = "cc"
version = "1.0.73"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "errno"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1"
dependencies = [
"errno-dragonfly",
"libc",
"winapi",
]
[[package]]
name = "errno-dragonfly"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"
dependencies = [
"cc",
"libc",
]
[[package]]
name = "etherparse"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bcb08c4aab4e2985045305551e67126b43f1b6b136bc4e1cd87fb0327877a611"
dependencies = [
"arrayvec",
]
[[package]]
name = "libc"
version = "0.2.127"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "505e71a4706fa491e9b1b55f51b95d4037d0821ee40131190475f692b35b009b"
[[package]]
name = "libloading"
version = "0.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "351a32417a12d5f7e82c368a66781e307834dae04c6ce0cd4456d52989229883"
dependencies = [
"cfg-if",
"winapi",
]
[[package]]
name = "memchr"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
[[package]]
name = "packet_sniffer"
version = "0.1.0"
dependencies = [
"etherparse",
"pcap",
]
[[package]]
name = "pcap"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42d1868a121e5f1d78134be7148b778d5352f28b7be30e7f993c3439671f0190"
dependencies = [
"errno",
"libc",
"libloading",
"regex",
"widestring",
"winapi",
]
[[package]]
name = "regex"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
]
[[package]]
name = "regex-syntax"
version = "0.6.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244"
[[package]]
name = "widestring"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7157704c2e12e3d2189c507b7482c52820a16dfa4465ba91add92f266667cadb"
[[package]]
name = "winapi"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
dependencies = [
"winapi-i686-pc-windows-gnu",
"winapi-x86_64-pc-windows-gnu",
]
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"

10
packet_sniffer/Cargo.toml Normal file
View File

@@ -0,0 +1,10 @@
[package]
name = "packet_sniffer"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
pcap = "0.9.2"
etherparse = "0.12.0"

View File

@@ -0,0 +1,26 @@
use etherparse::PacketHeaders;
use pcap::{Device, Capture};
fn main() {
let device = Device::lookup().unwrap();
println!("{:?}", device);
let mut cap = Capture::from_device(device).unwrap()
.promisc(true)
.snaplen(5000)
.open().unwrap();
while let Ok(packet) = cap.next() {
match PacketHeaders::from_ethernet_slice(&packet) {
Err(value) => println!("Err {:?}", value),
Ok(value) => {
println!("----------------------------------");
println!("link: {:?}", value.link);
println!("ip: {:?}", value.ip);
println!("transport: {:?}", value.transport);
println!("----------------------------------");
}
}
}
}

View File

@@ -0,0 +1 @@
{"rustc_fingerprint":2971462514782156308,"outputs":{"931469667778813386":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/Users/giulianobellini/.rustup/toolchains/stable-x86_64-apple-darwin\ndebug_assertions\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_feature=\"ssse3\"\ntarget_os=\"macos\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"apple\"\nunix\n","stderr":""},"17598535894874457435":{"success":true,"status":"","code":0,"stdout":"rustc 1.59.0 (9d1b2106e 2022-02-23)\nbinary: rustc\ncommit-hash: 9d1b2106e23b1abd32fce1f17267604a5102f57a\ncommit-date: 2022-02-23\nhost: x86_64-apple-darwin\nrelease: 1.59.0\nLLVM version: 13.0.0\n","stderr":""},"5309432699494263626":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n","stderr":""},"2797684049618456168":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n","stderr":""}},"successes":{}}

View File

@@ -0,0 +1,3 @@
Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by cargo.
# For information about cache directory tags see https://bford.info/cachedir/

View File

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
0b02d4cd95ccae9d

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"std\"]","target":14517922388190571959,"profile":8344124108420085910,"path":8333381984667099718,"deps":[[6893260508610722743,"memchr",false,7155899772465644256]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/aho-corasick-0f0bc9d5c60441f5/dep-lib-aho_corasick"}}],"rustflags":[],"metadata":13904389431191498124,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
460cb9e98729923f

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"std\"]","target":15141271784968785197,"profile":8344124108420085910,"path":10471161773330752651,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/arrayvec-28a76c6d8c77b6d3/dep-lib-arrayvec"}}],"rustflags":[],"metadata":5019420986621020735,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
17f6dce724daecca

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":10094334937643343087,"profile":8344124108420085910,"path":13995241465857918899,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/cfg-if-57b943692f42b17b/dep-lib-cfg-if"}}],"rustflags":[],"metadata":8462187951337715540,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
999ada0134021536

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"std\"]","target":15301400085709395567,"profile":8344124108420085910,"path":17847747103324590537,"deps":[[5936327487784097636,"libc",false,8831393243179727845]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/errno-47c40095700fa619/dep-lib-errno"}}],"rustflags":[],"metadata":10194485576052114626,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
96199545ae19e172

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":18312411133124847296,"profile":8344124108420085910,"path":5916118989061699133,"deps":[[8013147862121382061,"arrayvec",false,4580769434707758150]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/etherparse-bd2dd9707c9ce418/dep-lib-etherparse"}}],"rustflags":[],"metadata":15961346288629526208,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
619d9f42c4d63269

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"std\"]","target":2709041430195671023,"profile":8344124108420085910,"path":10464681754461751070,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-4d60ae1931fe7136/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":14998826085014762512,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

Binary file not shown.

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
e53b832b5d698f7a

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"std\"]","target":15721753382687865320,"profile":8344124108420085910,"path":17909150280149904153,"deps":[[5936327487784097636,"build_script_build",false,9831697650564416944]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-77b2a8c05790939a/dep-lib-libc"}}],"rustflags":[],"metadata":14998826085014762512,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
b045ef30ec347188

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"","target":0,"profile":0,"path":0,"deps":[[5936327487784097636,"build_script_build",false,7580357261237656929]],"local":[{"RerunIfChanged":{"output":"debug/build/libc-dd54f1d29c4a4e45/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
9d7a00d0095ea039

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":17922575587379209840,"profile":8344124108420085910,"path":12830973875808230948,"deps":[[2452538001284770427,"cfg_if",false,14622301942208853527]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libloading-ac94ef216b797902/dep-lib-libloading"}}],"rustflags":[],"metadata":8244122798519412190,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
19f8692350d3de5f

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"std\"]","target":13294766831966498538,"profile":8344124108420085910,"path":1861609099311976707,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/memchr-6e93a4fd3ac1210f/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":508135869874479790,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
1a8a0fcc7f44169c

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"","target":0,"profile":0,"path":0,"deps":[[6893260508610722743,"build_script_build",false,6908191219577911321]],"local":[{"Precalculated":"2.5.0"}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
e0021df2eddc4e63

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"std\"]","target":13381449118212650716,"profile":8344124108420085910,"path":17163246964485164293,"deps":[[6893260508610722743,"build_script_build",false,11247252435079498266]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/memchr-ec581d75a5a916fe/dep-lib-memchr"}}],"rustflags":[],"metadata":508135869874479790,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
f88cfe3a2307b72b

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":13592908794091413568,"profile":8344124108420085910,"path":10783967899250010856,"deps":[[1804585685035002727,"thiserror",false,4150452050285026022],[5936327487784097636,"libc",false,8831393243179727845]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/network-interface-e016334005624585/dep-lib-network-interface"}}],"rustflags":[],"metadata":5567952488102503079,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
ac98835dd3ba30f5

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":1089383778197212572,"profile":11736316127369858332,"path":1684066648322511884,"deps":[[7850678703186583968,"network_interface",false,3149994312263961848],[13706948548054529507,"pcap",false,5369193236746031062]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/packet_sniffer-059f9d63f249d479/dep-bin-packet_sniffer"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1,2 @@
{"message":"unused import: `Capture`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src/main.rs","byte_start":106,"byte_end":113,"line_start":3,"line_end":3,"column_start":19,"column_end":26,"is_primary":true,"text":[{"text":"use pcap::{Device,Capture};","highlight_start":19,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the unused import","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":105,"byte_end":113,"line_start":3,"line_end":3,"column_start":18,"column_end":26,"is_primary":true,"text":[{"text":"use pcap::{Device,Capture};","highlight_start":18,"highlight_end":26}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unused import: `Capture`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:3:19\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m3\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0muse pcap::{Device,Capture};\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^^^^^^^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m= \u001b[0m\u001b[0m\u001b[1mnote\u001b[0m\u001b[0m: `#[warn(unused_imports)]` on by default\u001b[0m\n\n"}
{"message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: 1 warning emitted\u001b[0m\n\n"}

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":1089383778197212572,"profile":11736316127369858332,"path":1684066648322511884,"deps":[[7850678703186583968,"network_interface",false,3149994312263961848]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/packet_sniffer-1325b94570ceb2f0/dep-bin-packet_sniffer"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1,3 @@
{"message":"unresolved import `pcap`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018, paths in `use` statements are relative to the current module\nunless they begin with the name of a crate or a literal `crate::`, in which\ncase they start from the crate root. As in Rust 2015 code, the `self::` and\n`super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nIn Rust 2018 the `extern crate` declaration is not required and you can instead\njust `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":92,"byte_end":96,"line_start":3,"line_end":3,"column_start":5,"column_end":9,"is_primary":true,"text":[{"text":"use pcap::Device;","highlight_start":5,"highlight_end":9}],"label":"use of undeclared crate or module `pcap`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0432]\u001b[0m\u001b[0m\u001b[1m: unresolved import `pcap`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:3:5\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m3\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0muse pcap::Device;\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9muse of undeclared crate or module `pcap`\u001b[0m\n\n"}
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: aborting due to previous error\u001b[0m\n\n"}
{"message":"For more information about this error, try `rustc --explain E0432`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1mFor more information about this error, try `rustc --explain E0432`.\u001b[0m\n"}

View File

@@ -0,0 +1 @@
a161efb72f7bdbf4

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":1089383778197212572,"profile":11736316127369858332,"path":1684066648322511884,"deps":[[1007160655150010859,"etherparse",false,8277925826366085526],[13706948548054529507,"pcap",false,5369193236746031062]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/packet_sniffer-4d7d909a1ca1c410/dep-bin-packet_sniffer"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1,4 @@
{"message":"unresolved import `network_interface`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018, paths in `use` statements are relative to the current module\nunless they begin with the name of a crate or a literal `crate::`, in which\ncase they start from the crate root. As in Rust 2015 code, the `self::` and\n`super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nIn Rust 2018 the `extern crate` declaration is not required and you can instead\njust `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":4,"byte_end":21,"line_start":1,"line_end":1,"column_start":5,"column_end":22,"is_primary":true,"text":[{"text":"use network_interface::NetworkInterface;","highlight_start":5,"highlight_end":22}],"label":"use of undeclared crate or module `network_interface`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0432]\u001b[0m\u001b[0m\u001b[1m: unresolved import `network_interface`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:1:5\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m1\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0muse network_interface::NetworkInterface;\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^^^^^^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9muse of undeclared crate or module `network_interface`\u001b[0m\n\n"}
{"message":"unresolved import `network_interface`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018, paths in `use` statements are relative to the current module\nunless they begin with the name of a crate or a literal `crate::`, in which\ncase they start from the crate root. As in Rust 2015 code, the `self::` and\n`super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nIn Rust 2018 the `extern crate` declaration is not required and you can instead\njust `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":45,"byte_end":62,"line_start":2,"line_end":2,"column_start":5,"column_end":22,"is_primary":true,"text":[{"text":"use network_interface::NetworkInterfaceConfig;","highlight_start":5,"highlight_end":22}],"label":"use of undeclared crate or module `network_interface`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0432]\u001b[0m\u001b[0m\u001b[1m: unresolved import `network_interface`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:2:5\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m2\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0muse network_interface::NetworkInterfaceConfig;\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^^^^^^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9muse of undeclared crate or module `network_interface`\u001b[0m\n\n"}
{"message":"aborting due to 2 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: aborting due to 2 previous errors\u001b[0m\n\n"}
{"message":"For more information about this error, try `rustc --explain E0432`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1mFor more information about this error, try `rustc --explain E0432`.\u001b[0m\n"}

View File

@@ -0,0 +1 @@
80985db8de15c2d1

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":1089383778197212572,"profile":11736316127369858332,"path":1684066648322511884,"deps":[[13706948548054529507,"pcap",false,5369193236746031062]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/packet_sniffer-e1be0f3b4c67d6d7/dep-bin-packet_sniffer"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

Binary file not shown.

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
d64fad36cd34834a

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":4307681951633192089,"profile":8344124108420085910,"path":12899174509745765945,"deps":[[2348303372938572046,"errno",false,3897023474951690905],[5936327487784097636,"libc",false,8831393243179727845],[13706948548054529507,"build_script_build",false,12174932913743043916]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/pcap-4a501050271003fe/dep-lib-pcap"}}],"rustflags":[],"metadata":18356581307939907784,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
4c9dddbffa0cf6a8

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"","target":0,"profile":0,"path":0,"deps":[[13706948548054529507,"build_script_build",false,14305083545597740628]],"local":[{"RerunIfEnvChanged":{"var":"LIBPCAP_LIBDIR","val":null}},{"RerunIfEnvChanged":{"var":"LIBPCAP_VER","val":null}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

View File

@@ -0,0 +1 @@
5486a371b1dd85c6

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[]","target":13294766831966498538,"profile":8344124108420085910,"path":15453222122150342015,"deps":[[13438186965014379160,"libloading",false,4152422252673006237],[17070786555368778272,"regex",false,18209904426243904407]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/pcap-fc09b1a9b07c6820/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":18356581307939907784,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
e6bfb3ca5d39bac8

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"","target":0,"profile":0,"path":0,"deps":[[2303534799027988957,"build_script_build",false,17195580789568096356]],"local":[{"RerunIfChanged":{"output":"debug/build/proc-macro2-755e91a3623a9a06/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

View File

@@ -0,0 +1 @@
64c8bc3c9ff9a2ee

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"proc-macro\"]","target":13294766831966498538,"profile":8344124108420085910,"path":11951812808957007015,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/proc-macro2-b5ef441e0b14f2e8/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":7635439851376710101,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1 @@
eb3471529ad29199

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"proc-macro\"]","target":14344298002436322672,"profile":8344124108420085910,"path":15542467098332045214,"deps":[[2303534799027988957,"build_script_build",false,14463936228249288678],[9294524838761079687,"unicode_ident",false,991605174643975568]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/proc-macro2-c3833e3f15b582ba/dep-lib-proc-macro2"}}],"rustflags":[],"metadata":7635439851376710101,"config":2202906307356721367,"compile_kind":0}

View File

@@ -0,0 +1 @@
aadd7fca9dbe02af

View File

@@ -0,0 +1 @@
{"rustc":1057704222874089767,"features":"[\"default\", \"proc-macro\"]","target":13294766831966498538,"profile":8344124108420085910,"path":14405475847040154934,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/quote-1c673374c896582e/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":2717943770976187624,"config":2202906307356721367,"compile_kind":0}

Some files were not shown because too many files have changed in this diff Show More