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

Framed send fails with "Socket operation on non-socket" #48

Open
nmldiegues opened this issue Jun 22, 2022 · 3 comments
Open

Framed send fails with "Socket operation on non-socket" #48

nmldiegues opened this issue Jun 22, 2022 · 3 comments

Comments

@nmldiegues
Copy link

Reproduced by using https://github.com/meh/rust-tun/blob/master/examples/ping-tun.rs

When I ping 10.0.0.2, that program gets an ICMP packet, and it tries to reply. At that point it fails in https://github.com/meh/rust-tun/blob/master/examples/ping-tun.rs#L66 with code 88, Socket operation on non-socket

This is happening on Linux Ubuntu 20.04 with Kernel 5.13.0-44 , in case that is relevant for reproducibility.

@nmldiegues
Copy link
Author

Just noticed #43 --- this is likely a duplicate, let me try that fix.

@nmldiegues
Copy link
Author

Confirmed that #43 fixes this

Can the package be updated in https://crates.io/crates/tun ?
Seems like it was last updated 10 months ago, and that release contains this bug.

@yinheli
Copy link

yinheli commented Aug 27, 2022

ping

feifeigood pushed a commit to feifeigood/rust-tun that referenced this issue Jun 12, 2024
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

No branches or pull requests

2 participants