#include <test/fuzz/util/net.h>
#include <compat/compat.h>
#include <netaddress.h>
#include <node/protocol_version.h>
#include <protocol.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/util.h>
#include <test/util/net.h>
#include <util/sock.h>
#include <util/time.h>
#include <array>
#include <cassert>
#include <cerrno>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <thread>
#include <vector>
Go to the source code of this file.
◆ ConsumeAddress()
◆ ConsumeDeserializationParams() [1/2]
◆ ConsumeDeserializationParams() [2/2]
◆ 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.
◆ FillNode()