MacDNSHelper.hpp 650 B

1234567891011121314151617181920212223
  1. #ifndef MAC_DNS_HELPER
  2. #define MAC_DNS_HELPER
  3. #include "../node/InetAddress.hpp"
  4. #include "../node/MAC.hpp"
  5. #include <vector>
  6. namespace ZeroTier {
  7. class MacDNSHelper {
  8. public:
  9. static void setDNS(uint64_t nwid, const char* domain, const std::vector<InetAddress>& servers);
  10. static void removeDNS(uint64_t nwid);
  11. static bool addIps4(uint64_t nwid, const MAC mac, const char* dev, const std::vector<InetAddress>& addrs);
  12. static bool addIps6(uint64_t nwid, const MAC mac, const char* dev, const std::vector<InetAddress>& addrs);
  13. static bool removeIps4(uint64_t nwid);
  14. static bool removeIps6(uint64_t nwid);
  15. };
  16. } // namespace ZeroTier
  17. #endif