giany has asked for the wisdom of the Perl Monks concerning the following question:
my $DEV = "dev eth1"; my $count=500; for ($x = 1;$x < 23;$x++) { for ($y = 1;$y < 255;$y++) { print HTB "\n class add $DEV parent 1:7 classid 1:0x".$count." rate +4kbit ceil 512Kbit burst 4kbit prio 1 quantum 2000\n"; print HTB " filter add $DEV protocol ip parent 1:0 prio 1 u32 match +ip dst 10.".$x.".0.".$y."/32 match ip src 0.0.0.0/0 flowid 1:0 x".$count."\n"; print HTB " qdisc add $DEV parent 1:0x".$count." handle 0x".$count++ +.": pfifo limit 5\n"; } }
2006-02-10 Retitled by planetscape, as per Monastery guidelines
Original title: 'Generate problem'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IP generation algorithm problem
by NetWallah (Canon) on Feb 09, 2006 at 22:04 UTC | |
|
Re: IP generation algorithm problem
by Util (Priest) on Feb 10, 2006 at 14:54 UTC | |
by giany (Acolyte) on Feb 10, 2006 at 16:41 UTC | |
by giany (Acolyte) on Feb 10, 2006 at 17:27 UTC |