aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-09-13 11:09:53 +0200
committerJon Atack <jon@atack.com>2020-10-02 16:42:02 +0200
commitf36887fa47b42af60f8a06a3995baca7c73ca310 (patch)
tree139254b4d4ae8a12232d6e1af731b7a91d565534 /src/netaddress.cpp
parent5cb5fd3005435f3a7ca0c3401951d1db8db4fb88 (diff)
net: rename CNetAddr scopeId to m_scope_id, improve code doc
Diffstat (limited to 'src/netaddress.cpp')
-rw-r--r--src/netaddress.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netaddress.cpp b/src/netaddress.cpp
index 08714dc2ec..0c4c0a339b 100644
--- a/src/netaddress.cpp
+++ b/src/netaddress.cpp
@@ -281,7 +281,7 @@ CNetAddr::CNetAddr(const struct in_addr& ipv4Addr)
CNetAddr::CNetAddr(const struct in6_addr& ipv6Addr, const uint32_t scope)
{
SetLegacyIPv6(Span<const uint8_t>(reinterpret_cast<const uint8_t*>(&ipv6Addr), sizeof(ipv6Addr)));
- scopeId = scope;
+ m_scope_id = scope;
}
bool CNetAddr::IsBindAny() const
@@ -918,7 +918,7 @@ bool CService::GetSockAddr(struct sockaddr* paddr, socklen_t *addrlen) const
memset(paddrin6, 0, *addrlen);
if (!GetIn6Addr(&paddrin6->sin6_addr))
return false;
- paddrin6->sin6_scope_id = scopeId;
+ paddrin6->sin6_scope_id = m_scope_id;
paddrin6->sin6_family = AF_INET6;
paddrin6->sin6_port = htons(port);
return true;