working commit

This commit is contained in:
2026-05-19 13:43:20 +02:00
parent 498a3867fb
commit 1566e0a502
10 changed files with 399 additions and 852 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ std::expected<void, std::string> Router::AddRoute(std::string address, uint64_t
};
char buffer[INET_ADDRSTRLEN];
uint32_t mask = (prefix == 0) ? 0 : (~0U << (32 - prefix));
uint32_t mask = (prefix == 0) ? 0 : htonl(~0U << (32 - prefix));
struct in_addr addr;
addr.s_addr = mask;