From a0845dcd05bacdfc63f16bb280a415933f00a7ed Mon Sep 17 00:00:00 2001 From: xmh0511 <970252187@qq.com> Date: Thu, 12 Sep 2024 14:46:25 +0800 Subject: [PATCH] test --- src/platform/freebsd/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/freebsd/device.rs b/src/platform/freebsd/device.rs index 3ce2de2..f93139f 100644 --- a/src/platform/freebsd/device.rs +++ b/src/platform/freebsd/device.rs @@ -436,7 +436,7 @@ impl AbstractDevice for Device { let mask = posix::sockaddr_union::from(((255,255,255,0).into_address().unwrap(), 0)); broad.addr4.sin_addr.s_addr = broad.addr4.sin_addr.s_addr | !mask.addr4.sin_addr.s_addr; req.ifr_ifru.ifru_broadaddr = broad.addr; - println!("{:?}",broad.addr4); + println!("{:?}",broad.addr); if let Err(err) = siocsifbrdaddr(ctl.as_raw_fd(), &req) { return Err(io::Error::from(err).into()); }