Subject: | IP-less interface |
pcaputils returns fatal error when lookupnet fails.
while to make it work with ip-less interface, lookupnet
failure should just be a warning.
--- PcapUtils.pm Wed Apr 7 09:33:24 1999
+++ PcapUtils.pm.new Wed Oct 30 01:07:46 2002
@@ -97,7 +97,7 @@
# Get pcap network/netmask
my($net, $mask);
- return $errbuf, if (Net::Pcap::lookupnet($args{DEV}, \$net, \$mask,
+ warn $errbuf if (Net::Pcap::lookupnet($args{DEV}, \$net, \$mask,
\$errbuf) == -1);
#
# Open in specified mode