working commit

This commit is contained in:
Олег Бородин
2026-05-20 18:04:31 +02:00
parent f2c0679255
commit 4bdd82ddb9
3 changed files with 13 additions and 6 deletions
+7
View File
@@ -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 {};
}