Interest ns-3 packet
diff --git a/model/ndn_interestpacket.h b/model/ndn_interestpacket.h
index fddc136..71a156a 100644
--- a/model/ndn_interestpacket.h
+++ b/model/ndn_interestpacket.h
@@ -13,13 +13,32 @@
#include "ns3/header.h"
#include <ns3/packet.h>
+#include <string>
+#include "ndn_timeoutheader.h"
+#include "ndn_nonceheader.h"
namespace ns3
{
+namespace NDNabstraction
+{
class InterestPacket : public Packet
{
+ public:
+ InterestPacket(unsigned char *name, uint32_t size);
+
+ uint32_t GetName(unsigned char *name);
+ void AddTimeout(uint32_t milliseconds);
+ uint32_t GetTimeout(void);
+ void RemoveTimeout(void);
+
+ void AddNonce(uint32_t nonce);
+ uint32_t GetNonce(void);
+ void RemoveNonce(void);
+
+ uint32_t maxNameLength;
};
}
+}
#endif
\ No newline at end of file