working commit
This commit is contained in:
@@ -37,6 +37,13 @@ std::expected<void, std::string> TunService::Init(void) {
|
||||
};
|
||||
auto totalNets = totalHostsRes.value() / 4;
|
||||
uxlogger.Debug(std::format("Total networks: {}", totalNets));
|
||||
for (uint64_t i = 0; i < totalNets; i += 4) {
|
||||
auto laddrRes = nethost(netaddr, prefix, i + 1);
|
||||
auto raddrRes = nethost(netaddr, prefix, i + 2);
|
||||
auto laddr = laddrRes.value();
|
||||
auto raddr = raddrRes.value();
|
||||
uxlogger.Debug(std::format("Networks: {} {}", laddr, raddr));
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user