Giter Site home page Giter Site logo

Comments (5)

meh avatar meh commented on July 24, 2024

I know, I wasn't done yet with other stuff, that's why I haven't published yet, sadly I haven't had time to work on it in the past few weeks.

Was going to add documentation and I was considering separating the interface handling stuff into a separate crate since all those bindings and wrappers for ioctls could be used on any other interface.

I can publish a 0.1.1 tomorrow if you need it, but stuff is probably going to change.

from rust-tun.

vi avatar vi commented on July 24, 2024

Also ability to split Read and Write parts and send one to another thread would be nice, to allow mio-less full duplex mode.

from rust-tun.

meh avatar meh commented on July 24, 2024

Yeah that's also in the works, I just have to figure out the best way to go about it, since I also want to create a tap crate with an interface similar to this one, which means common traits between the two.

Just need to figure out how to split out the interface related stuff and the file descriptor related stuff so there's no pain adding support for more platforms.

from rust-tun.

vi avatar vi commented on July 24, 2024

Now I use a hack to get multi-threadable tun: let dev_copy = unsafe { ::std::fs::File::from_raw_fd(dev.as_raw_fd()) };

from rust-tun.

meh avatar meh commented on July 24, 2024

Alright, there's tun::platform::Device::split() on Linux, and other configuration stuff, one change I needed and can't figure out how to make better is that IFF_NO_PI is not set now, but you can't change that flag after creating the device, so gotta figure out something to make that flag optional.

from rust-tun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.