summaryrefslogtreecommitdiff
path: root/controller
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-05-14 13:54:27 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-05-14 13:54:27 -0700
commitcacdb445c786f97d5d9af200b17665bb171a42d9 (patch)
tree745f212588b6e8e65fb0edb708e801a96cf1d074 /controller
parent4743ad0b16a72c00039de1aed98499fe0adf633f (diff)
downloadinfinitytier-cacdb445c786f97d5d9af200b17665bb171a42d9.tar.gz
infinitytier-cacdb445c786f97d5d9af200b17665bb171a42d9.zip
Bump protocol version to 10
Diffstat (limited to 'controller')
-rw-r--r--controller/EmbeddedNetworkController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp
index 28115a03..cc012929 100644
--- a/controller/EmbeddedNetworkController.cpp
+++ b/controller/EmbeddedNetworkController.cpp
@@ -1620,7 +1620,7 @@ void EmbeddedNetworkController::_request(
if ( (ipRangeStartIA.ss_family == AF_INET) && (ipRangeEndIA.ss_family == AF_INET) ) {
uint32_t ipRangeStart = Utils::ntoh((uint32_t)(reinterpret_cast<struct sockaddr_in *>(&ipRangeStartIA)->sin_addr.s_addr));
uint32_t ipRangeEnd = Utils::ntoh((uint32_t)(reinterpret_cast<struct sockaddr_in *>(&ipRangeEndIA)->sin_addr.s_addr));
-
+
if ((ipRangeEnd < ipRangeStart)||(ipRangeStart == 0))
continue;
uint32_t ipRangeLen = ipRangeEnd - ipRangeStart;
@@ -1671,7 +1671,7 @@ void EmbeddedNetworkController::_request(
}
}
}
-
+
// Issue a certificate of ownership for all static IPs
if (nc->staticIpCount) {
nc->certificatesOfOwnership[0] = CertificateOfOwnership(nwid,now,identity.address(),1);