--- zzzz-none-000/linux-2.6.39.4/net/ipv4/fib_frontend.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/net/ipv4/fib_frontend.c 2021-11-10 13:23:11.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;