Files
stvpn/networkaux.hpp
T
Олег Бородин 4bdd82ddb9 working commit
2026-05-20 18:04:31 +02:00

16 lines
469 B
C++

#ifndef NETWORKAUX_HPP
#include <expected>
#include <string>
std::expected<std::string, std::string> nethost(std::string network, uint prefix, uint64_t num);
std::expected<uint, std::string> netprefix(const std::string network);
std::expected<std::string, std::string> network(const std::string network);
uint64_t netcapa6(const uint prefix);
uint64_t netcapa4(const uint prefix);
std::expected<uint, std::string> netcapa(std::string network, uint prefix);
#endif