Documentation ¶
Index ¶
- type Config
- type Interface
- type RoutingTable
- type TunInterface
- func (r *TunInterface) AddPeer(peer net.Addr, ipv4, ipv6 string)
- func (r *TunInterface) AddRoute(dst *net.IPNet, via net.IP) bool
- func (r *TunInterface) Close() error
- func (r *TunInterface) DelRoute(dst *net.IPNet, via net.IP) bool
- func (r *TunInterface) Device() tun.Device
- func (r *TunInterface) GetPeer(ip string) (net.Addr, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoutingTable ¶
type TunInterface ¶
type TunInterface struct {
// contains filtered or unexported fields
}
func (*TunInterface) Close ¶
func (r *TunInterface) Close() error
func (*TunInterface) Device ¶
func (r *TunInterface) Device() tun.Device
Click to show internal directories.
Click to hide internal directories.