You need to tell Net::Pcap (respectively Net::PcapUtils) about what device you want to capture packets on. For Windows, that is the (long and hard to type) full name of the device. Look at the output of
use strict; use Data::Dumper; use Net::Pcap; Net::Pcap::findalldevs(\my %devinfo,\my $err); warn Dumper \%devinfo;
or install Net::Pcap::FindDevice to conveniently get at devices by assigned IP address or network card name.
In reply to Re^3: Perl Script on Windows Vista
by Corion
in thread Perl Script on Windows Vista
by burningredmoon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |