Re: IPFW eXtended tables [Was: Re: IPFW tables, dummynet and IPv6]

2011-12-25 Thread Pawel Tyll
> At the moment maximum number of tables remains the same however it is > now possible to define IPFW_TABLES_MAX to 65k without much (memory) > overhead. Since pointer to tables are stored in array, defining 2^32 > tables require 4G * (8+8+1) memory for pointers only. 65k is also a good amount.

Re: IPFW eXtended tables [Was: Re: IPFW tables, dummynet and IPv6]

2011-12-25 Thread Luigi Rizzo
On Sun, Dec 25, 2011 at 10:55:22PM +0400, Alexander V. Chernikov wrote: > Bjoern A. Zeeb wrote: > > On 25. Dec 2011, at 17:47 , Pawel Tyll wrote: > > > >> Hi Alexander, > >> > >>> Changes: > >>> * Tables (actually, radix trees) are now created/freed on demand. > >> Does this mean IPFW_TABLES_MA

Re: IPFW eXtended tables [Was: Re: IPFW tables, dummynet and IPv6]

2011-12-25 Thread Bjoern A. Zeeb
On 25. Dec 2011, at 18:55 , Alexander V. Chernikov wrote: > Bjoern A. Zeeb wrote: >> On 25. Dec 2011, at 17:47 , Pawel Tyll wrote: >> >>> Hi Alexander, >>> Changes: * Tables (actually, radix trees) are now created/freed on demand. >>> Does this mean IPFW_TABLES_MAX can now be safely

Re: IPFW eXtended tables [Was: Re: IPFW tables, dummynet and IPv6]

2011-12-25 Thread Alexander V. Chernikov
Bjoern A. Zeeb wrote: > On 25. Dec 2011, at 17:47 , Pawel Tyll wrote: > >> Hi Alexander, >> >>> Changes: >>> * Tables (actually, radix trees) are now created/freed on demand. >> Does this mean IPFW_TABLES_MAX can now be safely set to arbitrarily >> high number that would allow flexible numberin

Re: IPFW eXtended tables [Was: Re: IPFW tables, dummynet and IPv6]

2011-12-25 Thread Bjoern A. Zeeb
On 25. Dec 2011, at 17:47 , Pawel Tyll wrote: > Hi Alexander, > >> Changes: >> * Tables (actually, radix trees) are now created/freed on demand. > Does this mean IPFW_TABLES_MAX can now be safely set to arbitrarily > high number that would allow flexible numbering of tables? Arbitrarily > hig

Re: IPFW eXtended tables [Was: Re: IPFW tables, dummynet and IPv6]

2011-12-25 Thread Pawel Tyll
Hi Alexander, > Changes: > * Tables (actually, radix trees) are now created/freed on demand. Does this mean IPFW_TABLES_MAX can now be safely set to arbitrarily high number that would allow flexible numbering of tables? Arbitrarily high being 0x or some other nice large number that won

Re: IPFW eXtended tables [Was: Re: IPFW tables, dummynet and IPv6]

2011-12-25 Thread Bjoern A. Zeeb
On 25. Dec 2011, at 14:59 , Alexander V. Chernikov wrote: > Hello everyone. > > Final patch version now uses single IP_FW3 socket option. > Together with other changes this makes me think such changes should be > reviewed by a wider number of people. If there are no > objections/comments I plan

IPFW eXtended tables [Was: Re: IPFW tables, dummynet and IPv6]

2011-12-25 Thread Alexander V. Chernikov
Hello everyone. Final patch version now uses single IP_FW3 socket option. Together with other changes this makes me think such changes should be reviewed by a wider number of people. If there are no objections/comments I plan to commit this on tuesday. Changes: * Tables (actually, radix trees) ar