MacDNSHelper.hpp 643 B

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