From 3a6bb496f7c4d4bd7172e56f9fdbe8f4178a933e Mon Sep 17 00:00:00 2001 From: Oleksandr Kuvshynov Date: Fri, 15 Apr 2011 22:59:13 -0700 Subject: [PATCH] Added timestamp to each tcp packet --- pcap.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcap.js b/pcap.js index bad1bac1..724abe6f 100644 --- a/pcap.js +++ b/pcap.js @@ -1318,6 +1318,8 @@ TCP_tracker.prototype.track_states.ESTAB = function (packet, session) { var ip = packet.link.ip, tcp = ip.tcp, src = ip.saddr + ":" + tcp.sport; + + tcp.timestamp = packet.pcap_header.time_ms; // TODO - actually implement SACK decoding and tracking // if (tcp.options.sack) {