OK i get it!
very useful info for lookups

Tnx Claudio

Птн 01 Фев 2013 22:08:48 +0400, Claudio Jeker  написал:
On Fri, Feb 01, 2013 at 07:39:46PM +0400, def wrote:

> my fault... I thought that the size only 8 bits (not bytes as i said before), 
> it really seems to be enough in src.so what is real MAX size of that values?

> 

> i will test all together again: rtable/rdomain with sockets on mpls 
> interfaces with values of u_int size

>

The rtableid is internally limited to a u_int16_t in some places.

Most use u_int now but esp. in pf(4) some of the u_int16_t are still

around. Main problem with very large rtableids is that a simple array of

pointers is used to get from the id to the routing table head so if you

create one rtable with e.g. an id of 1'000'000 it will chew 8MB of memory

on a 64bit system just for the lookup table.

-- 

:wq Claudio

Reply via email to