diff --git a/Cargo.lock b/Cargo.lock index 837dbe5..c1f5e0d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -508,9 +508,9 @@ dependencies = [ [[package]] name = "etherparse" -version = "0.13.0" +version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "827292ea592108849932ad8e30218f8b1f21c0dfd0696698a18b5d0aed62d990" +checksum = "24890603eb4b43aa788f02261ce21714449033e3e2ab93692f0ab18480c3c9b1" dependencies = [ "arrayvec", ] diff --git a/Cargo.toml b/Cargo.toml index a9c7c34..c5eebe7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,7 @@ reqwest = { version = "0.11.22", default-features = false, features = [ "tokio-rustls", "json", ] } -etherparse = "0.13.0" +etherparse = "0.14.2" quinn = { version = "0.10.2", default-features = false, features = [ "runtime-tokio", "rustls", diff --git a/src/data.rs b/src/data.rs index 7953b2b..6ee94dc 100644 --- a/src/data.rs +++ b/src/data.rs @@ -342,9 +342,9 @@ impl DataPlane { continue; }; - let (_, _, body) = - etherparse::IpHeader::from_slice(&real_packet[16..]).unwrap(); - let (header, body) = etherparse::Icmpv6Header::from_slice(body).unwrap(); + let (_, body) = etherparse::IpHeaders::from_slice(&real_packet[16..]).unwrap(); + let (header, body) = + etherparse::Icmpv6Header::from_slice(body.payload).unwrap(); // Where are the leftover bytes coming from let orig_pb = match key.decrypt(body[..body.len()].to_vec()) {