From 50afb2731328cbd20144c82fb2f6fa5dad47e47e Mon Sep 17 00:00:00 2001 From: Max Inden Date: Tue, 30 Jan 2024 19:50:19 +0100 Subject: [PATCH] Fix receive path --- neqo-common/src/udp.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neqo-common/src/udp.rs b/neqo-common/src/udp.rs index 7bcb9821ba..a3d45755a3 100644 --- a/neqo-common/src/udp.rs +++ b/neqo-common/src/udp.rs @@ -93,13 +93,14 @@ pub fn rx( ) { Err(e) => Err(e), Ok(n) => { + assert_eq!(n, 1, "only passed one slice"); *tos = if meta.ecn.is_some() { meta.ecn.unwrap() as u8 } else { IpTos::default().into() }; *ttl = 0xff; // TODO: get the real TTL - Ok((n, meta.addr)) + Ok((meta.len, meta.addr)) } } }