commit | 7606f70fa32b9595bf0a15c3c955e5316cf98fb1 | [log] [tgz] |
---|---|---|
author | José Quevedo <quevedo@av.it.pt> | Tue Dec 31 11:25:43 2013 +0000 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Dec 31 11:37:41 2013 -0800 |
tree | a568cf93e4cc33045f552e39b95e82718c0a3263 | |
parent | 16d252ade70f23aab6dc5b5ca5702fe942d60e64 [diff] |
apps/producer: Include in the Data packet timestamp field the actual time the packet was created
diff --git a/apps/ndn-producer.cc b/apps/ndn-producer.cc index 8d1f052..cbe4a39 100644 --- a/apps/ndn-producer.cc +++ b/apps/ndn-producer.cc
@@ -132,6 +132,7 @@ dataName->append (m_postfix); data->SetName (dataName); data->SetFreshness (m_freshness); + data->SetTimestamp (Simulator::Now()); data->SetSignature (m_signature); if (m_keyLocator.size () > 0)