[INFO] fetching crate pnet_bandwhich_fork 0.23.1... [INFO] testing pnet_bandwhich_fork-0.23.1 against 1.60.0 for beta-1.61-1 [INFO] extracting crate pnet_bandwhich_fork 0.23.1 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate pnet_bandwhich_fork 0.23.1 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pnet_bandwhich_fork 0.23.1 [INFO] finished tweaking crates.io crate pnet_bandwhich_fork 0.23.1 [INFO] tweaked toml for crates.io crate pnet_bandwhich_fork 0.23.1 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate crates.io crate pnet_bandwhich_fork 0.23.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded time v0.2.2 [INFO] [stderr] Downloaded pnet_macros_support v0.23.0 [INFO] [stderr] Downloaded pnet_sys v0.23.0 [INFO] [stderr] Downloaded pnet_base v0.23.0 [INFO] [stderr] Downloaded pnet_packet v0.23.0 [INFO] [stderr] Downloaded pnet_macros v0.23.0 [INFO] [stderr] Downloaded pnet_datalink_bandwhich_fork v0.23.1 [INFO] [stderr] Downloaded pnet_transport v0.23.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a328b16ca8b800a9fc82dbf60a3c5b6039fa0173a80c99e90f53d545f7b3f46d [INFO] running `Command { std: "docker" "start" "-a" "a328b16ca8b800a9fc82dbf60a3c5b6039fa0173a80c99e90f53d545f7b3f46d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a328b16ca8b800a9fc82dbf60a3c5b6039fa0173a80c99e90f53d545f7b3f46d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a328b16ca8b800a9fc82dbf60a3c5b6039fa0173a80c99e90f53d545f7b3f46d", kill_on_drop: false }` [INFO] [stdout] a328b16ca8b800a9fc82dbf60a3c5b6039fa0173a80c99e90f53d545f7b3f46d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b7185086af56f94eb4363439b72df51c7974e40f847cc9a01da74dd418dc499 [INFO] running `Command { std: "docker" "start" "-a" "7b7185086af56f94eb4363439b72df51c7974e40f847cc9a01da74dd418dc499", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling unicode-xid v0.0.3 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling regex v1.0.6 [INFO] [stderr] Compiling bitflags v0.5.0 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling regex-syntax v0.6.12 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling pnet_base v0.23.0 [INFO] [stderr] Compiling pnet_bandwhich_fork v0.23.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling pnet_base_bandwhich_fork v0.23.0 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling pnet_macros_support v0.23.0 [INFO] [stderr] Compiling pnet_sys v0.23.0 [INFO] [stderr] Compiling pnet_sys_bandwhich_fork v0.23.0 [INFO] [stderr] Compiling syntex_pos v0.42.0 [INFO] [stderr] Compiling syntex_errors v0.42.0 [INFO] [stderr] Compiling syntex_syntax v0.42.0 [INFO] [stderr] Compiling ipnetwork v0.15.1 [INFO] [stderr] Compiling pnet_datalink_bandwhich_fork v0.23.1 [INFO] [stderr] Compiling syntex v0.42.2 [INFO] [stderr] Compiling pnet_macros v0.23.0 [INFO] [stderr] Compiling pnet_packet v0.23.0 [INFO] [stderr] Compiling pnet_transport v0.23.0 [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 20.38s [INFO] running `Command { std: "docker" "inspect" "7b7185086af56f94eb4363439b72df51c7974e40f847cc9a01da74dd418dc499", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b7185086af56f94eb4363439b72df51c7974e40f847cc9a01da74dd418dc499", kill_on_drop: false }` [INFO] [stdout] 7b7185086af56f94eb4363439b72df51c7974e40f847cc9a01da74dd418dc499 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05e222e5b0c26828bf6294c7d2d7cc7ec9df5af894d12e9b6162781833e3280d [INFO] running `Command { std: "docker" "start" "-a" "05e222e5b0c26828bf6294c7d2d7cc7ec9df5af894d12e9b6162781833e3280d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling time v0.2.2 [INFO] [stderr] Compiling pnet_bandwhich_fork v0.23.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `pnet_datalink` [INFO] [stdout] --> examples/list_interfaces.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | extern crate pnet_datalink; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `pnet` [INFO] [stdout] --> examples/transport_echo_server.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | extern crate pnet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `pnet_bandwhich_fork` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] --> examples/transport_echo_server.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | let protocol = Layer4(Ipv4(IpNextHeaderProtocols::Test1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MutableUdpPacket` [INFO] [stdout] --> examples/transport_echo_server.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | let mut new_packet = MutableUdpPacket::new(&mut vec[..]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `MutableUdpPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Layer4` in this scope [INFO] [stdout] --> examples/transport_echo_server.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | let protocol = Layer4(Ipv4(IpNextHeaderProtocols::Test1)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Ipv4` in this scope [INFO] [stdout] --> examples/transport_echo_server.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 20 | let protocol = Layer4(Ipv4(IpNextHeaderProtocols::Test1)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `transport_channel` in this scope [INFO] [stdout] --> examples/transport_echo_server.rs:24:34 [INFO] [stdout] | [INFO] [stdout] 24 | let (mut tx, mut rx) = match transport_channel(4096, protocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `udp_packet_iter` in this scope [INFO] [stdout] --> examples/transport_echo_server.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | let mut iter = udp_packet_iter(&mut rx); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `pnet` [INFO] [stdout] --> examples/fanout.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | extern crate pnet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `pnet_datalink` [INFO] [stdout] --> examples/fanout.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | extern crate pnet_datalink; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `pnet` [INFO] [stdout] --> examples/arp_packet.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate pnet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `pnet_datalink` [INFO] [stdout] --> examples/arp_packet.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate pnet_datalink; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `pnet` [INFO] [stdout] --> examples/packetdump.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | extern crate pnet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `datalink` [INFO] [stdout] --> examples/fanout.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | let interfaces = datalink::linux::interfaces(); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `datalink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FanoutType` [INFO] [stdout] --> examples/fanout.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | "hash" => FanoutType::HASH, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FanoutType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FanoutType` [INFO] [stdout] --> examples/fanout.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | "round-robin" => FanoutType::LB, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FanoutType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FanoutType` [INFO] [stdout] --> examples/fanout.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | "cpu" => FanoutType::CPU, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FanoutType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FanoutType` [INFO] [stdout] --> examples/fanout.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | "rollover" => FanoutType::ROLLOVER, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FanoutType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FanoutType` [INFO] [stdout] --> examples/fanout.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | "rnd" => FanoutType::RND, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FanoutType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FanoutType` [INFO] [stdout] --> examples/fanout.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | "qm" => FanoutType::QM, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FanoutType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FanoutType` [INFO] [stdout] --> examples/fanout.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | "cbpf" => FanoutType::CBPF, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FanoutType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FanoutType` [INFO] [stdout] --> examples/fanout.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | "ebpf" => FanoutType::EBPF, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FanoutType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FanoutType` [INFO] [stdout] --> examples/fanout.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | None => FanoutType::LB, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FanoutType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `datalink` [INFO] [stdout] --> examples/fanout.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 83 | let (_, mut rx) = match datalink::channel(&itf, config) { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `datalink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NetworkInterface` in this scope [INFO] [stdout] --> examples/fanout.rs:38:42 [INFO] [stdout] | [INFO] [stdout] 38 | let interface_names_match = |iface: &NetworkInterface| iface.name == iface_name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Config` in this scope [INFO] [stdout] --> examples/fanout.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut config: Config = Default::default(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FanoutOption` in this scope [INFO] [stdout] --> examples/fanout.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | config.linux_fanout = Some(FanoutOption { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Ethernet` in this scope [INFO] [stdout] --> examples/fanout.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(Ethernet(tx, rx)) => (tx, rx), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Channel` [INFO] [stdout] --> examples/arp_packet.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | Ok(Channel::Ethernet(tx, rx)) => (tx, rx), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MutableEthernetPacket` [INFO] [stdout] --> examples/arp_packet.rs:35:31 [INFO] [stdout] | [INFO] [stdout] 35 | let mut ethernet_packet = MutableEthernetPacket::new(&mut ethernet_buffer).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `MutableEthernetPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MacAddr` [INFO] [stdout] --> examples/arp_packet.rs:37:37 [INFO] [stdout] | [INFO] [stdout] 37 | ethernet_packet.set_destination(MacAddr::broadcast()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `MacAddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EtherTypes` [INFO] [stdout] --> examples/arp_packet.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | ethernet_packet.set_ethertype(EtherTypes::Arp); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `EtherTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MutableArpPacket` [INFO] [stdout] --> examples/arp_packet.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | let mut arp_packet = MutableArpPacket::new(&mut arp_buffer).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `MutableArpPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ArpHardwareTypes` [INFO] [stdout] --> examples/arp_packet.rs:44:34 [INFO] [stdout] | [INFO] [stdout] 44 | arp_packet.set_hardware_type(ArpHardwareTypes::Ethernet); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `ArpHardwareTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EtherTypes` [INFO] [stdout] --> examples/arp_packet.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | arp_packet.set_protocol_type(EtherTypes::Ipv4); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `EtherTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ArpOperations` [INFO] [stdout] --> examples/arp_packet.rs:48:30 [INFO] [stdout] | [INFO] [stdout] 48 | arp_packet.set_operation(ArpOperations::Request); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ArpOperations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MacAddr` [INFO] [stdout] --> examples/arp_packet.rs:51:35 [INFO] [stdout] | [INFO] [stdout] 51 | arp_packet.set_target_hw_addr(MacAddr::zero()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `MacAddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ArpPacket` [INFO] [stdout] --> examples/arp_packet.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | let arp = ArpPacket::new(&buf[MutableEthernetPacket::minimum_packet_size()..]).unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ArpPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MutableEthernetPacket` [INFO] [stdout] --> examples/arp_packet.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | let arp = ArpPacket::new(&buf[MutableEthernetPacket::minimum_packet_size()..]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `MutableEthernetPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UdpPacket` [INFO] [stdout] --> examples/packetdump.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | let udp = UdpPacket::new(packet); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `UdpPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NetworkInterface` in this scope [INFO] [stdout] --> examples/arp_packet.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | fn get_mac_through_arp(interface: NetworkInterface, target_ip: Ipv4Addr) -> MacAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MacAddr` in this scope [INFO] [stdout] --> examples/arp_packet.rs:17:77 [INFO] [stdout] | [INFO] [stdout] 17 | fn get_mac_through_arp(interface: NetworkInterface, target_ip: Ipv4Addr) -> MacAddr { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IcmpPacket` [INFO] [stdout] --> examples/packetdump.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | let icmp_packet = IcmpPacket::new(packet); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `IcmpPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IcmpTypes` [INFO] [stdout] --> examples/packetdump.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | IcmpTypes::EchoReply => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `IcmpTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `echo_reply` [INFO] [stdout] --> examples/packetdump.rs:54:41 [INFO] [stdout] | [INFO] [stdout] 54 | let echo_reply_packet = echo_reply::EchoReplyPacket::new(packet).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `echo_reply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IcmpTypes` [INFO] [stdout] --> examples/packetdump.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | IcmpTypes::EchoRequest => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `IcmpTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `echo_request` [INFO] [stdout] --> examples/packetdump.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 65 | let echo_request_packet = echo_request::EchoRequestPacket::new(packet).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `echo_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Icmpv6Packet` [INFO] [stdout] --> examples/packetdump.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | let icmpv6_packet = Icmpv6Packet::new(packet); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Icmpv6Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpPacket` [INFO] [stdout] --> examples/packetdump.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | let tcp = TcpPacket::new(packet); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TcpPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] --> examples/packetdump.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | IpNextHeaderProtocols::Udp => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] --> examples/packetdump.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | IpNextHeaderProtocols::Tcp => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] --> examples/packetdump.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | IpNextHeaderProtocols::Icmp => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] --> examples/packetdump.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | IpNextHeaderProtocols::Icmpv6 => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IpNextHeaderProtocols` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ipv4Packet` [INFO] [stdout] --> examples/packetdump.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | let header = Ipv4Packet::new(ethernet.payload()); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Ipv4Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ipv6Packet` [INFO] [stdout] --> examples/packetdump.rs:171:18 [INFO] [stdout] | [INFO] [stdout] 171 | let header = Ipv6Packet::new(ethernet.payload()); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Ipv6Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ArpPacket` [INFO] [stdout] --> examples/packetdump.rs:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | let header = ArpPacket::new(ethernet.payload()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ArpPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EtherTypes` [INFO] [stdout] --> examples/packetdump.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | EtherTypes::Ipv4 => handle_ipv4_packet(interface_name, ethernet), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `EtherTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EtherTypes` [INFO] [stdout] --> examples/packetdump.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | EtherTypes::Ipv6 => handle_ipv6_packet(interface_name, ethernet), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `EtherTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EtherTypes` [INFO] [stdout] --> examples/packetdump.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | EtherTypes::Arp => handle_arp_packet(interface_name, ethernet), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `EtherTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `datalink` [INFO] [stdout] --> examples/packetdump.rs:232:22 [INFO] [stdout] | [INFO] [stdout] 232 | let interfaces = datalink::interfaces(); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `datalink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `datalink` [INFO] [stdout] --> examples/packetdump.rs:240:29 [INFO] [stdout] | [INFO] [stdout] 240 | let (_, mut rx) = match datalink::channel(&interface, Default::default()) { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `datalink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MutableEthernetPacket` [INFO] [stdout] --> examples/packetdump.rs:248:39 [INFO] [stdout] | [INFO] [stdout] 248 | let mut fake_ethernet_frame = MutableEthernetPacket::new(&mut buf[..]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `MutableEthernetPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ipv4Packet` [INFO] [stdout] --> examples/packetdump.rs:255:35 [INFO] [stdout] | [INFO] [stdout] 255 | let version = Ipv4Packet::new(&packet).unwrap().get_version(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Ipv4Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EtherTypes` [INFO] [stdout] --> examples/packetdump.rs:259:59 [INFO] [stdout] | [INFO] [stdout] 259 | fake_ethernet_frame.set_ethertype(EtherTypes::Ipv4); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `EtherTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EtherTypes` [INFO] [stdout] --> examples/packetdump.rs:266:59 [INFO] [stdout] | [INFO] [stdout] 266 | fake_ethernet_frame.set_ethertype(EtherTypes::Ipv6); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `EtherTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EthernetPacket` [INFO] [stdout] --> examples/packetdump.rs:272:52 [INFO] [stdout] | [INFO] [stdout] 272 | handle_ethernet_frame(&interface, &EthernetPacket::new(packet).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `EthernetPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IpNextHeaderProtocol` in this scope [INFO] [stdout] --> examples/packetdump.rs:124:15 [INFO] [stdout] | [INFO] [stdout] 124 | protocol: IpNextHeaderProtocol, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EthernetPacket` in this scope [INFO] [stdout] --> examples/packetdump.rs:155:56 [INFO] [stdout] | [INFO] [stdout] 155 | fn handle_ipv4_packet(interface_name: &str, ethernet: &EthernetPacket) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EthernetPacket` in this scope [INFO] [stdout] --> examples/packetdump.rs:170:56 [INFO] [stdout] | [INFO] [stdout] 170 | fn handle_ipv6_packet(interface_name: &str, ethernet: &EthernetPacket) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EthernetPacket` in this scope [INFO] [stdout] --> examples/packetdump.rs:185:55 [INFO] [stdout] | [INFO] [stdout] 185 | fn handle_arp_packet(interface_name: &str, ethernet: &EthernetPacket) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NetworkInterface` in this scope [INFO] [stdout] --> examples/packetdump.rs:202:38 [INFO] [stdout] | [INFO] [stdout] 202 | fn handle_ethernet_frame(interface: &NetworkInterface, ethernet: &EthernetPacket) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EthernetPacket` in this scope [INFO] [stdout] --> examples/packetdump.rs:202:67 [INFO] [stdout] | [INFO] [stdout] 202 | fn handle_ethernet_frame(interface: &NetworkInterface, ethernet: &EthernetPacket) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NetworkInterface` in this scope [INFO] [stdout] --> examples/packetdump.rs:229:42 [INFO] [stdout] | [INFO] [stdout] 229 | let interface_names_match = |iface: &NetworkInterface| iface.name == iface_name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Ethernet` in this scope [INFO] [stdout] --> examples/packetdump.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | Ok(Ethernet(tx, rx)) => (tx, rx), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MacAddr` in this scope [INFO] [stdout] --> examples/packetdump.rs:257:61 [INFO] [stdout] | [INFO] [stdout] 257 | fake_ethernet_frame.set_destination(MacAddr(0, 0, 0, 0, 0, 0)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MacAddr` in this scope [INFO] [stdout] --> examples/packetdump.rs:258:56 [INFO] [stdout] | [INFO] [stdout] 258 | fake_ethernet_frame.set_source(MacAddr(0, 0, 0, 0, 0, 0)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MacAddr` in this scope [INFO] [stdout] --> examples/packetdump.rs:264:61 [INFO] [stdout] | [INFO] [stdout] 264 | fake_ethernet_frame.set_destination(MacAddr(0, 0, 0, 0, 0, 0)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MacAddr` in this scope [INFO] [stdout] --> examples/packetdump.rs:265:56 [INFO] [stdout] | [INFO] [stdout] 265 | fake_ethernet_frame.set_source(MacAddr(0, 0, 0, 0, 0, 0)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 38 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433, E0463, E0531. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0463, E0531. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/pnettest.rs:354:36 [INFO] [stdout] | [INFO] [stdout] 354 | ethernet_header.set_source(interface.mac_address()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `pnet_base::macaddr::MacAddr`, found struct `MacAddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/pnettest.rs:355:41 [INFO] [stdout] | [INFO] [stdout] 355 | ethernet_header.set_destination(interface.mac_address()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `pnet_base::macaddr::MacAddr`, found struct `MacAddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/pnettest.rs:433:36 [INFO] [stdout] | [INFO] [stdout] 433 | ethernet_header.set_source(interface.mac_address()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `pnet_base::macaddr::MacAddr`, found struct `MacAddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/pnettest.rs:434:41 [INFO] [stdout] | [INFO] [stdout] 434 | ethernet_header.set_destination(interface.mac_address()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `pnet_base::macaddr::MacAddr`, found struct `MacAddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "05e222e5b0c26828bf6294c7d2d7cc7ec9df5af894d12e9b6162781833e3280d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05e222e5b0c26828bf6294c7d2d7cc7ec9df5af894d12e9b6162781833e3280d", kill_on_drop: false }` [INFO] [stdout] 05e222e5b0c26828bf6294c7d2d7cc7ec9df5af894d12e9b6162781833e3280d