Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Added timestamp to each tcp packet
Browse files Browse the repository at this point in the history
  • Loading branch information
okuvshynov committed Apr 16, 2011
1 parent 041cc96 commit 3a6bb49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pcap.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 3a6bb49

Please sign in to comment.