summaryrefslogtreecommitdiff
path: root/osdep/LinuxEthernetTap.cpp
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2017-02-16 16:41:26 -0800
committerJoseph Henry <josephjah@gmail.com>2017-02-16 16:41:26 -0800
commitb5b335a6f844a21ac23e260b6deb8f69bdc61129 (patch)
treec6203fc37635cca259095425184a32249980ba4c /osdep/LinuxEthernetTap.cpp
parent61b413b57f317785e067dd36dd54e6bd480c84ca (diff)
downloadinfinitytier-b5b335a6f844a21ac23e260b6deb8f69bdc61129.tar.gz
infinitytier-b5b335a6f844a21ac23e260b6deb8f69bdc61129.zip
Route re-add patch for linux build on Synology devices
Diffstat (limited to 'osdep/LinuxEthernetTap.cpp')
-rw-r--r--osdep/LinuxEthernetTap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/LinuxEthernetTap.cpp b/osdep/LinuxEthernetTap.cpp
index e336bb67..55a6d9f6 100644
--- a/osdep/LinuxEthernetTap.cpp
+++ b/osdep/LinuxEthernetTap.cpp
@@ -221,8 +221,10 @@ bool LinuxEthernetTap::addIp(const InetAddress &ip)
return false;
std::vector<InetAddress> allIps(ips());
+#ifndef __SYNOLOGY__
if (std::binary_search(allIps.begin(),allIps.end(),ip))
return true;
+#endif
// Remove and reconfigure if address is the same but netmask is different
for(std::vector<InetAddress>::iterator i(allIps.begin());i!=allIps.end();++i) {