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 54cfda6 commit f0249fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/freebsd/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{
device::{AbstractDevice, ETHER_ADDR_LEN},
error::{Error, Result},
platform::freebsd::sys::*,
platform::posix::{self, sockaddr_union, Fd, Tun},
platform::posix::{self, ipaddr_to_sockaddr, sockaddr_union, Fd, Tun},
IntoAddress,
};
use libc::{
Expand Down Expand Up @@ -424,7 +424,7 @@ impl AbstractDevice for Device {
}
}

fn set_broadcast<A: IntoAddress>(&self, _value: A) -> Result<()> {
fn set_broadcast<A: IntoAddress>(&self, value: A) -> Result<()> {
let value = value.into_address()?;
let IpAddr::V4(value) = value else {
unimplemented!("do not support IPv6 yet")
Expand Down

0 comments on commit f0249fe

Please sign in to comment.