meh / rust-tun

TUN device creation and handling.
340 stars 133 forks source link

Use readv/writev instead of recvmsg/sendmsg #44

Closed 0e4ef622 closed 2 years ago

0e4ef622 commented 2 years ago

Attempting to use vectored read/write on linux was resulting in ENOTSOCK.

Fixes #43.

spacemeowx2 commented 2 years ago

It works for me.

canselcik commented 2 years ago

This fixes it.

HsuJv commented 2 years ago

Awesome! It works for me

rappet commented 2 years ago

It does also work for me on Linux version 5.11.0-44-generic (buildd@lcy02-amd64-027) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.36.1) #48-Ubuntu SMP Fri Dec 10 09:46:22 UTC 2021. Thanks!

zu1k commented 2 years ago

It works for me.

Linux zu1k 5.16.7-1-MANJARO #1 SMP PREEMPT Sun Feb 6 12:22:29 UTC 2022 x86_64 GNU/Linux

llc1123 commented 2 years ago

LGTM

Voronar commented 2 years ago

It works for me on Android 10-11 (aarch64).

imlk0 commented 2 years ago

@meh This is a really essential fix, can you release a new version on crates.io?

meh commented 2 years ago

Yup, can you ping me again tomorrow if I don't please? In bed with covid.

yinheli commented 1 year ago

ping @meh

Could you please check this ? for release new version crates.io ?

imlk0 commented 1 year ago

ping @meh