in reply to Re: my first packet sniffer in perl
in thread my first packet sniffer in perl

um....no
the $snaplen thing is the ssize of the data in the packet
actually it was 135 but i rounded it off to nearest 50 :/
and the $to_ms thing is the time to wait for a packet

Replies are listed 'Best First'.
Re^3: my first packet sniffer in perl
by davorg (Chancellor) on Jun 29, 2009 at 14:23 UTC
    the $to_ms thing is the time to wait for a packet

    Right. The time to wait in milliseconds. You've set it to 100 milliseconds. But your comment says you've set it to one second. 100 milliseconds is not one second. Hence, it's a confusing comment.

    --

    See the Copyright notice on my home node.

    Perl training courses