opnsense-ports/net/p5-Net-Pcap/files/patch-t__Utils.pm
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
503 B
Raku

--- t/Utils.pm.orig 2012-04-05 17:39:45.000000000 -0800
+++ t/Utils.pm 2012-04-05 17:41:15.000000000 -0800
@@ -73,7 +73,7 @@
my @devs = Net::Pcap::findalldevs(\%devs, \$err);
# filter out unusable devices
-@devs = grep { $_ ne "lo" and $_ ne "lo0" and $_ !~ /GenericDialupAdapter/ } @devs;
+@devs = grep { $_ ne "lo" and $_ ne "lo0" and $_ !~ /GenericDialupAdapter/ and $_ !~ /^usbus/ } @devs;
# check if the user has specified a prefered device to use for tests
if (open(PREF, "device.txt")) {