#include <config/bitcoin-config.h>
#include <mapport.h>
#include <clientversion.h>
#include <common/system.h>
#include <logging.h>
#include <net.h>
#include <netaddress.h>
#include <netbase.h>
#include <util/thread.h>
#include <util/threadinterrupt.h>
#include <compat/compat.h>
#include <natpmp.h>
#include <miniupnpc/miniupnpc.h>
#include <miniupnpc/upnpcommands.h>
#include <miniupnpc/upnperrors.h>
#include <atomic>
#include <cassert>
#include <chrono>
#include <functional>
#include <string>
#include <thread>
Go to the source code of this file.
◆ DispatchMapPort()
| static void DispatchMapPort |
( |
| ) |
|
|
static |
◆ InterruptMapPort()
| void InterruptMapPort |
( |
| ) |
|
◆ MapPortProtoSetEnabled()
◆ NatpmpDiscover()
| static bool NatpmpDiscover |
( |
natpmp_t * |
natpmp, |
|
|
struct in_addr & |
external_ipv4_addr |
|
) |
| |
|
static |
◆ NatpmpInit()
| static bool NatpmpInit |
( |
natpmp_t * |
natpmp | ) |
|
|
static |
◆ NatpmpMapping()
| static bool NatpmpMapping |
( |
natpmp_t * |
natpmp, |
|
|
const struct in_addr & |
external_ipv4_addr, |
|
|
uint16_t |
private_port, |
|
|
bool & |
external_ip_discovered |
|
) |
| |
|
static |
◆ ProcessNatpmp()
| static bool ProcessNatpmp |
( |
| ) |
|
|
static |
◆ ProcessUpnp()
| static bool ProcessUpnp |
( |
| ) |
|
|
static |
◆ StartMapPort()
| void StartMapPort |
( |
bool |
use_upnp, |
|
|
bool |
use_natpmp |
|
) |
| |
◆ StartThreadMapPort()
| void StartThreadMapPort |
( |
| ) |
|
◆ StopMapPort()
◆ ThreadMapPort()
| static void ThreadMapPort |
( |
| ) |
|
|
static |
◆ g_mapport_current_proto
◆ g_mapport_enabled_protos
◆ g_mapport_external_port
| uint16_t g_mapport_external_port = 0 |
|
static |
◆ g_mapport_interrupt
◆ g_mapport_thread
| std::thread g_mapport_thread |
|
static |
◆ PORT_MAPPING_REANNOUNCE_PERIOD
| constexpr auto PORT_MAPPING_REANNOUNCE_PERIOD {20min} |
|
static |
◆ PORT_MAPPING_RETRY_PERIOD
| constexpr auto PORT_MAPPING_RETRY_PERIOD {5min} |
|
static |