Documentation ¶
Index ¶
- Constants
- Variables
- type Device
- type Ifreq
- type Mode
- type NativeTun
- func (tun *NativeTun) Addr() net.IP
- func (tun *NativeTun) Close() error
- func (tun *NativeTun) IPToString() string
- func (tun *NativeTun) Name() string
- func (tun *NativeTun) Read(buff []byte) (n int, err error)
- func (tun *NativeTun) SetIP(network, ip string) error
- func (tun *NativeTun) SetMTU(mtu int) error
- func (tun *NativeTun) Write(buff []byte) (int, error)
Constants ¶
View Source
const ( SYS_IOCTL = 29 TUNSETIFF = 0x400454ca TUNSETPERSIST = 0x400454cb TUNSETGROUP = 0x400454ce TUNSETOWNER = 0x400454cc IFF_NO_PI = 0x1000 IFF_TUN = 0x1 IFF_TAP = 0x2 TUN Mode = iota TAP )
Variables ¶
View Source
var DefaultNamePrefix = "fvpn"
Functions ¶
This section is empty.
Types ¶
type Device ¶
Click to show internal directories.
Click to hide internal directories.