git://git.jankratochvil.net
/
harpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
689546e
)
Support interfaces name expansion syntax: eth{0-1}.{2-24}
author
short
<>
Sat, 16 Oct 2004 09:43:44 +0000
(09:43 +0000)
committer
short
<>
Sat, 16 Oct 2004 09:43:44 +0000
(09:43 +0000)
harpy
patch
|
blob
|
history
diff --git
a/harpy
b/harpy
index
cb02bd2
..
1c314e1
100755
(executable)
--- 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,