summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2017-09-22 10:22:22 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2017-09-22 10:22:22 -0700
commiteb42ef68eeb7a19a9b841cd9f3fe67ffb999c827 (patch)
tree9665109ab82fffdfb34ebb90e9d5759cf1dfdd3a /osdep
parent6842490c1feb572936d8b3893f6d3d07e289a878 (diff)
parent52916eebcfae2559966d12d4be4b5376289a982d (diff)
downloadinfinitytier-eb42ef68eeb7a19a9b841cd9f3fe67ffb999c827.tar.gz
infinitytier-eb42ef68eeb7a19a9b841cd9f3fe67ffb999c827.zip
Merge branch 'dev' of http://git.int.zerotier.com/ZeroTier/ZeroTierOne into dev
Diffstat (limited to 'osdep')
-rw-r--r--osdep/Binder.hpp6
-rw-r--r--osdep/LinuxEthernetTap.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/osdep/Binder.hpp b/osdep/Binder.hpp
index 17a0fbf6..e3c2dc02 100644
--- a/osdep/Binder.hpp
+++ b/osdep/Binder.hpp
@@ -227,7 +227,7 @@ public:
case InetAddress::IP_SCOPE_GLOBAL:
case InetAddress::IP_SCOPE_SHARED:
case InetAddress::IP_SCOPE_PRIVATE:
- for(int x=0;x<portCount;++x) {
+ for(int x=0;x<(int)portCount;++x) {
ip.setPort(ports[x]);
localIfAddrs.insert(std::pair<InetAddress,std::string>(ip,std::string(devname)));
}
@@ -268,7 +268,7 @@ public:
case InetAddress::IP_SCOPE_GLOBAL:
case InetAddress::IP_SCOPE_SHARED:
case InetAddress::IP_SCOPE_PRIVATE:
- for(int x=0;x<portCount;++x) {
+ for(int x=0;x<(int)portCount;++x) {
ip.setPort(ports[x]);
localIfAddrs.insert(std::pair<InetAddress,std::string>(ip,ifname));
}
@@ -302,7 +302,7 @@ public:
case InetAddress::IP_SCOPE_GLOBAL:
case InetAddress::IP_SCOPE_SHARED:
case InetAddress::IP_SCOPE_PRIVATE:
- for(int x=0;x<portCount;++x) {
+ for(int x=0;x<(int)portCount;++x) {
ip.setPort(ports[x]);
localIfAddrs.insert(std::pair<InetAddress,std::string>(ip,std::string(ifa->ifa_name)));
}
diff --git a/osdep/LinuxEthernetTap.cpp b/osdep/LinuxEthernetTap.cpp
index c8f9ef9d..848f3638 100644
--- a/osdep/LinuxEthernetTap.cpp
+++ b/osdep/LinuxEthernetTap.cpp
@@ -314,7 +314,7 @@ bool LinuxEthernetTap::addIpSyn(std::vector<InetAddress> ips)
OSUtils::writeFile(filepath.c_str(), cfg_contents.c_str(), cfg_contents.length());
// Finaly, add IPs
for(int i=0; i<(int)ips.size(); i++){
- char iptmp[128],iptmp2[128[;
+ char iptmp[128],iptmp2[128];
if (ips[i].isV4())
::execlp("ip","ip","addr","add",ips[i].toString(iptmp),"broadcast",ips[i].broadcast().toIpString(iptmp2),"dev",_dev.c_str(),(const char *)0);
else