getting there...

This commit is contained in:
Adam Ierymenko 2019-09-21 18:22:25 -07:00
parent 5e35346f17
commit 2eef9d22e6
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
11 changed files with 278 additions and 45 deletions

View file

@ -128,4 +128,15 @@ bool EthernetTap::addIps(std::vector<InetAddress> ips)
return true;
}
std::string EthernetTap::routingDeviceName() const
{
#ifdef __WINDOWS__
char tapdev[64];
OSUtils::ztsnprintf(tapdev,sizeof(tapdev),"%.16llx",(unsigned long long)(((const WindowsEthernetTap *)(this))->luid().Value));
return std::string(tapdev);
#else
return this->deviceName();
#endif
}
} // namespace ZeroTier