Documentation
¶
Index ¶
- Constants
- func AddrFromAddress(address tcpip.Address) netip.Addr
- func AddressFromAddr(destination netip.Addr) tcpip.Address
- func CalculateInterfaceName(name string) (tunName string)
- type GVisor
- type GVisorTun
- type Handler
- type LinuxTUN
- type Metadata
- type NativeTun
- func (t *NativeTun) Close() (err error)
- func (t *NativeTun) NewEndpoint() (stack.LinkEndpoint, error)
- func (t *NativeTun) Read(p []byte) (n int, err error)
- func (t *NativeTun) SetupDNS(addrs []netip.Addr) error
- func (t *NativeTun) TXChecksumOffload() bool
- func (t *NativeTun) TeardownDNS() error
- func (t *NativeTun) Write(p []byte) (n int, err error)
- func (t *NativeTun) WriteVectorised(buffers []*buf.Buffer) error
- type Options
- type Stack
- type StackOptions
- type TCPConn
- type TCPConnectionHandler
- type Tun
- type UDPConn
- type UDPConnectionHandler
- type WinTun
Constants ¶
View Source
const ( DefaultMTU = 9000 DefaultIPRoute2TableIndex = 4000 DefaultIPRoute2RuleIndex = 10086 )
Variables ¶
This section is empty.
Functions ¶
func CalculateInterfaceName ¶
Types ¶
type Handler ¶
type Handler interface { TCPConnectionHandler UDPConnectionHandler }
type NativeTun ¶
type NativeTun struct {
// contains filtered or unexported fields
}
func (*NativeTun) NewEndpoint ¶
func (t *NativeTun) NewEndpoint() (stack.LinkEndpoint, error)
func (*NativeTun) TXChecksumOffload ¶
func (*NativeTun) TeardownDNS ¶
type Options ¶
type StackOptions ¶
type TCPConnectionHandler ¶
type Tun ¶
type Tun interface { io.ReadWriteCloser N.VectorisedWriter SetupDNS([]netip.Addr) error TeardownDNS() error }
type UDPConnectionHandler ¶
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
example
|
|
internal
|
|
referenced from https://github.com/MetaCubeX/mihomo/blob/Alpha/component/process/
|
referenced from https://github.com/MetaCubeX/mihomo/blob/Alpha/component/process/ |
Click to show internal directories.
Click to hide internal directories.