--- zzzz-none-000/linux-2.6.39.4/net/ipv4/fib_frontend.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/net/ipv4/fib_frontend.c 2021-11-10 13:38:18.000000000 +0000 @@ -659,11 +659,13 @@ .nl_net = net, }, }; + u32 n; if (type == RTN_UNICAST) - tb = fib_new_table(net, RT_TABLE_MAIN); + n = IN_DEV_CONF_GET(ifa->ifa_dev, IFADDR_RTABLE); else - tb = fib_new_table(net, RT_TABLE_LOCAL); + n = RT_TABLE_LOCAL; + tb = fib_new_table(net, n); if (tb == NULL) return;