mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-22 06:17:48 +00:00
Merge branch 'dev' into edge
This commit is contained in:
commit
6f9d1fc14c
@ -119,4 +119,13 @@ std::shared_ptr<EthernetTap> EthernetTap::newInstance(
|
|||||||
EthernetTap::EthernetTap() {}
|
EthernetTap::EthernetTap() {}
|
||||||
EthernetTap::~EthernetTap() {}
|
EthernetTap::~EthernetTap() {}
|
||||||
|
|
||||||
|
bool EthernetTap::addIps(std::vector<InetAddress> ips)
|
||||||
|
{
|
||||||
|
for(std::vector<InetAddress>::const_iterator i(ips.begin());i!=ips.end();++i) {
|
||||||
|
if (!addIp(*i))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace ZeroTier
|
} // namespace ZeroTier
|
||||||
|
@ -45,7 +45,7 @@ public:
|
|||||||
virtual void setEnabled(bool en) = 0;
|
virtual void setEnabled(bool en) = 0;
|
||||||
virtual bool enabled() const = 0;
|
virtual bool enabled() const = 0;
|
||||||
virtual bool addIp(const InetAddress &ip) = 0;
|
virtual bool addIp(const InetAddress &ip) = 0;
|
||||||
virtual bool addIps(std::vector<InetAddress> ips) = 0;
|
virtual bool addIps(std::vector<InetAddress> ips); // uses addIp() unless overridden
|
||||||
virtual bool removeIp(const InetAddress &ip) = 0;
|
virtual bool removeIp(const InetAddress &ip) = 0;
|
||||||
virtual std::vector<InetAddress> ips() const = 0;
|
virtual std::vector<InetAddress> ips() const = 0;
|
||||||
virtual void put(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len) = 0;
|
virtual void put(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len) = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user