Change the protocol stack processing to pass packets by non-const

reference, rather than const reference and value as was previously done.
Also change  the queue semantics to return the packet on a deque, rather
than requiring a packet as a parameter.  The problem with the original
approach was that packet UID's were getting skipped.  The fix handles
the uid properly, and we get sequential packet uid's on the trace file.
This commit is contained in:
George Riley committed 2007-08-24 11:44:11 -04:00
1 parent 08bcb4249d
commit 391b3eef11
31 files changed
+152 -179

No files matched your search

+2 -2
View File
@@ -58,8 +58,8 @@ public:
private:
virtual bool DoEnqueue (const Packet& p);
virtual bool DoDequeue (Packet &p);
virtual bool DoPeek (Packet &p);
virtual Packet DoDequeue ();
virtual Packet DoPeek ();
private:
std::queue<Packet> m_packets;