Re: increase the number of routing tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Mon, 30 Jan 2012 03:02:35 +0100 (CET)
Jan Engelhardt <jengelh@xxxxxxxxxx> wrote:

> On Monday 2012-01-30 01:31, Stephen Hemminger wrote:
> 
> >On Sun, 29 Jan 2012 23:24:27 +0000
> >Ed W <lists@xxxxxxxxxxxxxx> wrote:
> >
> >> On 29/01/2012 11:50, Jan Engelhardt wrote:
> >> > On Sunday 2012-01-29 03:23, Simon Chen wrote:
> >> >
> >> >> Hey folks,
> >> >>
> >> >> To my limited knowledge, Linux currently supports 256 (255?) routing
> >> >> tables defined in /etc/iproute2/rt_tables.
> >> > There are 2147483647.
> >> >
> >> 
> >> Any reason why it's not an unsigned 32bit int? (surely there is a corner 
> >> case where this is useful...)
> >> 
> >> Ed W
> >
> >The 8 bit value is enshrined in the API for 'struct rtmsg' and therefore
> >increasing it would break existing applications. 
> 
> Actually, what Ed (and me too) was wondering about was:
> 
> why does `ip route show table $[0x80000000]` not print an empty table, 
> i.e. where is it that some code uses int/s32 during parsing of 
> the argument and/or the RTA_TABLE attribute?

There are lots of places internally in ip utilities that use u32
for route table. But the route input/output message format is still limited
to 8 bits.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux Netfilter Development]     [Linux Kernel Networking Development]     [Linux Networking Development]     [Linux Kernel Development]     [Linux Resources]     [LARTC]     [Bugtraq]     [Consulting]     [Free Internet Dating]     [Yosemite Forum]     [Photo]

Add to Google Powered by Linux