]> git.sesse.net Git - greproxy/blobdiff - reorderer.h
Timeout packets in the reordering buffer after 100 ms. Helps in situations with seque...
[greproxy] / reorderer.h
index cdde8146a090a04ddd7d44b7ce836cef4a4850e0..f58a9327673ac1850c67b8e5f4b91ae5d72eb1f4 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <assert.h>
 #include <stdint.h>
+#include <sys/time.h>
 
 #include <algorithm>
 #include <map>
@@ -16,6 +17,7 @@ struct GREPacket {
        int seq;
        uint16_t proto;
        std::string data;
+       timeval ts;
 
        bool operator> (const GREPacket &other) const {
                return seq > other.seq;