#include <addrman.h>
#include <addrman_impl.h>
#include <net.h>
#include <net_permissions.h>
#include <netaddress.h>
#include <node/connection_types.h>
#include <node/eviction.h>
#include <protocol.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/util.h>
#include <test/util/net.h>
#include <threadsafety.h>
#include <util/asmap.h>
#include <util/sock.h>
#include <chrono>
#include <cstdint>
#include <limits>
#include <memory>
#include <optional>
#include <string>
Go to the source code of this file.
◆ ConsumeAddress()
◆ ConsumeNetAddr()
Create a CNetAddr.
It may have addr.IsValid() == false
.
- Parameters
-
[in,out] | fuzzed_data_provider | Take data for the address from this, if rand is nullptr . |
[in,out] | rand | If not nullptr, take data from it instead of from fuzzed_data_provider . Prefer generating addresses using fuzzed_data_provider because it is not uniform. Only use rand if fuzzed_data_provider is exhausted or its data is needed for other things. |
- Returns
- a "random" network address.
Definition at line 28 of file net.cpp.
◆ ConsumeNetGroupManager()
◆ ConsumeNode()
template<bool ReturnUniquePtr = false>
auto ConsumeNode |
( |
FuzzedDataProvider & |
fuzzed_data_provider, |
|
|
const std::optional< NodeId > & |
node_id_in = std::nullopt |
|
) |
| |
|
noexcept |
◆ ConsumeNodeAsUniquePtr()
◆ ConsumeService()
◆ ConsumeSock()
◆ ConsumeSubNet()