All Projects → lab11 → go-tuntap

lab11 / go-tuntap

Licence: other
Use Tun/Tap devices with Go

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Tun / Tap Bindings for Go

Install

go get github.com/lab11/go-tuntap/tuntap

Usage

import "github.com/lab11/go-tuntap/tuntap"

func main () {
    var tund *tuntap.Interface
    var err error
    var inpkt *tuntap.Packet

    tun_metahdr := false
    tund, err  = tuntap.Open("tun0", tuntap.DevTun, tun_metahdr)
    inpkt, err = tund.ReadPacket()
}

Thanks

Thank you to @danderson for writing the original version at http://code.google.com/p/tuntap/ .

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].