summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--talpid-tunnel/src/tun_provider/unix.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/talpid-tunnel/src/tun_provider/unix.rs b/talpid-tunnel/src/tun_provider/unix.rs
index 885f640555..525e895d06 100644
--- a/talpid-tunnel/src/tun_provider/unix.rs
+++ b/talpid-tunnel/src/tun_provider/unix.rs
@@ -107,9 +107,6 @@ pub trait NetworkInterface: Sized {
/// Set host IPs for interface
fn set_ip(&mut self, ip: IpAddr) -> Result<(), NetworkInterfaceError>;
- /// Set MTU for interface
- fn set_mtu(&mut self, mtu: u16) -> Result<(), NetworkInterfaceError>;
-
/// Get name of interface
fn get_name(&self) -> &str;
}
@@ -200,12 +197,6 @@ impl NetworkInterface for TunnelDevice {
.map_err(NetworkInterfaceError::ToggleDevice)
}
- fn set_mtu(&mut self, mtu: u16) -> Result<(), NetworkInterfaceError> {
- self.dev
- .set_mtu(i32::from(mtu))
- .map_err(NetworkInterfaceError::ToggleDevice)
- }
-
fn get_name(&self) -> &str {
self.dev.name()
}