working commit
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user