diff --git a/crates/wtfnet-probe/src/lib.rs b/crates/wtfnet-probe/src/lib.rs index 60b2860..d3ddf6e 100644 --- a/crates/wtfnet-probe/src/lib.rs +++ b/crates/wtfnet-probe/src/lib.rs @@ -474,7 +474,7 @@ fn udp_trace_hop_v6( let socket = std::net::UdpSocket::bind("[::]:0").map_err(|err| ProbeError::Io(err.to_string()))?; socket - .set_multicast_loop_v6(u32::from(ttl)) + .set_unicast_hops_v6(u32::from(ttl)) .map_err(|err| ProbeError::Io(err.to_string()))?; let _ = socket.send_to(&[0u8; 4], addr); diff --git a/docs/debian_error_msg.txt b/docs/debian_error_msg.txt new file mode 100644 index 0000000..2602495 --- /dev/null +++ b/docs/debian_error_msg.txt @@ -0,0 +1,16 @@ +error[E0308]: mismatched types + --> crates/wtfnet-probe/src/lib.rs:477:32 + | +477 | .set_multicast_loop_v6(u32::from(ttl)) + | --------------------- ^^^^^^^^^^^^^^ expected `bool`, found `u32` + | | + | arguments to this method are incorrect + | +note: method defined here + --> /home/dazuo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/sr c/net/udp.rs:527:12 + | +527 | pub fn set_multicast_loop_v6(&self, multicast_loop_v6: bool) -> io::Result<()> { + | ^^^^^^^^^^^^^^^^^^^^^ + +For more information about this error, try `rustc --explain E0308`. +error: could not compile `wtfnet-probe` (lib) due to 1 previous error \ No newline at end of file