Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
pcp.cpp File Reference
Include dependency graph for pcp.cpp:

Go to the source code of this file.

Functions

void port_map_target_init ()
 FUZZ_TARGET (pcp_request_port_map,.init=port_map_target_init)
 FUZZ_TARGET (natpmp_request_port_map,.init=port_map_target_init)

Variables

constexpr PCPMappingNonce PCP_NONCE {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc}
 Fixed nonce to use in PCP port mapping requests.
constexpr int NUM_TRIES {5}
 Number of attempts to request a NAT-PMP or PCP port mapping to the gateway.
constexpr std::chrono::duration TIMEOUT {100ms}
 Timeout for each attempt to request a port mapping.

Function Documentation

◆ FUZZ_TARGET() [1/2]

FUZZ_TARGET ( natpmp_request_port_map ,
. init = port_map_target_init )

Definition at line 58 of file pcp.cpp.

Here is the call graph for this function:

◆ FUZZ_TARGET() [2/2]

FUZZ_TARGET ( pcp_request_port_map ,
. init = port_map_target_init )

Definition at line 30 of file pcp.cpp.

Here is the call graph for this function:

◆ port_map_target_init()

void port_map_target_init ( )

Definition at line 25 of file pcp.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ NUM_TRIES

int NUM_TRIES {5}
constexpr

Number of attempts to request a NAT-PMP or PCP port mapping to the gateway.

Definition at line 20 of file pcp.cpp.

◆ PCP_NONCE

PCPMappingNonce PCP_NONCE {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc}
constexpr

Fixed nonce to use in PCP port mapping requests.

Definition at line 17 of file pcp.cpp.

◆ TIMEOUT

std::chrono::duration TIMEOUT {100ms}
constexpr

Timeout for each attempt to request a port mapping.

Definition at line 23 of file pcp.cpp.