https://github.com/pkg/taptun
Control TUN/TAP virtual network interfaces.
https://github.com/pkg/taptun
Last synced: about 2 months ago
JSON representation
Control TUN/TAP virtual network interfaces.
- Host: GitHub
- URL: https://github.com/pkg/taptun
- Owner: pkg
- License: mit
- Created: 2014-08-31T03:20:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-24T13:19:34.000Z (about 9 years ago)
- Last Synced: 2025-03-26T13:45:23.553Z (2 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 93
- Watchers: 6
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# taptun
import "github.com/pkg/taptun"Package taptun provides an interface to the user level network
TAP / TUN device.a href="https://www.kernel.org/doc/Documentation/networking/tuntap.txt">https://www.kernel.org/doc/Documentation/networking/tuntap.txt
## type Tap
``` go
type Tap struct {
io.ReadWriteCloser
// contains filtered or unexported fields
}
```
Tap represents a TAP Virtual Ethernet network device.### func OpenTap
``` go
func OpenTap() (*Tap, error)
```
OpenTap creates a tapN interface and returns a *Tap device connected to
the t pinterface.### func (\*Tap) String
``` go
func (t *Tap) String() string
```## type Tun
``` go
type Tun struct {
io.ReadWriteCloser
// contains filtered or unexported fields
}
```
Tun represents a TUN Virtual Point-to-Point network device.### func OpenTun
``` go
func OpenTun() (*Tun, error)
```
OpenTun creates a tunN interface and returns a *Tun device connected to
the tun interface.### func (\*Tun) String
``` go
func (t *Tun) String() string
```- - -
Generated by [godoc2md](http://godoc.org/github.com/davecheney/godoc2md)