* Anton Maksimenkov <[email protected]> [2009-05-30 07:58]:
> In the last stage I want implement automatically creation of subqueues
> by using some keyword for parent queue. For example:
> altq on $if cbq bandwidth 100Mb queue { std, ..., pq }
>  queue ...
>  queue pq bandwidth 1M priority 1 cbq spray_to_subqueues_by_dst_IP
> s_bandwidth 256K
> And some addition keyword to rule:
> pass out on $if ... from any to 192.168.0.0/24 ... queue pq
> spray_to_subqueues_by_dst_IP
> Parser will see rule, calculate how many IP's it covers, and creates
> that many subqueues (same that showed in above examples.).
> 
> That's my "dream".

I don't think that is the right approach.

> Again. I asking about help with PF. If start to question, I ask: how
> can I get tag of some queue (I know name of that queue, "pq_1" for
> example) from pt_test() function? Give me any tips please, code, point
> to places in code, or some.

pf_qname2qid()?

to write code, you have to read a lot of code first.

-- 
Henning Brauer, [email protected], [email protected]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam

Reply via email to