Git Product home page Git Product logo

taptun's People

Contributors

davecheney avatar ebfe avatar mdlayher avatar wsvn53 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

taptun's Issues

Truncated packets/IFF_NO_PI

The documentation seems to disagree with the code with regards to the protocol information header on packets received from the kernel. ReadFrame suggests the the protocol information header is present "The buffer supplied must be large enough to hold the whole frame including a 4 byte header returned by the kernel.", though the interfaces are created with IFF_NO_PI, so the header is not present. Similarly the documentation claims to detect and report truncated packets via returning ErrTruncated but doesn't (and afaik isn't possible without looking at the protocol information header).

Creating TAP/TUN devices with custom names

Hello! I'd like to add a patch to allow custom names for TAP/TUN devices created with this package. I already have it working on Linux, but I'm unsure if it's even possible on BSD.

Do you have any ideas, @ebfe ?

For the API, I was thinking something along the lines of: func NewTap(name string) (*Tap, error). The existing OpenTap() function would just invoke NewTap("").

Would you accept a PR for this functionality, @davecheney ?

Thanks for your time.

EDIT: my initial work-in-progress commit is here: https://github.com/mdlayher/taptun/commit/fb1ed47abe90a671166ad22f60383705ed5daa69.

No LICENSE file

As of now, this code doesn't have any sort of license attached to it. I assume this was just an oversight, as there are licenses on other pkg packages.

@davecheney , could you please add your preferred license to this repo? Thanks.

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.