types

package
v0.0.0-...-83bc9a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NameMappingSuffix = ".pk.ygg"

Variables

This section is empty.

Functions

func ProxyTCP

func ProxyTCP(mtu uint64, c1, c2 net.Conn) error

func ReverseProxyUDP

func ReverseProxyUDP(mtu uint64, dst net.PacketConn, dstAddr net.Addr, src net.Conn) error

Types

type NameResolver

type NameResolver struct {
	// contains filtered or unexported fields
}

func NewNameResolver

func NewNameResolver(stack *netstack.YggdrasilNetstack, nameserver string) *NameResolver

func (*NameResolver) Resolve

func (r *NameResolver) Resolve(ctx context.Context, name string) (context.Context, net.IP, error)

type TCPLocalMappings

type TCPLocalMappings []TCPMapping

func (*TCPLocalMappings) Set

func (m *TCPLocalMappings) Set(value string) error

func (*TCPLocalMappings) String

func (m *TCPLocalMappings) String() string

type TCPMapping

type TCPMapping struct {
	Listen *net.TCPAddr
	Mapped *net.TCPAddr
}

type TCPRemoteMappings

type TCPRemoteMappings []TCPMapping

func (*TCPRemoteMappings) Set

func (m *TCPRemoteMappings) Set(value string) error

func (*TCPRemoteMappings) String

func (m *TCPRemoteMappings) String() string

type UDPLocalMappings

type UDPLocalMappings []UDPMapping

func (*UDPLocalMappings) Set

func (m *UDPLocalMappings) Set(value string) error

func (*UDPLocalMappings) String

func (m *UDPLocalMappings) String() string

type UDPMapping

type UDPMapping struct {
	Listen *net.UDPAddr
	Mapped *net.UDPAddr
}

type UDPRemoteMappings

type UDPRemoteMappings []UDPMapping

func (*UDPRemoteMappings) Set

func (m *UDPRemoteMappings) Set(value string) error

func (*UDPRemoteMappings) String

func (m *UDPRemoteMappings) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL