summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-06 15:28:48 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-06 15:28:48 -0700
commit79e9a8bcc26491a43577082ec7edb86020f7ec00 (patch)
treeb6a834f0f826185c562921260b75bdd6e6659c32 /node/Node.cpp
parentfad9dff2db26662e1496329057884b3b928cb1c9 (diff)
downloadinfinitytier-79e9a8bcc26491a43577082ec7edb86020f7ec00.tar.gz
infinitytier-79e9a8bcc26491a43577082ec7edb86020f7ec00.zip
Almost everything for GitHub issue #180 except direct path map setup.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index 8eacf753..7c70db97 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -78,8 +78,7 @@ Node::Node(
_networks_m(),
_now(now),
_lastPingCheck(0),
- _lastHousekeepingRun(0),
- _lastBeacon(0)
+ _lastHousekeepingRun(0)
{
_newestVersionSeen[0] = ZEROTIER_ONE_VERSION_MAJOR;
_newestVersionSeen[1] = ZEROTIER_ONE_VERSION_MINOR;
@@ -269,19 +268,6 @@ ZT1_ResultCode Node::processBackgroundTasks(uint64_t now,volatile uint64_t *next
_online = ((now - pfunc.lastReceiveFromUpstream) < ZT_PEER_ACTIVITY_TIMEOUT);
if (oldOnline != _online)
postEvent(_online ? ZT1_EVENT_ONLINE : ZT1_EVENT_OFFLINE);
-
- // Send LAN beacons
- if ((now - _lastBeacon) >= ZT_BEACON_INTERVAL) {
- _lastBeacon = now;
- char beacon[13];
- void *p = beacon;
- *(reinterpret_cast<uint32_t *>(p)) = RR->prng->next32();
- p = beacon + 4;
- *(reinterpret_cast<uint32_t *>(p)) = RR->prng->next32();
- RR->identity.address().copyTo(beacon + 8,5);
- RR->antiRec->logOutgoingZT(beacon,13);
- putPacket(ZT_DEFAULTS.v4Broadcast,beacon,13);
- }
} catch ( ... ) {
return ZT1_RESULT_FATAL_ERROR_INTERNAL;
}