Subject: | timestamp error |
Date: | Sat, 30 Aug 2014 22:18:51 +0800 |
To: | "bug-Net-Frame-Simple" <bug-Net-Frame-Simple [...] rt.cpan.org> |
From: | "elong" <elong.huang [...] foxmail.com> |
Hi
when i use Net::Frame::Simple to disassemble the pcap file of Linux cooked, there is a issue about the timestamp.
I think what we need is the timestamp of each payload of pcap, not the timestamp of now, but unfortunately, now we get is the current time.
my $f=Net::Frame::Simple->new( raw => $h->{raw},firstLayer =>$h->{firstLayer},timestamp=>$h->{timestamp});
my $timestamp=$f->timestamp;