X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;ds=sidebyside;f=harpy;fp=harpy;h=1c314e14a0ba29ebcebba51d1d0275f66c788542;hb=1cac25d7ec30e9a8d80208ee89ce83dd679f79be;hp=cb02bd2c879da0eab80a9168bf23ad831086ec76;hpb=689546e41ce83c6ddca96b3ac781a48a1b6ca79e;p=harpy.git diff --git a/harpy b/harpy index cb02bd2..1c314e1 100755 --- a/harpy +++ b/harpy @@ -183,7 +183,13 @@ my($msg)=@_; my %socks; -for my $ifname (@ARGV) { +my @ifnames=@ARGV; +while (@ifnames) { + my $ifname=shift @ifnames; + if ($ifname=~/{(\d+)-(\d+)}/) { + push @ifnames,$`.$_.$' for $1..$2; + next; + } my($sock,$hw)=sock($ifname); $socks{$ifname}={ "sock"=>$sock,