diff options
Diffstat (limited to 'test/test-runner/src/net.rs')
| -rw-r--r-- | test/test-runner/src/net.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-runner/src/net.rs b/test/test-runner/src/net.rs index 967d3c8c32..fe100f22c7 100644 --- a/test/test-runner/src/net.rs +++ b/test/test-runner/src/net.rs @@ -308,7 +308,7 @@ pub fn get_interface_mtu(interface_name: &str) -> Result<u16, test_rpc::Error> { // TODO: define SIOCGIFMTU for macos // SAFETY: SIOCGIFMTU expects an ifreq, and the socket is valid - if unsafe { libc::ioctl(sock.as_raw_fd(), libc::SIOCGIFMTU, &mut ifr) } < 0 { + if unsafe { libc::ioctl(sock.as_raw_fd(), libc::SIOCGIFMTU as libc::Ioctl, &mut ifr) } < 0 { let e = std::io::Error::last_os_error(); log::error!("{}", e); |
