summaryrefslogtreecommitdiffhomepage
path: root/test/test-runner/src/net.rs
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim.hulthe@mullvad.net>2025-09-15 11:20:53 +0200
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-09-15 11:20:53 +0200
commit23fccfb8f7fc901405bbc141d9ea0472a1f08ce2 (patch)
treefedf61e730dd31a3b768a5a8af47960541c80ba6 /test/test-runner/src/net.rs
parent12bb6552e49e19510b3272f8d3d1f0c6277236ff (diff)
parent2aedc93c417ee8af682a8f5bae09ee42552fbfcb (diff)
downloadmullvadvpn-23fccfb8f7fc901405bbc141d9ea0472a1f08ce2.tar.xz
mullvadvpn-23fccfb8f7fc901405bbc141d9ea0472a1f08ce2.zip
Merge branch 'add-test-that-ipv6-in-the-tunnel-works-as-expected-on-des-1088'
Diffstat (limited to 'test/test-runner/src/net.rs')
-rw-r--r--test/test-runner/src/net.rs2
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);