Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code still assumes memory layout? #1391

Merged
merged 1 commit into from
Aug 1, 2022
Merged

Conversation

leshow
Copy link
Contributor

@leshow leshow commented Aug 1, 2022

I saw that the IP types are changing in Rust... I also saw that this library updated in #987 but (and I could be wrong here) I think there's still an issue on recv? As far as I can tell, decode_recv still assumes the layout to be either sockaddr_in or in_addr

If I'm misunderstanding something here, sorry. I am not a libc or unsafe expert by any stretch.

I copied some of the conversion code from mio: https://github.com/tokio-rs/mio/blob/master/src/sys/unix/net.rs#L143

djc
djc previously approved these changes Aug 1, 2022
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, some minor nits and I'd like to have @Ralith look at this, but thanks for fixing this up!

quinn-udp/src/unix.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@Ralith Ralith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@Ralith Ralith merged commit 5b714a3 into quinn-rs:main Aug 1, 2022
@bw-solana
Copy link

Any idea when a release with this fix will be made? We're trying to move our Rust compiler version forward, but everything breaks starting w/ 2022-08-01 without this change

@Ralith
Copy link
Collaborator

Ralith commented Aug 22, 2022

It looks like this was included in 0.8.4. Is that not working for you?

@bw-solana
Copy link

Ah, looks like we're on quinn 0.8.4 but quinn-udp is still on 0.1.1. I can see the changes included in quinn-udp 0.1.3. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants