mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-19 11:16:32 +00:00
Build fixes.
This commit is contained in:
parent
d8dae365f6
commit
0723a85ab3
@ -1654,7 +1654,7 @@ void EmbeddedNetworkController::_request(
|
||||
|
||||
DB::cleanMember(member);
|
||||
_db.save(member,true);
|
||||
_sender->ncSendConfig(nwid,requestPacketId,identity.address(),*(nc.get()),metaData.getUI(ZT_NETWORKCONFIG_REQUEST_METADATA_KEY_VERSION,0) < 6);
|
||||
_sender->ncSendConfig(nwid,requestPacketId,identity.address(),*(nc.get()),false);
|
||||
}
|
||||
|
||||
void EmbeddedNetworkController::_startThreads()
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include <wmmintrin.h>
|
||||
#include <emmintrin.h>
|
||||
#include <smmintrin.h>
|
||||
#include <immintrin.h>
|
||||
#define ZT_AES_AESNI 1
|
||||
#endif
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
|
||||
#include "Constants.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
/**
|
||||
@ -68,8 +70,8 @@ public:
|
||||
{
|
||||
for(;;) {
|
||||
if (_b) {
|
||||
kptr = &(_b->k);
|
||||
vptr = &(_b->v);
|
||||
kptr = (K *)(&(_b->k));
|
||||
vptr = (V *)(&(_b->v));
|
||||
_b = _b->next;
|
||||
return true;
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ unsigned int Multicaster::send(
|
||||
std::vector< std::pair<int64_t,Address> > recipients;
|
||||
|
||||
const NetworkConfig &config = network->config();
|
||||
if (config.multicastLimit == 0) return; // multicast disabled
|
||||
if (config.multicastLimit == 0) return 0; // multicast disabled
|
||||
|
||||
Address specialists[ZT_MAX_NETWORK_SPECIALISTS],multicastReplicators[ZT_MAX_NETWORK_SPECIALISTS];
|
||||
unsigned int specialistCount = 0,multicastReplicatorCount = 0,bridgeCount = 0;
|
||||
|
@ -178,7 +178,7 @@ public:
|
||||
}
|
||||
}
|
||||
std::sort(sortedByTime.begin(),sortedByTime.end());
|
||||
for(std::vector< std::pair<int64_t,Address> >::const_reverse_iterator i(sortedByTime.begin());i!=sortedByTime.end();++i) {
|
||||
for(std::vector< std::pair<int64_t,Address> >::const_reverse_iterator i(sortedByTime.rbegin());i!=sortedByTime.rend();++i) {
|
||||
if (!func(i->second))
|
||||
break;
|
||||
}
|
||||
|
@ -404,8 +404,8 @@ public:
|
||||
{
|
||||
Mutex::Lock ml(_memberships_l);
|
||||
Hashtable<Address,Membership>::Iterator i(_memberships);
|
||||
const Address *a = nullptr;
|
||||
const Membership *m = nullptr;
|
||||
Address *a = nullptr;
|
||||
Membership *m = nullptr;
|
||||
while (i.next(a,m)) {
|
||||
if (!f(*a,*m))
|
||||
break;
|
||||
|
@ -293,7 +293,7 @@ struct NetworkConfig
|
||||
return false;
|
||||
}
|
||||
|
||||
ZT_ALWAYS_INLINE Capability *capability(const uint32_t id) const
|
||||
ZT_ALWAYS_INLINE const Capability *capability(const uint32_t id) const
|
||||
{
|
||||
for(unsigned int i=0;i<capabilityCount;++i) {
|
||||
if (capabilities[i].id() == id)
|
||||
@ -302,7 +302,7 @@ struct NetworkConfig
|
||||
return (Capability *)0;
|
||||
}
|
||||
|
||||
ZT_ALWAYS_INLINE Tag *tag(const uint32_t id) const
|
||||
ZT_ALWAYS_INLINE const Tag *tag(const uint32_t id) const
|
||||
{
|
||||
for(unsigned int i=0;i<tagCount;++i) {
|
||||
if (tags[i].id() == id)
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "../node/Constants.hpp"
|
||||
#include "../node/Hashtable.hpp"
|
||||
|
@ -18,14 +18,10 @@
|
||||
#include "../node/MAC.hpp"
|
||||
#include "../node/InetAddress.hpp"
|
||||
|
||||
|
||||
#define ZT_ND_QUERY_INTERVAL 2000
|
||||
|
||||
#define ZT_ND_QUERY_MAX_TTL 5000
|
||||
|
||||
#define ZT_ND_EXPIRE 600000
|
||||
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
class NeighborDiscovery
|
||||
|
Loading…
Reference in New Issue
Block a user