[NETFRAME] keeping timestamps from pcap
Artur Bergman
sky at crucially.net
Fri Aug 17 22:53:57 CEST 2007
with keepTimestamp, the unpack in the Frame Obect that creates a new
frame object lost the timestamp, so passing it along fixes it
artur
--- .cpan/build/Net-Packet-3.25/lib/Net/Packet/Frame.pm 2006-12-16
07:27:32.000000000 -0800
+++ /Library/Perl/5.8.6/Net/Packet/Frame.pm 2007-08-17
12:59:51.000000000 -0700
@@ -222,7 +222,7 @@
$prev = $l;
unless ($frames[$n]) {
- $frames[$n] = Net::Packet::Frame->new;
+ $frames[$n] = Net::Packet::Frame->new(timestamp => $self-
>timestamp);
$frames[$n]->[$__raw] = $oRaw;
# We strip the payload for last layer of previously built
frame,
More information about the netframe
mailing list