Skip to contentSkip to conversation

How to enable more than ~256 routing tables?

DISCUSSION Ben Greear 2 participants 3 messages Apr 22, 2003

Subsystems (2)
lore
Share & tools
lore

Ben Greear

author
#0 lore raw

I would like to have a routing table per interface, and would like to support 1k interfaces or so (virtual interfaces like vlans, for instance).

I notice in rtnetlink.h there is this code:

enum rt_class_t

{
	RT_TABLE_UNSPEC=0,
/* User defined values */
	RT_TABLE_DEFAULT=253,
	RT_TABLE_MAIN=254,
	RT_TABLE_LOCAL=255
};

#define RT_TABLE_MAX RT_TABLE_LOCAL

Is it possible to just change the RT_TABLE_MAX to be higher and have 256-???? be more /* User defined values */ ?

Thanks,
Ben

Signature · 3 lines
Ben Greear <[email protected]>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear
#1 lore raw

In article <[email protected]> (at Tue, 22 Apr 2003 00:10:53 -0700), Ben Greear <[email protected]> says:

Quoted 2 lines

Is it possible to just change the RT_TABLE_MAX to be higher and have 256-???? be more /* User defined values */ ?

No. rtm_table in rtmsg{} is unsigned char.

Signature · 2 lines
Hideaki YOSHIFUJI @ USAGI Project <[email protected]>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
author
#2 lore raw
Quoted 8 lines · YOSHIFUJI Hideaki / ????

In article <[email protected]> (at Tue, 22 Apr 2003 00:10:53 -0700), Ben Greear <[email protected]> says:

Quoted 2 lines

Is it possible to just change the RT_TABLE_MAX to be higher and have 256-???? be more /* User defined values */ ?

No. rtm_table in rtmsg{} is unsigned char.

Thanks for the response...but I was definately hoping for some better news!

I'm guesing that to change this would mean at least a recompile of the user-space 'ip' utility, (and who knows what else!)

Why o why did someone think that 256 was all anyone would ever want!

Think we could at least increase this to 16 bits for 2.5?

Ben

Signature · 3 lines
Ben Greear <[email protected]>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear