![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#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 <util/threadinterrupt.h>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. | |
| FUZZ_TARGET | ( | natpmp_request_port_map | , |
| . | init = port_map_target_init ) |
| FUZZ_TARGET | ( | pcp_request_port_map | , |
| . | init = port_map_target_init ) |
| void port_map_target_init | ( | ) |
|
constexpr |
|
constexpr |