2020-08-05 21:26:11 +00:00
|
|
|
#ifndef MAC_DNS_HELPER
|
|
|
|
#define MAC_DNS_HELPER
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "../node/InetAddress.hpp"
|
2021-11-05 15:02:10 +00:00
|
|
|
#include "../node/MAC.hpp"
|
2020-08-05 21:26:11 +00:00
|
|
|
|
|
|
|
namespace ZeroTier {
|
|
|
|
|
|
|
|
class MacDNSHelper
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void setDNS(uint64_t nwid, const char *domain, const std::vector<InetAddress> &servers);
|
|
|
|
static void removeDNS(uint64_t nwid);
|
2023-07-25 23:03:29 +00:00
|
|
|
static bool addIps4(uint64_t nwid, const MAC mac, const char *dev, const std::vector<InetAddress> &addrs);
|
|
|
|
static bool addIps6(uint64_t nwid, const MAC mac, const char *dev, const std::vector<InetAddress> &addrs);
|
|
|
|
static bool removeIps4(uint64_t nwid);
|
|
|
|
static bool removeIps6(uint64_t nwid);
|
2020-08-05 21:26:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|