Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xmh0511 committed Sep 12, 2024
1 parent eb32b03 commit a0845dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/freebsd/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit a0845dc

Please sign in to comment.