diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-01-05 17:51:50 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-01-05 17:51:50 -0800 |
commit | b644d2a893f01f81ac1d2171ad80cad14cd7f0f0 (patch) | |
tree | 3b52c726b8784d8b786aa9807c6e414b1b28c588 | |
parent | 4e95384ad60c853f01c50e233b8cb48f239f033f (diff) | |
download | infinitytier-b644d2a893f01f81ac1d2171ad80cad14cd7f0f0.tar.gz infinitytier-b644d2a893f01f81ac1d2171ad80cad14cd7f0f0.zip |
Add timestamp field to network config requests.
-rw-r--r-- | node/Network.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node/Network.cpp b/node/Network.cpp index 218e8615..26d8684f 100644 --- a/node/Network.cpp +++ b/node/Network.cpp @@ -308,6 +308,12 @@ void Network::requestConfiguration() Packet outp(controller(),RR->identity.address(),Packet::VERB_NETWORK_CONFIG_REQUEST); outp.append((uint64_t)_id); outp.append((uint16_t)0); // no meta-data + { + Mutex::Lock _l(_lock); + if (_config) + outp.append((uint64_t)_config->timestamp()); + else outp.append((uint64_t)0); + } RR->sw->send(outp,true); } |