From: Krzysztof Piotr Oledzki Date: Tue, 10 Jun 2008 22:44:49 +0000 (-0700) Subject: net: Fix routing tables with id > 255 for legacy software X-Git-Tag: v2.6.26-rc6~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=709772e6e06564ed94ba740de70185ac3d792773;p=pandora-kernel.git net: Fix routing tables with id > 255 for legacy software Most legacy software do not like tables > 255 as rtm_table is u8 so tb_id is sent &0xff and it is possible to mismatch for example table 510 with table 254 (main). This patch introduces RT_TABLE_COMPAT=252 so the code uses it if tb_id > 255. It makes such old applications happy, new ones are still able to use RTA_TABLE to get a proper table id. Signed-off-by: Krzysztof Piotr Oledzki Acked-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed