Versions in this module Expand all Collapse all v0 v0.0.1 Mar 3, 2024 Changes in this version + type ConnHandler interface + HandleTCPConn func(*ConnTuple, net.Conn) + HandleUDPConn func(*ConnTuple, net.PacketConn) + type ConnTuple struct + DstIP netip.Addr + DstPort uint16 + SrcIP netip.Addr + SrcPort uint16 + func (t *ConnTuple) Dst() string + func (t *ConnTuple) DstAddrPort() netip.AddrPort + func (t *ConnTuple) Src() string + type TunNetstack struct + func New(tunCfg tun.TunConfig) *TunNetstack + func (ns *TunNetstack) Close() error + func (ns *TunNetstack) RegisterConnHandler(handler ConnHandler) + func (ns *TunNetstack) Start() (err error)