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.
In reply to Re^3: my first packet sniffer in perl
by davorg
in thread my first packet sniffer in perl
by hnd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |