Skip to content

Commit

Permalink
Use new mtu crate
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Sep 2, 2024
1 parent 3427948 commit 0a6e0ad
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 301 deletions.
10 changes: 1 addition & 9 deletions neqo-transport/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,14 @@ workspace = true
# Sync with https://searchfox.org/mozilla-central/source/Cargo.lock 2024-02-08
enum-map = { version = "2.7", default-features = false }
indexmap = { version = "2.2", default-features = false } # See https://github.com/mozilla/neqo/issues/1858
libc = { version = "0.2", default-features = false }
log = { workspace = true }
mtu = { version = "0.1", default-features = false }
neqo-common = { path = "../neqo-common" }
neqo-crypto = { path = "../neqo-crypto" }
qlog = { workspace = true }
smallvec = { version = "1.11", default-features = false }
static_assertions = { version = "1.1", default-features = false }

[target."cfg(windows)".dependencies]
# Sync with https://searchfox.org/mozilla-central/source/Cargo.lock 2024-02-08
windows = { version = "0.58", default-features = false, features = [
"Win32_NetworkManagement_IpHelper",
"Win32_NetworkManagement_Ndis",
"Win32_Networking_WinSock",
] }

[dev-dependencies]
criterion = { version = "0.5", default-features = false, features = ["html_reports"] }
test-fixture = { path = "../test-fixture" }
Expand Down
2 changes: 0 additions & 2 deletions neqo-transport/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ mod fc;
pub mod frame;
#[cfg(not(fuzzing))]
mod frame;
mod mtu;
mod pace;
#[cfg(fuzzing)]
pub mod packet;
Expand Down Expand Up @@ -63,7 +62,6 @@ pub use self::{
},
events::{ConnectionEvent, ConnectionEvents},
frame::CloseError,
mtu::get_interface_mtu,
packet::MIN_INITIAL_PACKET_SIZE,
pmtud::Pmtud,
quic_datagrams::DatagramTracking,
Expand Down
289 changes: 0 additions & 289 deletions neqo-transport/src/mtu.rs

This file was deleted.

2 changes: 1 addition & 1 deletion neqo-transport/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use std::{
time::{Duration, Instant},
};

use mtu::get_interface_mtu;
use neqo_common::{hex, qdebug, qinfo, qlog::NeqoQlog, qtrace, Datagram, Encoder, IpTos};
use neqo_crypto::random;

Expand All @@ -24,7 +25,6 @@ use crate::{
cid::{ConnectionId, ConnectionIdRef, ConnectionIdStore, RemoteConnectionIdEntry},
ecn::{EcnCount, EcnInfo},
frame::{FRAME_TYPE_PATH_CHALLENGE, FRAME_TYPE_PATH_RESPONSE, FRAME_TYPE_RETIRE_CONNECTION_ID},
get_interface_mtu,
packet::PacketBuilder,
pmtud::Pmtud,
recovery::{RecoveryToken, SentPacket},
Expand Down

0 comments on commit 0a6e0ad

Please sign in to comment.