Versions in this module Expand all Collapse all v0 v0.0.2 Jun 19, 2023 Changes in this version + type GoTunDevice interface + AddRoute func(ip []byte, mask uint8) error + Close func() error + DelRoute func(ip []byte, mask uint8) error + Open func() error + Read func() ([]byte, error) + Wirte func(pack []byte) (int, error) + func NewDevice(name string, address [4]byte, mtu int) (GoTunDevice, error) v0.0.1 Jun 19, 2023 Changes in this version + const TUNNoPersist — linux/amd64 + func NewTunDevice(name string, address [4]byte, mtu int) (tunDevice, error) + type C_Sockaddr struct — linux/amd64 + Data [12]byte + Family uint16 + Pad uint16 + type Rtentry struct — linux/amd64 + Class uint8 + Dev *byte + Dst C_Sockaddr + Flags uint16 + Gateway C_Sockaddr + Genmask C_Sockaddr + Irtt uint16 + Metric int16 + Mtu uint32 + Pad0 [4]byte + Pad1 uint64 + Pad2 int16 + Pad3 uint64 + Pad4 [3]int16 + Tos uint8 + Window uint32