Browse Source

Add timestamp field to network config requests.

Adam Ierymenko 10 years ago
parent
commit
b644d2a893
1 changed files with 6 additions and 0 deletions
  1. 6 0
      node/Network.cpp

+ 6 - 0
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);
 }