mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 18:48:36 -07:00
fix memory init issue
and another place where dns data needs to be copied
This commit is contained in:
parent
6b197e067a
commit
d098a99d09
9 changed files with 47 additions and 4 deletions
|
@ -53,6 +53,7 @@ public:
|
|||
virtual void setFriendlyName(const char *friendlyName) = 0;
|
||||
virtual void scanMulticastGroups(std::vector<MulticastGroup> &added,std::vector<MulticastGroup> &removed) = 0;
|
||||
virtual void setMtu(unsigned int mtu) = 0;
|
||||
virtual void setDns(const char *domain, const std::vector<InetAddress> &servers) = 0;
|
||||
};
|
||||
|
||||
} // namespace ZeroTier
|
||||
|
|
|
@ -452,6 +452,11 @@ void MacEthernetTap::threadMain()
|
|||
}
|
||||
}
|
||||
|
||||
void MacEthernetTap::setDns(const char *domain, const std::vector<InetAddress> &servers)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
} // namespace ZeroTier
|
||||
|
||||
#endif // __APPLE__
|
||||
|
|
|
@ -56,6 +56,7 @@ public:
|
|||
virtual void setFriendlyName(const char *friendlyName);
|
||||
virtual void scanMulticastGroups(std::vector<MulticastGroup> &added,std::vector<MulticastGroup> &removed);
|
||||
virtual void setMtu(unsigned int mtu);
|
||||
virtual void setDns(const char *domain, const std::vector<InetAddress> &servers);
|
||||
|
||||
void threadMain()
|
||||
throw();
|
||||
|
|
|
@ -687,4 +687,9 @@ void MacKextEthernetTap::threadMain()
|
|||
}
|
||||
}
|
||||
|
||||
void MacKextEthernetTap::setDns(const char *domain, const std::vector<InetAddress> &servers)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
} // namespace ZeroTier
|
||||
|
|
|
@ -56,6 +56,8 @@ public:
|
|||
virtual void setFriendlyName(const char *friendlyName);
|
||||
virtual void scanMulticastGroups(std::vector<MulticastGroup> &added,std::vector<MulticastGroup> &removed);
|
||||
virtual void setMtu(unsigned int mtu);
|
||||
virtual void setDns(const char *domain, const std::vector<InetAddress> &servers);
|
||||
|
||||
|
||||
void threadMain()
|
||||
throw();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue