TimeoutHeader and NonceHeader for Interest ns-3 packets
diff --git a/model/ndn_timeoutheader.h b/model/ndn_timeoutheader.h
new file mode 100644
index 0000000..ffa158b
--- /dev/null
+++ b/model/ndn_timeoutheader.h
@@ -0,0 +1,37 @@
+//
+// ndn_timeoutheader.h
+// Abstraction
+//
+// Created by Ilya Moiseenko on 04.08.11.
+// Copyright 2011 UCLA. All rights reserved.
+//
+
+#include "ns3/header.h"
+#include <iostream>
+
+namespace ns3
+{
+namespace NDNabstraction
+{
+
+ class TimeoutHeader: public Header
+ {
+ public:
+ TimeoutHeader();
+ TimeoutHeader(uint32_t timeout);
+ uint32_t GetValue();
+
+
+ // Header serialization/deserialization
+ static TypeId GetTypeId ();
+ TypeId GetInstanceTypeId () const;
+ uint32_t GetSerializedSize () const;
+ void Serialize (Buffer::Iterator start) const;
+ uint32_t Deserialize (Buffer::Iterator start);
+ void Print (std::ostream &os) const;
+
+ private:
+ uint32_t m_value;
+ };
+}
+}
\ No newline at end of file