Skip to content

Commit

Permalink
Fix receive path
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Jan 30, 2024
1 parent a299070 commit 50afb27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neqo-common/src/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}
Expand Down

0 comments on commit 50afb27

Please sign in to comment.