clarify new member's purpose and name. add comment.

pull/1538/head
Jeff Becker 3 years ago
parent 1526941f3a
commit 8239efa71b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -745,8 +745,8 @@ namespace llarp
const auto maybe = GetInterfaceIPv6Address(m_IfName); const auto maybe = GetInterfaceIPv6Address(m_IfName);
if (maybe.has_value()) if (maybe.has_value())
{ {
m_OurIP6 = *maybe; m_OurIPv6 = *maybe;
LogInfo(Name(), " has ipv6 address ", m_OurIP6); LogInfo(Name(), " has ipv6 address ", m_OurIPv6);
} }
netloop->add_ticker([&]() { Flush(); }); netloop->add_ticker([&]() { Flush(); });
@ -970,7 +970,7 @@ namespace llarp
} }
else if (pkt.IsV6()) else if (pkt.IsV6())
{ {
dst = m_OurIP6; dst = m_OurIPv6;
src = pkt.srcv6(); src = pkt.srcv6();
} }
// find what exit we think this should be for // find what exit we think this should be for

@ -235,8 +235,8 @@ namespace llarp
std::unordered_map<huint128_t, llarp_time_t> m_IPActivity; std::unordered_map<huint128_t, llarp_time_t> m_IPActivity;
/// our ip address (host byte order) /// our ip address (host byte order)
huint128_t m_OurIP; huint128_t m_OurIP;
/// our ip for ip6 /// our network interface's ipv6 address
huint128_t m_OurIP6; huint128_t m_OurIPv6;
/// next ip address to allocate (host byte order) /// next ip address to allocate (host byte order)
huint128_t m_NextIP; huint128_t m_NextIP;

Loading…
Cancel
Save