udp

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NATFilterType

type NATFilterType int
const (
	NATFilterFailed NATFilterType = iota
	NATFilterIndependent
	NATFilterAddrIndependent
	NATFilterAddrPortIndependent
)

func FilteringTests

func FilteringTests(conn net.PacketConn, addrStr string) NATFilterType

RFC5780: 4.4. Determining NAT Filtering Behavior

type NATMapType

type NATMapType int
const (
	NATMapFailed NATMapType = iota
	NATMapIndependent
	NATMapAddrIndependent
	NATMapAddrPortIndependent
	NATMapNoNat
)

func MappingTests

func MappingTests(conn net.PacketConn, addrStr string) NATMapType

RFC5780: 4.3. Determining NAT Mapping Behavior

type Udp

type Udp struct {
	NATType string
}

func (*Udp) Run

func (m *Udp) Run(proxy interfaces.Vendor, r *interfaces.SlaveRequest) error

func (*Udp) Type

Jump to

Keyboard shortcuts

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