Module crab_nat::natpmp

source ·

Enums§

Constants§

Functions§

  • Attempts to remove a NAT-PMP mapping on the gateway. Using a local port of None will remove all port mappings for our client with the given protocol.
  • Attempt to complete the ExternalAddress operation. Returns the public IP address of the gateway.
  • Attempts to map a port on the gateway using NAT-PMP. Will try to use the given external port if it is Some, otherwise it will let the gateway choose. Will request the specified lifetime if it is Some, otherwise it will use the RFC recommended lifetime.