From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: increase the number of routing tables Date: Sun, 29 Jan 2012 16:31:51 -0800 Message-ID: <20120129163151.416035ef@nehalam.linuxnetplumber.net> References: <4F25D52B.1050701@wildgooses.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F25D52B.1050701@wildgooses.com> Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Ed W Cc: Jan Engelhardt , Simon Chen , netfilter@vger.kernel.org On Sun, 29 Jan 2012 23:24:27 +0000 Ed W 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.