package nat

Import Path
	github.com/libp2p/go-libp2p/p2p/net/nat/internal/nat (on go.dev)

Dependency Relation
	imports 16 packages, and imported by one package

Involved Source Files Package nat implements NAT handling facilities natpmp.go upnp.go
Package-Level Type Names (total 2)
/* sort by: | */
Errs []error ( ErrNoNATFound) Error() string ( ErrNoNATFound) Unwrap() []error ErrNoNATFound : error
protocol is either "udp" or "tcp" AddPortMapping maps a port on the local host to an external port. DeletePortMapping removes a port mapping. GetDeviceAddress returns the internal address of the gateway device. GetExternalAddress returns the external address of the gateway device. GetInternalAddress returns the address of the local host. Type returns the kind of NAT port mapping service that is used func DiscoverGateway(ctx context.Context) (NAT, error)
Package-Level Functions (only one)
DiscoverGateway attempts to find a gateway device.
Package-Level Variables (total 2)