UPDATE: I have yet to test this, but it looks like I have fallen for <a href="https://rt.cpan.org/Public/Bug/Display.html?id=26937"26937 as Corion suggested.

UPDATE: I found http://cpansearch.perl.org/src/TIMPOTTER/Net-Pcap-0.04/Pcap.xs
But I need help going through it

Hello all,

I have a problem with Net::Pcap and i'm not sure of the source of the problem.
Here is the root of the problem;

INV 1396377544.853700 should be 1396377544.085370000 From tcpdump on same system: 1396377544.085370 IP 192.168.0.1.sip > 1 +92.168.0.2.sip: SIP, length: 1391

my code is;

... Net::Pcap::loop( $pcap, -1, \&pkt_proc, "$filename" ); ... my $tv_usec = $hdr->{'tv_usec'}; ...

It looks like the timeval structure is in perl CORE, but I really have not been able to trace it that back to a perl lib or a c lib pcap.h/libcap seem to work fine. The I need help identifying the problem as I have been unable to.

thanks!!!!!!


In reply to pcap tv_usec inaccurate by gman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.