$to_ms=100; #wait for 1 sec $pcap=Net::Pcap::open_live($dev,$snaplen,$promisc,$to_ms);
100 miliseconds is a tenth of a second, not one second.
Martin
In reply to Re: my first packet sniffer in perl
by marto
in thread my first packet sniffer in perl
by hnd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |