diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-01-04 18:37:52 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-01-11 11:55:17 +0100 |
commit | c33fbab25c82b6a18773b80e8b355c987066ae5a (patch) | |
tree | e9787dfcf3ff895e07fd9facb1c908e9e0f22d18 /test/functional | |
parent | 15877d160cb8aaa53742fbfeea7296077e30edea (diff) | |
download | bitcoin-c33fbab25c82b6a18773b80e8b355c987066ae5a.tar.xz |
net: allow CSubNet of non-IP networks
Allow creation of valid `CSubNet` objects of non-IP networks and only
match the single address they were created from (like /32 for IPv4 or
/128 for IPv6).
This fixes a deficiency in `CConnman::DisconnectNode(const CNetAddr& addr)`
and in `BanMan` which assume that creating a subnet from any address
using the `CSubNet(CNetAddr)` constructor would later match that address
only. Before this change a non-IP subnet would be invalid and would not
match any address.
Github-Pull: #20852
Rebased-From: 94d335da7f8232bc653c9b08b0a33b517b4c98ad
Diffstat (limited to 'test/functional')
0 files changed, 0 insertions, 0 deletions