Bitcoin Core 28.99.0
P2P Digital Currency
Functions | Variables
pcp.cpp File Reference
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <test/fuzz/util/net.h>
#include <common/pcp.h>
#include <util/check.h>
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. More...
 
constexpr int NUM_TRIES {5}
 Number of attempts to request a NAT-PMP or PCP port mapping to the gateway. More...
 
constexpr std::chrono::duration TIMEOUT {100ms}
 Timeout for each attempt to request a port mapping. More...
 

Function Documentation

◆ FUZZ_TARGET() [1/2]

FUZZ_TARGET ( natpmp_request_port_map  ,
init = port_map_target_init 
)

Definition at line 56 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 29 of file pcp.cpp.

Here is the call graph for this function:

◆ port_map_target_init()

void port_map_target_init ( )

Definition at line 24 of file pcp.cpp.

Here is the call graph for this function:

Variable Documentation

◆ NUM_TRIES

constexpr int NUM_TRIES {5}
constexpr

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

Definition at line 19 of file pcp.cpp.

◆ PCP_NONCE

constexpr 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 16 of file pcp.cpp.

◆ TIMEOUT

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

Timeout for each attempt to request a port mapping.

Definition at line 22 of file pcp.cpp.